abstract enum pagename

should make adding modded optionspages better and easier
makes it so you dont have to leech off an unused PageName or write your own code for making modded options, helping with compatibility between mods.
This commit is contained in:
nebulazorua 2024-05-11 16:51:27 +08:00
parent a6948c3a38
commit fa4fa8116c

View file

@ -266,11 +266,11 @@ class OptionsMenu extends Page
#end
}
enum PageName
enum abstract PageName(String)
{
Options;
Controls;
Colors;
Mods;
Preferences;
var Options = "options";
var Controls = "controls";
var Colors = "colors";
var Mods = "mods";
var Preferences = "preferences";
}