From f795f4d6908397ee09d350e043280a9110bfbb84 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Thu, 1 Jul 2021 19:39:52 +1000 Subject: [PATCH] Remove magic number --- game/gui.rpy | 2 ++ game/screens.rpy | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game/gui.rpy b/game/gui.rpy index 7902c40..3430829 100644 --- a/game/gui.rpy +++ b/game/gui.rpy @@ -56,6 +56,8 @@ define gui.interface_text_color = '#ffffff' define gui.default_outline = '#000' define gui.name_outline = '#000000dd' +define gui.quick_button_text_color = '#000000dd' + ## Fonts and Font Sizes ######################################################## ## The font used for in-game text. diff --git a/game/screens.rpy b/game/screens.rpy index f2d79ef..b347be9 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -247,7 +247,7 @@ screen quick_button(filename, label, function): action function fixed: add filename xalign 0.5 yalign 0.5 zoom 1 - text label xalign 0.5 yalign 0.5 xanchor 0.5 size 22 color "#000000EE" + text label xalign 0.5 yalign 0.5 xanchor 0.5 size 22 color gui.quick_button_text_color # label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ] # Reuse the same image and keep things 'neat'. @@ -1548,7 +1548,7 @@ screen quick_button(filename, label, function): action function fixed: add filename xalign 0.5 yalign 0.5 zoom 1.75 - text label xalign 0.5 yalign 0.5 size 42 color "#000000EE" + text label xalign 0.5 yalign 0.5 size 42 color gui.quick_button_text_color screen quick_menu(): variant "small"