From 5c18593a75fe4b142797589379bc6d7d3a26cb07 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Fri, 2 Jul 2021 13:39:30 +1000 Subject: [PATCH] Modify Namebox adjustments --- game/gui.rpy | 4 ++-- game/screens.rpy | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/game/gui.rpy b/game/gui.rpy index ecae7f0..9bf4495 100644 --- a/game/gui.rpy +++ b/game/gui.rpy @@ -119,12 +119,12 @@ define gui.textbox_yalign = 1.0 ## The placement of the speaking character's name, relative to the textbox. ## These can be a whole number of pixels from the left or top, or 0.5 to center. -define gui.name_xpos = 285 +define gui.name_xpos = 395 define gui.name_ypos = -90 ## The horizontal alignment of the character's name. This can be 0.0 for left- ## aligned, 0.5 for centered, and 1.0 for right-aligned. -define gui.name_xalign = 0.0 +define gui.name_xalign = 0.5 ## The width, height, and borders of the box containing the character's name, or ## None to automatically size it. diff --git a/game/screens.rpy b/game/screens.rpy index 4e225e7..d00384a 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -141,17 +141,17 @@ style window: style namebox: xpos gui.name_xpos xanchor gui.name_xalign - xsize gui.namebox_width + xalign gui.name_xalign ypos gui.name_ypos - ysize gui.namebox_height - background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign) +#background Frame("gui/namebox.png", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign) padding gui.namebox_borders.padding style say_label: properties gui.text_properties("name", accent=True) xalign gui.name_xalign yalign 0.5 + xanchor gui.name_xalign style say_dialogue: properties gui.text_properties("dialogue") @@ -241,7 +241,6 @@ style choice_button_text is default: ## menus. screen quick_button(filename, label, function): - button: xmaximum 80 ymaximum 72 @@ -249,6 +248,7 @@ screen quick_button(filename, label, 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 style "quick_button_text" + # label_functions is [ [ "label", function() ], [ "foobar", foobar() ], .. ] # Reuse the same image string and keep things 'neat'. screen quick_buttons(filename, label_functions):