forked from Cavemanon/SnootGame
Translation Boot Menu
This commit is contained in:
@ -1,6 +1,17 @@
|
||||
###Updater Python stuff###
|
||||
|
||||
init -1 python:
|
||||
|
||||
#idk non-functional dummies for uisounds hackery
|
||||
#coming soon
|
||||
|
||||
def onclick_audio(flag, _audioflag=False):
|
||||
audio_filename=["audio/ui/uiOptionOn.wav", "audio/ui/uiOptionOff.wav"]
|
||||
if _audioflag:
|
||||
audio_filename=["audio/ui/uiOptionOff.wav", "audio/ui/uiOptionOn.wav"]
|
||||
renpy.play(audio_filename[int(bool(flag))])
|
||||
|
||||
init python:
|
||||
###Updater Python stuff###
|
||||
if renpy.variant("pc"): #Don't run this on mobile, not supported
|
||||
if persistent.updateresult is None:
|
||||
persistent.updateresult = "No new version is available"
|
||||
@ -18,15 +29,6 @@ init python:
|
||||
else:
|
||||
persistent.updateresult = pendingVersion
|
||||
|
||||
#idk non-functional dummies for uisounds hackery
|
||||
#coming soon
|
||||
|
||||
def onclick_audio(flag, _audioflag=False):
|
||||
audio_filename=["audio/ui/uiOptionOn.wav", "audio/ui/uiOptionOff.wav"]
|
||||
if _audioflag:
|
||||
audio_filename=["audio/ui/uiOptionOff.wav", "audio/ui/uiOptionOn.wav"]
|
||||
renpy.play(audio_filename[int(bool(flag))])
|
||||
|
||||
def ToggleAutoUpdate():
|
||||
onclick_audio(persistent.autoup)
|
||||
persistent.autoup = not persistent.autoup
|
||||
@ -543,7 +545,7 @@ screen main_menu():
|
||||
[ "Extras", ShowMenu("extras") ], \
|
||||
[ "Quit", Quit(confirm=not main_menu) ]
|
||||
] )
|
||||
on "show" action renpy.start_predict_screen("cg_gallery")
|
||||
#on "show" action renpy.start_predict_screen("cg_gallery")
|
||||
|
||||
style main_menu_frame is empty
|
||||
style main_menu_vbox is vbox
|
||||
@ -1265,7 +1267,7 @@ screen extrasnavigation():
|
||||
[ "About", ShowMenu("about") ],
|
||||
[ "Updates", ShowMenu("updates") ],
|
||||
[ "Gallery", ShowMenu("cg_gallery_0") ],
|
||||
[ "Mods", ShowMenu("mod_menu") ],
|
||||
[ "Mods", ShowMenu("circleBar") ],
|
||||
[ "Return", ShowMenu("main_menu") ]
|
||||
] )
|
||||
|
||||
@ -1738,7 +1740,7 @@ style pref_vbox:
|
||||
|
||||
#redefine function
|
||||
screen quick_button(filename, label, function):
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
button:
|
||||
xmaximum 124
|
||||
ymaximum 124
|
||||
@ -1748,7 +1750,7 @@ screen quick_button(filename, label, function):
|
||||
text label xalign 0.5 yalign 0.5 size 42 style "quick_button_text"
|
||||
|
||||
screen quick_menu():
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
zorder 100
|
||||
if quick_menu:
|
||||
hbox:
|
||||
@ -1765,7 +1767,7 @@ screen quick_menu():
|
||||
] )
|
||||
|
||||
screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
vbox:
|
||||
xpos 1940
|
||||
yalign 0.03
|
||||
@ -1787,73 +1789,73 @@ screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
|
||||
] )
|
||||
|
||||
style radio_button:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
foreground "gui/phone/button/radio_[prefix_]foreground.png"
|
||||
|
||||
style check_button:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
foreground "gui/phone/button/check_[prefix_]foreground.png"
|
||||
|
||||
style nvl_window:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
background "gui/phone/nvl.png"
|
||||
|
||||
style game_menu_outer_frame:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
background "gui/phone/overlay/game_menu.png"
|
||||
|
||||
style game_menu_navigation_frame:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize 510
|
||||
|
||||
style game_menu_content_frame:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
top_margin 0
|
||||
|
||||
style pref_vbox:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize 600
|
||||
|
||||
style bar:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
ysize gui.bar_size
|
||||
left_bar Frame("gui/phone/bar/left.png", gui.bar_borders, tile=gui.bar_tile)
|
||||
right_bar Frame("gui/phone/bar/right.png", gui.bar_borders, tile=gui.bar_tile)
|
||||
|
||||
style vbar:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize gui.bar_size
|
||||
top_bar Frame("gui/phone/bar/top.png", gui.vbar_borders, tile=gui.bar_tile)
|
||||
bottom_bar Frame("gui/phone/bar/bottom.png", gui.vbar_borders, tile=gui.bar_tile)
|
||||
|
||||
style scrollbar:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
ysize gui.scrollbar_size
|
||||
base_bar Frame("gui/phone/scrollbar/horizontal_[prefix_]bar.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
||||
thumb Frame("gui/phone/scrollbar/horizontal_[prefix_]thumb.png", gui.scrollbar_borders, tile=gui.scrollbar_tile)
|
||||
|
||||
style vscrollbar:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize gui.scrollbar_size
|
||||
base_bar Frame("gui/phone/scrollbar/vertical_[prefix_]bar.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
||||
thumb Frame("gui/phone/scrollbar/vertical_[prefix_]thumb.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
|
||||
|
||||
style slider:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
ysize gui.slider_size
|
||||
base_bar Frame("gui/phone/slider/horizontal_[prefix_]bar.png", gui.slider_borders, tile=gui.slider_tile)
|
||||
thumb "gui/phone/slider/horizontal_[prefix_]thumb.png"
|
||||
|
||||
style vslider:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize gui.slider_size
|
||||
base_bar Frame("gui/phone/slider/vertical_[prefix_]bar.png", gui.vslider_borders, tile=gui.slider_tile)
|
||||
thumb "gui/phone/slider/vertical_[prefix_]thumb.png"
|
||||
|
||||
style slider_pref_vbox:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize None
|
||||
|
||||
style slider_pref_slider:
|
||||
variant "small mobile"
|
||||
variant "mobile"
|
||||
xsize 900
|
||||
|
Reference in New Issue
Block a user