Skip to content

Commit 10c9fb9

Browse files
author
dashodanger
committed
Remove checkbox options
1 parent 559f399 commit 10c9fb9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+353
-792
lines changed

modules/debugger.lua

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,19 @@ function DEBUG_CONTROL.setup(self)
6060
end
6161

6262
function DEBUG_CONTROL.get_levels()
63-
if PARAM.custom_error_texture and PARAM.bool_custom_error_texture == 1 then
63+
if PARAM.custom_error_texture and PARAM.custom_error_texture == "yes" then
6464
GAME.MATERIALS._ERROR.t = "ZZWOLF7"
6565
end
6666
end
6767

6868
function DEBUG_CONTROL.all_done()
69-
--[[if PARAM.attach_debug_info and PARAM.bool_attach_debug_info == 1 then
69+
--[[if PARAM.attach_debug_info and PARAM.attach_debug_info == "yes" then
7070
local log_text = {}
7171
7272
gui.wad_add_text_lump("OBLOGS", log_text)
7373
end]]
7474

75-
if PARAM.custom_error_texture and PARAM.bool_custom_error_texture == 1 then
75+
if PARAM.custom_error_texture and PARAM.custom_error_texture == "yes" then
7676
gui.wad_merge_sections("games/doom/data/error_wall.wad")
7777
end
7878
end
@@ -111,39 +111,39 @@ OB_MODULES["debugger"] =
111111
},
112112

113113
{
114-
name = "bool_sub_titles",
114+
name = "sub_titles",
115115
label=_("Disable Sub-Titles"),
116-
valuator = "button",
117-
default = 0,
116+
choices = YES_NO_CHOICES,
117+
default = "no",
118118
tooltip = _("Disable sub-titles on the Title Screen."),
119119
priority=106,
120120
},
121121

122122
{
123-
name = "bool_whole_names_only",
123+
name = "whole_names_only",
124124
label=_("Whole Name Gen Names Only"),
125-
valuator = "button",
126-
default = 0,
125+
choices = YES_NO_CHOICES,
126+
default = "no",
127127
tooltip = _("Use only complete names from the Name Generator"),
128128
longtip = _("Uses name generator names that are already complete phrases/sentences \ninstead of trying to procedurally generate them."),
129129
priority=101,
130130
},
131131

132132
{
133-
name = "bool_shape_rule_stats",
133+
name = "shape_rule_stats",
134134
label = _("Shape Rule Stats"),
135-
valuator = "button",
136-
default = 0,
135+
choices = YES_NO_CHOICES,
136+
default = "no",
137137
tooltip = _("Displays usage statistics for shape grammar rules."),
138138
priority=95,
139139
},
140140

141141

142142
{
143-
name = "bool_save_svg",
143+
name = "save_svg",
144144
label = _("Save Map Previews"),
145-
valuator = "button",
146-
default = 0,
145+
choices = YES_NO_CHOICES,
146+
default = "no",
147147
tooltip = _("Saves SVG format images of generated map thumbnails."),
148148
priority=94,
149149
gap = 1,
@@ -182,10 +182,10 @@ OB_MODULES["material_debugger"] =
182182
options =
183183
{
184184
{
185-
name = "bool_print_fab_materials",
185+
name = "print_fab_materials",
186186
label=_("Print Fab Materials"),
187-
valuator = "button",
188-
default = 0,
187+
choices = YES_NO_CHOICES,
188+
default = "no",
189189
tooltip = _("Print list of textures/flats present in each fab"),
190190
longtip = _("Print the names of all textures/flats preset in a prefab WAD. This will also list values like _FLOOR, _WALL, etc, prior to their conversion."),
191191
priority=104,
@@ -202,20 +202,20 @@ OB_MODULES["material_debugger"] =
202202
},
203203

204204
{
205-
name = "bool_non_vanilla_as_missing",
205+
name = "non_vanilla_as_missing",
206206
label=_("Check For Non-Vanilla Materials"),
207-
valuator = "button",
208-
default = 0,
207+
choices = YES_NO_CHOICES,
208+
default = "no",
209209
tooltip = _("Choose what to do when encountering a non-vanilla material"),
210210
longtip = _("If checked, will compare all flats/textures used against a list of vanilla materials for that IWAD, and treat non-vanilla materials as missing for the purposes of logging and throwing errors."),
211211
priority=102,
212212
},
213213

214214
{
215-
name = "bool_custom_error_texture",
215+
name = "custom_error_texture",
216216
label = _("Custom Error Texture"),
217-
valuator = "button",
218-
default = 0,
217+
choices = YES_NO_CHOICES,
218+
default = "no",
219219
tooltip = _("Replaces Obsidian's default texture with a high visibility version for easier detection of broken level geometry or missing textures."),
220220
priority = 101,
221221
},
@@ -242,10 +242,10 @@ OB_MODULES["pickup_params"] =
242242
options =
243243
{
244244
{
245-
name = "bool_scale_items_with_map_size",
245+
name = "scale_items_with_map_size",
246246
label=_("Alternate Item Quantities"),
247-
valuator = "button",
248-
default = 0,
247+
choices = YES_NO_CHOICES,
248+
default = "no",
249249
tooltip = _("Scales item distribution with map size"),
250250
priority=105,
251251
},

modules/gzdoom_fauna.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,11 @@ function FAUNA_MODULE.end_level(self, LEVEL)
338338

339339
if LEVEL.prebuilt then return end
340340

341-
if PARAM.bool_flies == 1 then
341+
if PARAM.flies == "yes" then
342342
FAUNA_MODULE.add_flies(LEVEL)
343343
end
344344

345-
if PARAM.bool_rats == 1 then
345+
if PARAM.rats == "yes" then
346346
FAUNA_MODULE.add_rats(LEVEL)
347347
end
348348

@@ -465,11 +465,11 @@ end
465465

466466

467467
function FAUNA_MODULE.all_done()
468-
if PARAM.bool_flies == 1 or PARAM.bool_rats == 1 then
468+
if PARAM.flies == "yes" or PARAM.rats == "yes" then
469469
SCRIPTS.fauna_SNDINFO = FAUNA_MODULE.SNDINFO
470470
end
471471

472-
if PARAM.bool_flies == 1 then
472+
if PARAM.flies == "yes" then
473473
SCRIPTS.zscript = ScriptMan_combine_script(SCRIPTS.zscript, FAUNA_MODULE.ZSC)
474474
SCRIPTS.doomednums = ScriptMan_combine_script(SCRIPTS.doomednums, FAUNA_MODULE.DOOMEDNUMS)
475475

@@ -478,7 +478,7 @@ function FAUNA_MODULE.all_done()
478478
gui.wad_insert_file(dir .. "sounds/FLYBUZZ.ogg", "FLYBUZZ")
479479
end
480480

481-
if PARAM.bool_rats == 1 then
481+
if PARAM.rats == "yes" then
482482
SCRIPTS.decorate = ScriptMan_combine_script(SCRIPTS.decorate, FAUNA_MODULE.DEC)
483483

484484
local dir = "games/doom/data/"
@@ -514,18 +514,18 @@ OB_MODULES["fauna_module"] =
514514
{
515515

516516
{
517-
name = "bool_flies",
517+
name = "flies",
518518
label=_("Flies"),
519-
valuator = "button",
520-
default = 0,
519+
choices = YES_NO_CHOICES,
520+
default = "no",
521521
tooltip = _("Adds flies to maps. \n"),
522522
},
523523

524524
{
525-
name = "bool_rats",
525+
name = "rats",
526526
label=_("Rats"),
527-
valuator = "button",
528-
default = 0,
527+
choices = YES_NO_CHOICES,
528+
default = "no",
529529
tooltip = _("Adds scurrying rats to maps. \n"),
530530
},
531531
},

modules/gzdoom_marine_closet.lua

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ end
13491349
function MARINE_CLOSET_TUNE.calc_closets(self, LEVEL)
13501350
if rand.odds(PARAM.float_m_c_chance)
13511351
and not LEVEL.prebuilt
1352-
and not (PARAM.bool_m_c_boss == 0 and LEVEL.is_procedural_gotcha) then
1352+
and not (PARAM.m_c_boss == "no" and LEVEL.is_procedural_gotcha) then
13531353
local rngmin
13541354
local rngmax
13551355

@@ -1419,7 +1419,7 @@ function MARINE_CLOSET_TUNE.calc_closets(self, LEVEL)
14191419
level_prob = 100,
14201420
}
14211421

1422-
if PARAM.bool_m_c_in_secret then
1422+
if PARAM.m_c_in_secret and PARAM.m_c_in_secret == "yes" then
14231423
info.not_secret = true
14241424
end
14251425

@@ -1443,7 +1443,7 @@ function MARINE_CLOSET_TUNE.all_done()
14431443

14441444
local scripty = MARINE_CLOSET_TUNE.TEMPLATES.ZSC
14451445

1446-
if PARAM.bool_m_c_power == 1 then
1446+
if PARAM.m_c_power == "yes" then
14471447
if PARAM.m_c_sprites == "no" then
14481448
scripty = scripty .. MARINE_CLOSET_TUNE.TEMPLATES.MSTRN
14491449
else
@@ -1459,7 +1459,7 @@ function MARINE_CLOSET_TUNE.all_done()
14591459

14601460
scripty = string.gsub(scripty, "MHEALTH", tostring(PARAM.float_m_c_health))
14611461

1462-
if PARAM.bool_m_c_follow == 1 then
1462+
if PARAM.m_c_follow == "yes" then
14631463
scripty = string.gsub(scripty, "MFOLLOW", "true")
14641464
else
14651465
scripty = string.gsub(scripty, "MFOLLOW", "false")
@@ -1506,13 +1506,13 @@ function MARINE_CLOSET_TUNE.all_done()
15061506
scripty = string.gsub(scripty, "MTRANSDEF", "\"" .. PARAM.m_c_color .. "\"")
15071507
end
15081508

1509-
if PARAM.bool_m_c_pdamage == 1 then
1509+
if PARAM.m_c_pdamage == "yes" then
15101510
scripty = string.gsub(scripty, "MPLAYERDAMAGEX", MARINE_CLOSET_TUNE.TEMPLATES.PLDMG)
15111511
else
15121512
scripty = string.gsub(scripty, "MPLAYERDAMAGEX", "")
15131513
end
15141514

1515-
if PARAM.bool_m_c_rip == 1 then
1515+
if PARAM.m_c_rip == "yes" then
15161516
scripty = string.gsub(scripty, "MDEATHMESSAGEX", MARINE_CLOSET_TUNE.TEMPLATES.DTHMSG)
15171517
else
15181518
scripty = string.gsub(scripty, "MDEATHMESSAGEX", "")
@@ -1739,11 +1739,11 @@ OB_MODULES["gzdoom_marine_closets"] =
17391739

17401740

17411741
{
1742-
name = "bool_m_c_pdamage",
1742+
name = "m_c_pdamage",
17431743
label = _("Player Damage Immunity"),
17441744
priority = 85,
1745-
valuator = "button",
1746-
default = 0,
1745+
choices = YES_NO_CHOICES,
1746+
default = "no",
17471747
tooltip = _("If enabled, marines will never take damage from player owned sources."),
17481748
},
17491749

@@ -1783,22 +1783,22 @@ OB_MODULES["gzdoom_marine_closets"] =
17831783

17841784

17851785
{
1786-
name = "bool_m_c_power",
1786+
name = "m_c_power",
17871787
label = _("Strong Marines"),
17881788
priority = 81,
1789-
valuator = "button",
1790-
default = 1,
1789+
choices = YES_NO_CHOICES,
1790+
default = "yes",
17911791
tooltip = _("Influences whether marines are as accurate and rapid firing as player, or are weaker."),
17921792
randomize_group = "monsters"
17931793
},
17941794

17951795

17961796
{
1797-
name = "bool_m_c_follow",
1797+
name = "m_c_follow",
17981798
label = _("Followers"),
17991799
priority = 80,
1800-
valuator = "button",
1801-
default = 0,
1800+
choices = YES_NO_CHOICES,
1801+
default = "no",
18021802
tooltip = _("By default marines try to follow the player if they have nothing else to do but would otherwise prioritize chasing enemies, and are also unable to follow player through rough terrain.\nIf this is enabled marines will much harder prioritize following player and will teleport if they are too far away."),
18031803
},
18041804

@@ -1817,31 +1817,31 @@ OB_MODULES["gzdoom_marine_closets"] =
18171817

18181818

18191819
{
1820-
name = "bool_m_c_boss",
1820+
name = "m_c_boss",
18211821
label = _("Allow in Gotchas"),
18221822
priority = 78,
1823-
valuator = "button",
1824-
default = 0,
1823+
choices = YES_NO_CHOICES,
1824+
default = "no",
18251825
tooltip = _("Allows or disallows marine closets to spawn on gotchas and boss generator levels."),
18261826
},
18271827

18281828

18291829
{
1830-
name = "bool_m_c_rip",
1830+
name = "m_c_rip",
18311831
label = _("Death Messages"),
18321832
priority = 77,
1833-
valuator = "button",
1834-
default = 0,
1833+
choices = YES_NO_CHOICES,
1834+
default = "no",
18351835
tooltip = _("If enabled, will print a message in message log whenever a marine dies."),
18361836
},
18371837

18381838

18391839
{
1840-
name = "bool_m_c_in_secret",
1840+
name = "m_c_in_secret",
18411841
label = _("In Secret Rooms"),
18421842
priority = 76,
1843-
valuator = "button",
1844-
default = 0,
1843+
choices = YES_NO_CHOICES,
1844+
default = "no",
18451845
tooltip = _("If enabled, allowed marine closets to be built in secret rooms.")
18461846
}
18471847
},

0 commit comments

Comments
 (0)