Fix UI issues.

Tighten up mod display to include more buttons at once, showing the original while in android.
Expands mod buttons to fill the space the menu panel provides. Redone mod button images to fit aesthetically
Imports misc files for modding, including the readme and flags
This commit is contained in:
2024-10-05 18:12:28 -05:00
parent 8dfa492442
commit e54c950ef6
11 changed files with 142 additions and 62 deletions

View File

@@ -708,10 +708,10 @@ screen mod_menu():
use mod_menu_top_buttons(_("Return"), ShowMenu("extras"))
viewport:
xpos 1338
ypos 179
xmaximum 540
ymaximum 790
xpos 1260
ypos 200
xmaximum 600
ymaximum 869
scrollbars "vertical"
vscrollbar_unscrollable "hide"
@@ -731,7 +731,12 @@ screen mod_menu():
at truecenter
style_prefix None
spacing 5
ysize 200
if renpy.variant(["mobile", "steam_deck"]):
ysize 200
else:
ysize 160
# Move mod up button
if i!=0:
button:
@@ -741,8 +746,8 @@ screen mod_menu():
activate_sound "audio/ui/snd_ui_click.wav"
idle_foreground Transform("gui/button/menubuttons/up.png",xalign=0.5,yalign=0.5)
hover_foreground Transform("gui/button/menubuttons/up.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#fbff18"))
idle_foreground Transform("gui/button/menubuttons/up.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#445ABB"))
hover_foreground Transform("gui/button/menubuttons/up.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#00FF03"))
action Function(swapMods, i, i-1)
else:
add Null(30,30) at truecenter
@@ -750,16 +755,21 @@ screen mod_menu():
button:
at truecenter
style_prefix "main_menu"
# Manual adjustment to make the arrow buttons closer to the mod toggle button
if not renpy.variant(["mobile", "steam_deck"]):
ysize 65
action Function(toggle_persistent_mods, i)
activate_sound "audio/ui/snd_ui_click.wav"
add "gui/button/menubuttons/checkbox.png" xalign 0.5 yalign 0.5
if persistent.enabled_mods[i][1]:
idle_foreground Transform("gui/button/menubuttons/check.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#32a852"))
hover_foreground Transform("gui/button/menubuttons/check.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#fbff18"))
idle_foreground Transform("gui/button/menubuttons/check.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#00ff40"))
hover_foreground Transform("gui/button/menubuttons/check.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#ffffff"))
else:
idle_foreground Transform("gui/button/menubuttons/cross.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#a83232"))
hover_foreground Transform("gui/button/menubuttons/cross.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#fbff18"))
idle_foreground Transform("gui/button/menubuttons/cross.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#db1a1a"))
hover_foreground Transform("gui/button/menubuttons/cross.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#ffffff"))
# Move mod down button
if i!=len(mod_menu_metadata)-1:
@@ -770,8 +780,8 @@ screen mod_menu():
action Function(swapMods, i, i+1)
activate_sound "audio/ui/snd_ui_click.wav"
idle_foreground Transform("gui/button/menubuttons/down.png",xalign=0.5,yalign=0.5)
hover_foreground Transform("gui/button/menubuttons/down.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#fbff18"))
idle_foreground Transform("gui/button/menubuttons/down.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#445ABB"))
hover_foreground Transform("gui/button/menubuttons/down.png",xalign=0.5,yalign=0.5,matrixcolor=TintMatrix("#00FF03"))
else:
add Null(30,30) at truecenter
@@ -801,11 +811,10 @@ screen mod_menu():
action NullAction()
frame:
xsize 350
xsize 475
ymaximum 2000
if mod_button_enabled:
background Frame("gui/button/menubuttons/template_idle.png", 12, 12)
hover_background Transform(Frame("gui/button/menubuttons/template_idle.png", 12, 12), matrixcolor = BrightnessMatrix(0.1))
else:
background Transform(Frame("gui/button/menubuttons/template_idle.png", 12, 12),matrixcolor=SaturationMatrix(0.5))
@@ -832,18 +841,24 @@ screen mod_menu():
# Only here for backwards compatibility to legacy mods
for x in mod_menu_access:
hbox:
xsize 129
ysize 129
add Null(88)
vbox:
if renpy.variant(["mobile", "steam_deck"]):
ysize 200
else:
ysize 160
button:
at truecenter
activate_sound "audio/ui/snd_ui_click.wav"
action Start(x["Label"])
frame:
xsize 350
xsize 475
ymaximum 2000
background Frame("gui/button/menubuttons/template_idle.png", 12, 12)
padding (5, 5)
hover_background Transform(Frame("gui/button/menubuttons/template_idle.png", 12, 12), matrixcolor = BrightnessMatrix(0.1))
text x["Name"] xalign 0.5 yalign 0.5 size 34 textalign 0.5
else:
@@ -862,9 +877,9 @@ screen mod_menu():
if mod_metadata != {}:
viewport:
xmaximum 1190
ymaximum 930
xpos 10
ypos 140
ymaximum 1030
xpos 15
ypos 40
scrollbars "vertical"
vscrollbar_unscrollable "hide"
mousewheel True