flatworld.UIs.default Class
The simplest default UI implementation. Implemented UI functionalities for: showSelections, highlightSelectedObject
Constructor
flatworld.UIs.default
(
-
modal
-
FTW
-
options
Parameters:
-
modal
HTMLElementThe modal used in this UI Theme
-
FTW
FlatworldInstance of flatworld class
-
options
Objectoptional options
-
styles
Objectstyles for the UI
-
Item Index
Methods
_getElement
(
type
private
static
-
which
Parameters:
-
which
type[description]
Returns:
type:
[description]
_highlightSelectedObject
(
private
static
-
object
-
movableLayer
-
renderer
Parameters:
-
object
Object -
movableLayer
MapLayer -
renderer
PIXI.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:
-
to
PIXI.PointGlobal coordinates that were clicked