Skip to content

Commit

Permalink
Add hints to tweakunits and tweakdefs
Browse files Browse the repository at this point in the history
These can now be added to any editbox in modoptions and will display a grey font when the field is empty.
  • Loading branch information
AntlerForce committed May 11, 2024
1 parent 5043b04 commit a97adad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modoptions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
-- key: the string used in the script.txt
-- name: the displayed name
-- desc: the description (could be used as a tooltip)
-- hint: greyed out text that appears in input field when empty
-- type: the option type ('list','string','number','bool')
-- def: the default value
-- min: minimum value for number options
Expand Down Expand Up @@ -571,6 +572,7 @@ local options = {
key = "tweakunits",
name = "Tweak Units",
desc = "For advanced users!!! A base64 encoded lua table of unit parameters to change.",
hint = "Input must be base64",
section = "options_unit_modifiers",
type = "string",
def = "",
Expand All @@ -580,6 +582,7 @@ local options = {
key = "tweakdefs",
name = "Tweak Defs",
desc = "For advanced users!!! A base64 encoded snippet of code that modifies game definitions.",
hint = "Input must be base64",
section = "options_unit_modifiers",
type = "string",
def = "",
Expand Down

0 comments on commit a97adad

Please sign in to comment.