itch.io is community of indie game creators and players

Devlogs

Patch 5

Custom Options
A downloadable mod

NEW STUFF

  • option_set_field(mod_type, mod_name, page_name, option_name, field, value)
    • Allows changing the properties of an option.  Be careful with it.
  • option_get_field(mod_type, mod_name, page_name, option_name, field)
    • Like the above, but for retrieving the property.
  • option_defget_field(mod_type, mod_name, page_name, option_name, field, def_value)
    • Returns def_value if the property is missing, or the property's value if not.
  • options can now have a "point" field again, but with a different purpose
    • Point is like a script reference, but for the options variable.
    • An option containing the field "point" with the value ["mod", "old example options", "options"] would ignore the current mod variable and change itself within old example options.mod.gml's global.options.

FIXES?

  • changed vertical offsets to better center options
  • string_height is now used for options with names taller than one line (giving "pixels" or "lines" as properties still works)
  • made minor changes to how text is drawn

I did not test this very much because it shouldn't impact any currently existing configurations.  If you find something broken please let me know.

Files

  • custom options.zip (April 15, 2020) 13 kB
    Apr 15, 2020
Download Custom Options
Leave a comment