From f88f036ea26b061deef3afb6b2c12f7683875c75 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Mon, 5 Feb 2024 20:02:32 +0000 Subject: [PATCH] Alternate styling * Implemented alternate styling for the say window used during CG scenes --- game/scripts/gui/_styles_.rpy | 13 ++++++++ game/scripts/gui/say.rpy | 57 ++++++++++++++++++++++++++--------- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/game/scripts/gui/_styles_.rpy b/game/scripts/gui/_styles_.rpy index 3366f3aa..ae89c717 100644 --- a/game/scripts/gui/_styles_.rpy +++ b/game/scripts/gui/_styles_.rpy @@ -210,6 +210,8 @@ style dark_say_label: style light_say_label: color settings.get('text_color_day') +style say_label_alt is say_dialogue_alt + # Say dialogue style say_dialogue is default: @@ -221,6 +223,10 @@ style dark_say_dialogue: style light_say_dialogue: color settings.get('text_color_day') +style say_dialogue_alt: + color "#ffffff" + outlines [(1, "#000000", 1, 0)] + style say_thought is say_dialogue style dark_say_thought is dark_say_dialogue style light_say_thought is light_say_dialogue @@ -255,6 +261,10 @@ style light_say_window is light_window: take say_window background "interface/frames/gold/frame.webp" +style say_window_alt: + take say_window + background "fade_gradient" + # Namebox style namebox is gui_frame: @@ -272,6 +282,9 @@ style light_namebox is light_gui_frame: take namebox # background Transform(Frame("gui/light_namebox.png", 8, 8)) +style namebox_alt: + take namebox + # Text style dark_text: diff --git a/game/scripts/gui/say.rpy b/game/scripts/gui/say.rpy index 64425a70..5b176fb2 100644 --- a/game/scripts/gui/say.rpy +++ b/game/scripts/gui/say.rpy @@ -38,6 +38,8 @@ screen say(who, what, side_image=None, icon=None): if text_inner_thought(what) and not renpy.showing("cg"): add "fade_gradient" + elif renpy.showing("cg"): + add "interface/bld.webp" if side_image: add side_image yalign 1.0 yanchor 1.0 zoom 0.5 @@ -45,25 +47,39 @@ screen say(who, what, side_image=None, icon=None): add SideImage() window id "window": - style gui.theme("say_window") + if renpy.showing("cg"): + style "say_window_alt" + + if who: + window: + id "namebox" + style "namebox_alt" + text who: + style "say_label_alt" + + text what: + id "what" + style "say_dialogue_alt" + else: + style gui.theme("say_window") + + if who: + window: + id "namebox" + style gui.theme("namebox") + text who: + style gui.theme("say_label") + + text what: + id "what" + style gui.theme("say_dialogue") if _windows_hidden: - ypos 1000 + ypos 1000 if _game_menu_screen: use quick_menu - if who: - window: - id "namebox" - style gui.theme("namebox") - text who: - style gui.theme("say_label") - - text what: - id "what" - style gui.theme("say_dialogue") - if renpy.android: button: style "empty" @@ -90,7 +106,10 @@ screen say(who, what, side_image=None, icon=None): screen quick_menu(): hbox: - style_prefix "quick" + if renpy.showing("cg"): + style_prefix "quick_alt" + else: + style_prefix "quick" xalign 1.0 yoffset -30 @@ -114,6 +133,16 @@ style quick_button_text is default: selected_hover_color "#cc0" insensitive_color "#4448" +style quick_alt_button is quick_button + +style quick_alt_button_text: + take quick_button_text + idle_color "#8888" + hover_color "#fff" + idle_outlines [(1, "#0008", 1, 1)] + hover_outlines [(1, "#000", 1, 1)] + + # Choice screen # # This screen is used to display the in-game choices presented by the menu