API Docs for: 0.1.1
Show:

flatworld.UIs.default Class

The simplest default UI implementation. Implemented UI functionalities for: showSelections, highlightSelectedObject

Constructor

flatworld.UIs.default

(
  • modal
  • FTW
  • options
)

Parameters:

  • modal HTMLElement

    The modal used in this UI Theme

  • FTW Flatworld

    Instance of flatworld class

  • options Object

    optional options

    • styles Object

      styles for the UI

Methods

_getElement

(
  • which
)
type private static

Parameters:

  • which type

    [description]

Returns:

type:

[description]

_highlightSelectedObject

(
  • object
  • movableLayer
  • renderer
)
private static

Parameters:

  • object Object
  • movableLayer MapLayer
  • renderer PIXI.Renderer

addCSSRulesToScriptTag

(
  • sheet
  • rules
)

Parameters:

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

Parameters:

  • object Object

    Object that has been selected. See core.UI for more information

  • getDatas Object

    See explanation in core.UI

  • options Object

    Extra options. Like dropping a shadow etc.

showModal

(
  • modalElem
  • cssClasses
)

Parameters:

showSelections

(
  • objects
  • getDatas
  • options
)

Required by the map.UI API

Parameters:

  • objects Object

    Objects that have been selected. See core.UI for more information

  • getDatas Object

    See explanation in core.UI

  • options Object

    Extra options

showUnitMovement

(
  • to
)

Parameters:

  • to PIXI.Point

    Global coordinates that were clicked