flatworld.UIs.default Class
The simplest default UI implementation. Implemented UI functionalities for: showSelections, highlightSelectedObject
Constructor
flatworld.UIs.default
(
-
modal -
FTW -
options
Parameters:
-
modalHTMLElementThe modal used in this UI Theme
-
FTWFlatworldInstance of flatworld class
-
optionsObjectoptional options
-
stylesObjectstyles for the UI
-
Item Index
Methods
_getElement
(
type
private
static
-
which
Parameters:
-
whichtype[description]
Returns:
type:
[description]
_highlightSelectedObject
(
private
static
-
object -
movableLayer -
renderer
Parameters:
-
objectObject -
movableLayerMapLayer -
rendererPIXI.Renderer
addStyleElement
()
createHighlight
()
private
static
getTemplates
Required by the map/core/UI.js API
()
getTemplates
Required by the map/core/UI.js API
()
highlightSelectedObject
(
-
object -
getDatas -
options
Required by the map.UI API
showSelections
(
-
objects -
getDatas -
options
Required by the map.UI API
showUnitMovement
(
-
to
Parameters:
-
toPIXI.PointGlobal coordinates that were clicked
