mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-09 02:36:28 +01:00
Merge pull request 'Flash the bonus chapters button everytime you get an ending' (#118) from nutbuster/SnootGame:MU6_Hotfix into MU6_Hotfix
Reviewed-on: https://git.snootgame.xyz/Cavemanon/SnootGame/pulls/118
This commit is contained in:
commit
a18b6c9f33
2 changed files with 26 additions and 2 deletions
|
@ -434,6 +434,29 @@ screen main_menu_button(filename, label, function):
|
||||||
add filename xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
add filename xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||||
text label xalign 0.5 yalign 0.5 xanchor 0.5
|
text label xalign 0.5 yalign 0.5 xanchor 0.5
|
||||||
|
|
||||||
|
image bonus_flash:
|
||||||
|
|
||||||
|
"gui/button/menubuttons/template_idle.png"
|
||||||
|
matrixcolor TintMatrix(Color((5*255, 5*255, 5*255)))
|
||||||
|
easeout_cubic 0.30 matrixcolor TintMatrix(Color((255, 255, 255)))
|
||||||
|
pause 0.133
|
||||||
|
repeat 4
|
||||||
|
|
||||||
|
screen bonus_chapter_button():
|
||||||
|
#("gui/button/menubuttons/template_idle.png", "Bonus Chapters", ShowMenu("ex_ch_menu"))
|
||||||
|
button:
|
||||||
|
xmaximum 500
|
||||||
|
ymaximum 129
|
||||||
|
action ShowMenu("ex_ch_menu")
|
||||||
|
activate_sound "audio/ui/uiClick.wav"
|
||||||
|
fixed:
|
||||||
|
if persistent.old_endings != persistent.endings:
|
||||||
|
add "bonus_flash" xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||||
|
$ persistent.old_endings = persistent.endings
|
||||||
|
else:
|
||||||
|
add "gui/button/menubuttons/template_idle.png" xalign 0.5 yalign 0.5 zoom 1 xanchor 0 xcenter 0.5 ycenter 0.5
|
||||||
|
text "Bonus Chapters" xalign 0.5 yalign 0.5 xanchor 0.5
|
||||||
|
|
||||||
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
|
# label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ]
|
||||||
# Reuse the same image string and keep things 'neat'.
|
# Reuse the same image string and keep things 'neat'.
|
||||||
screen main_menu_buttons(filename, label_functions):
|
screen main_menu_buttons(filename, label_functions):
|
||||||
|
@ -467,10 +490,10 @@ screen main_menu():
|
||||||
spacing 10
|
spacing 10
|
||||||
xpos 1885
|
xpos 1885
|
||||||
ypos 1130
|
ypos 1130
|
||||||
|
use main_menu_button("gui/button/menubuttons/template_idle.png", "Start", Start())
|
||||||
|
use bonus_chapter_button()
|
||||||
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
|
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
|
||||||
[
|
[
|
||||||
[ "Start", Start() ],
|
|
||||||
[ "Bonus Chapters", ShowMenu("ex_ch_menu") ],
|
|
||||||
[ "Load", ShowMenu("load") ],
|
[ "Load", ShowMenu("load") ],
|
||||||
[ "Options", ShowMenu("preferences") ],
|
[ "Options", ShowMenu("preferences") ],
|
||||||
[ "Extras", ShowMenu("extras") ], \
|
[ "Extras", ShowMenu("extras") ], \
|
||||||
|
|
|
@ -7,6 +7,7 @@ init -1 python:
|
||||||
fn = "e"+str(i)+"of4"
|
fn = "e"+str(i)+"of4"
|
||||||
endings |= (_e * renpy.seen_image(fn))
|
endings |= (_e * renpy.seen_image(fn))
|
||||||
_e = _e << 0b1
|
_e = _e << 0b1
|
||||||
|
persistent.old_endings = persistent.endings
|
||||||
persistent.endings = endings
|
persistent.endings = endings
|
||||||
|
|
||||||
label storyline:
|
label storyline:
|
||||||
|
|
Loading…
Reference in a new issue