|
|
Developers looking to add new buttons, overlays, popups to the game might need to create new UI Elements.
|
|
|
|
|
|
There are two ways of creating UI Elements, through the [Map Editor]or through custom cards.
|
|
|
There are two ways of creating UI Elements, through the [[Map Editor]] or through custom cards.
|
|
|
|
|
|
Elements created in the [Map Editor] come in static and card forms.
|
|
|
Elements created in the [[Map Editor]] come in static and card forms.
|
|
|
|
|
|
[Card Types]
|
|
|
[[Card Types]]
|
|
|
|
|
|
## Static
|
|
|
|
|
|
Static elements do not have built in interactions with the effect builder other than placing and taking cards out of them.
|
|
|
|
|
|
### Row of cards
|
|
|
|
|
|
A board location where cards may be moved. Expressed as an array of ciids. Row of cards may be horizontal or vertical.
|
|
|
|
|
|
### Stack of cards
|
|
|
|
|
|
A board location where cards may be moved. Expressed as an array of ciids. Stack of cards can be clickable to show the cards within in a popup or not clickable.
|
|
|
|
|
|
## Card
|
|
|
|
|
|
UIElements such as button and information display automatically create a regular card within of a card type with these properties:
|
|
|
|
|
|
name: "UIElement",
|
|
|
properties: ["value", "buttonText"],
|
|
|
backgroundProperties: ["hoverPreviewOff", "elementType"]
|
|
|
|
|
|
This lets you interact with that element the same as any other card.
|
|
|
|
|
|
## Rule Card
|
|
|
|
|
|
The rule card type have these properties by default.
|
|
|
|
|
|
name: "Rule",
|
|
|
properties: ["description", "value", "text", "body"],
|
|
|
backgroundProperties: ["hoverPreviewOff", "elementType"]
|
|
|
|
|
|
Working with |
|
|
\ No newline at end of file |
|
|
Basic UI elements like tooltips or overlays can be created with visible rule cards. |
|
|
\ No newline at end of file |