1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-11 20:41:10 +00:00

ComputedNodeStyle, resourceDisplay always shows base amount

This commit is contained in:
Acamaeda 2020-12-16 21:20:00 -05:00
parent f521874fb6
commit fb7a3fdfec
6 changed files with 25 additions and 6 deletions

View file

@ -6,7 +6,7 @@ The amount of a buyable owned is a `Decimal`.
Useful functions for dealing with buyables and implementing their effects:
- getBuyableAmt(layer, id): get the amount of the buyable the player has
- getBuyableAmount(layer, id): get the amount of the buyable the player has
- setBuyableAmount(layer, id, amount): set the amount of the buyable the player has
- buyableEffect(layer, id): Returns the current effects of the buyable, if any.

View file

@ -124,6 +124,8 @@ You can make almost any value dynamic by using a function in its place, includin
- symbol: **optional**. The text that appears on this layer's node. Default is the layer id with the first letter capitalized.
- image: **override**. The url (local or global) of an image that goes on the node. (Overrides symbol)
- position: **optional**. Determines the horizontal position of the layer in its row in a standard tree. By default, it uses the layer id, and layers are sorted in alphabetical order.
- branches: **optional**. An array of layer/node ids. On a tree, a line will appear from this layer to all of the layers in the list. Alternatively, an entry in the array can be a 2-element array consisting of the layer id and a color value. The color value can either be a string with a hex color code, or a number from 1-3 (theme-affected colors).