forked from Cavemanon/SnootGame
Modify Namebox adjustments
This commit is contained in:
parent
f2164ab113
commit
5c18593a75
@ -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.
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user