Clothing Store, Bug fixes, Translation strings

This commit is contained in:
LoafyLemon 2024-11-10 15:23:13 +00:00
parent 83c5ddad8d
commit 1d84b77ac1
6 changed files with 174 additions and 26 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,7 +24,7 @@ init python in wheelmenu:
if condition:
if action is None or disabled:
return renpy.store.Button(renpy.store.Transform(displayable, matrixcolor=renpy.store.SaturationMatrix(0)*renpy.store.BrightnessMatrix(-0.25)*renpy.store.OpacityMatrix(0.5)), action=action, style="wheelmenu_disabled_button", **kwargs)
return renpy.store.Button(renpy.store.Transform(displayable, matrixcolor=renpy.store.SaturationMatrix(0)*renpy.store.BrightnessMatrix(-0.15)), action=action, style="wheelmenu_disabled_button", **kwargs)
return renpy.store.Button(displayable, action=action, style="wheelmenu_button", **kwargs)
else:
return None

File diff suppressed because it is too large Load Diff

View File

@ -30,7 +30,9 @@ label clothing_store:
else:
maf "What can I get you today?"
call shop_dress
jump clothing_store_interface
label .exit:
gen "Thank you very much." ("base", xpos="far_left", ypos="head")
maf "You're welcome, sir. Come back any time."

View File

@ -42,7 +42,7 @@ init python:
def crop_image_zoom(path, xsize, ysize, grayscale=False):
x, y, w, h = crop_whitespace(path)
matrix = SaturationMatrix(0)*BrightnessMatrix(-0.25)*OpacityMatrix(0.5) if grayscale else None
matrix = SaturationMatrix(0)*BrightnessMatrix(-0.15) if grayscale else None
sprite = Image(path)
return Transform(sprite, crop=(x, y, w, h), xsize=xsize, ysize=ysize, fit="contain", matrixcolor=matrix, subpixel=True)

View File

@ -333,7 +333,7 @@ init python in wardrobe:
if character.is_worn(item.type):
return renpy.store.Transform(item.icon, xysize=(48, 48))
return renpy.store.Transform(item.icon, matrixcolor=renpy.store.SaturationMatrix(0)*renpy.store.BrightnessMatrix(-0.25)*renpy.store.OpacityMatrix(0.5))
return renpy.store.Transform(item.icon, matrixcolor=renpy.store.SaturationMatrix(0)*renpy.store.BrightnessMatrix(-0.15))
def easteregg(character_name):
scope = renpy.get_screen("wardrobe").scope
@ -456,6 +456,8 @@ screen wardrobe():
if navigation_exit:
timer 0.4 action Return()
add character.image align (1.0, 1.0) zoom 0.6 at character_atl
frame:
style "empty"
@ -467,9 +469,9 @@ screen wardrobe():
at navigation_tabs_show
textbutton "Strip" action wardrobe.strip at navigation_tabs
textbutton _("Strip") action wardrobe.strip at navigation_tabs
null height 35
textbutton "Exit" action wardrobe.exit keysym "K_ESCAPE" at navigation_tabs
textbutton _("Exit") action wardrobe.exit keysym "K_ESCAPE" at navigation_tabs
frame:
at navigation_atl
@ -710,8 +712,6 @@ screen wardrobe():
textbutton _("Global Colours") action Function(wardrobe.toggle_setting, "global_color") selected wardrobe.global_color style "wardrobe_checkbox_button"
textbutton _("Allow Opacity Slider") action Function(wardrobe.toggle_setting, "allow_opacity") selected wardrobe.allow_opacity style "wardrobe_checkbox_button"
add character.image align (1.0, 1.0) zoom 0.6 at character_atl
for i, j in wardrobe.easteregg(character.name):
add i pos j