- Implement debug_story_variables function
- Modify initstats label to handle debugging and wingStory variable
This commit is contained in:
@ -133,6 +133,11 @@ default preferences.text_cps = 50
|
|||||||
|
|
||||||
default preferences.afm_time = 15
|
default preferences.afm_time = 15
|
||||||
|
|
||||||
|
init -999 python:
|
||||||
|
config.developer = "auto"
|
||||||
|
|
||||||
|
default persistent.enable_debug_scores = config.developer
|
||||||
|
|
||||||
##Default Audio is not ear rape
|
##Default Audio is not ear rape
|
||||||
define config.default_music_volume = 0.48
|
define config.default_music_volume = 0.48
|
||||||
define config.default_sfx_volume = 0.80
|
define config.default_sfx_volume = 0.80
|
||||||
|
@ -992,6 +992,19 @@ screen preferences():
|
|||||||
textbutton _("After Choices") action [Function(onclick_audio, preferences.skip_after_choices), ToggleVariable("preferences.skip_after_choices", True, False)]
|
textbutton _("After Choices") action [Function(onclick_audio, preferences.skip_after_choices), ToggleVariable("preferences.skip_after_choices", True, False)]
|
||||||
textbutton _("Transitions") action [Function(onclick_audio, preferences.transitions, True), ToggleVariable("preferences.transitions", 0, 2)]
|
textbutton _("Transitions") action [Function(onclick_audio, preferences.transitions, True), ToggleVariable("preferences.transitions", 0, 2)]
|
||||||
|
|
||||||
|
if config.developer:
|
||||||
|
vbox:
|
||||||
|
style_prefix "check"
|
||||||
|
label _("Developer Tools")
|
||||||
|
textbutton _("Enable Debug Scores") action ToggleVariable("persistent.enable_debug_scores", True, False)
|
||||||
|
|
||||||
|
if not main_menu:
|
||||||
|
if config.developer and persistent.enable_debug_scores:
|
||||||
|
$ debug_story_variables(False)
|
||||||
|
$ debug_story_variables(True)
|
||||||
|
else:
|
||||||
|
$ debug_story_variables(False)
|
||||||
|
|
||||||
vbox:
|
vbox:
|
||||||
xsize 676
|
xsize 676
|
||||||
style_prefix "check"
|
style_prefix "check"
|
||||||
|
@ -7,6 +7,12 @@ label initstats(anon=0, fang=0):
|
|||||||
# :param bool trad: Tradwife ending flag
|
# :param bool trad: Tradwife ending flag
|
||||||
$ anonscore = anon
|
$ anonscore = anon
|
||||||
$ fangscore = fang
|
$ fangscore = fang
|
||||||
|
$ wingStory = False
|
||||||
|
|
||||||
|
if persistent.enable_debug_scores:
|
||||||
|
$ debug_story_variables(False)
|
||||||
|
$ debug_story_variables(True)
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# label get_ending:
|
# label get_ending:
|
||||||
@ -32,3 +38,21 @@ init python:
|
|||||||
return 2 # Doomer
|
return 2 # Doomer
|
||||||
else:
|
else:
|
||||||
return 1 # Shooter
|
return 1 # Shooter
|
||||||
|
|
||||||
|
|
||||||
|
def debug_story_variables(toggle=True, use_ending_chapter=False):
|
||||||
|
var_list = [
|
||||||
|
"anonscore",
|
||||||
|
"fangscore",
|
||||||
|
"current_general_chapter" if not use_ending_chapter else "current_ending_chapter",
|
||||||
|
"chapter_index",
|
||||||
|
"ending_route_number",
|
||||||
|
"ending_chapter_index"
|
||||||
|
]
|
||||||
|
|
||||||
|
for item in var_list:
|
||||||
|
if toggle:
|
||||||
|
renpy.watch(item)
|
||||||
|
else:
|
||||||
|
renpy.unwatch(item)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user