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

Added drop-down

This commit is contained in:
Harley White 2021-06-03 10:28:07 -04:00
parent cd71349fd5
commit e7b0af397d
9 changed files with 30 additions and 11 deletions

View file

@ -45,9 +45,12 @@ These are the existing components, but you can create more in [components.js](/j
(Works with strings, numbers, and Decimals!)
- slider: Lets the user input a value with a slider. The argument a 3-element array: [name, min, max].
The name is the name of the variable in player[layer] that the input that the input is for, and min and max are the limits of the slider.
The name is the name of the variable in player[layer] that the input is for, and min and max are the limits of the slider.
(Does not work for Decimal values)
- drop-down: Lets the user input a value with a dropdown menu. The argument a 2-element array: [name, options].
The name is the name of the variable in player[layer] that the input is for, and options is an array of strings for options you can use.
- upgrades: The layer's upgrades. The argument is optional, and is a the list of rows this component should include, if it doesn't have all of them.
- milestones, challenges, achievements: Display the upgrades, milestones, and challenges for a layer, as appropriate.

View file

@ -2,7 +2,7 @@
Grids are an easier way of making a group of similar clickables. They all have the same behavior, but are different based on their data.
**NOTE: Gridables are similar to clickables in some respects, but are fundamentally different from normal TMT components in quite a few ways. Be sure to keep these in mind:**
**NOTE: Gridables are similar to clickables in some respects, but are fundamentally different from normal TMT Big Features in quite a few ways. Be sure to keep these in mind:**
- Gridable ids use base 100 instead of base 10, so you can have more than 10 tiles in a row. This means that a grid might look like this:
101 102
201 202