mirror of
https://github.com/Dasemu/vnpipe.git
synced 2026-11-26 07:16:23 +00:00
fix(gui): taller solid textbox, wider dialogue, check/radio padding, visible save slots, polished art-style picker
The textbox image was shorter than the box so the speaker name sat on the bare scene; 5-6 line prose speeches overflowed; check/radio icons overlapped their labels; empty save slots were invisible; the picker showed the quick menu over a black screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
58b4fcba46
commit
d3e7816e65
3 files changed
+37
-14
No files matched your search
@@ -97,7 +97,7 @@ define gui.game_menu_background = "@@MENU_BG@@"
|
||||
## time.
|
||||
|
||||
## The height of the textbox containing dialogue.
|
||||
define gui.textbox_height = 278
|
||||
define gui.textbox_height = 310
|
||||
|
||||
## The placement of the textbox vertically on the screen. 0.0 is the top, 0.5 is
|
||||
## center, and 1.0 is the bottom.
|
||||
@@ -130,11 +130,11 @@ define gui.namebox_tile = False
|
||||
## The placement of dialogue relative to the textbox. These can be a whole
|
||||
## number of pixels relative to the left or top side of the textbox, or 0.5 to
|
||||
## center.
|
||||
define gui.dialogue_xpos = 402
|
||||
define gui.dialogue_ypos = 75
|
||||
define gui.dialogue_xpos = 360
|
||||
define gui.dialogue_ypos = 70
|
||||
|
||||
## The maximum width of dialogue text, in pixels.
|
||||
define gui.dialogue_width = 1116
|
||||
define gui.dialogue_width = 1250
|
||||
|
||||
## The horizontal alignment of the dialogue text. This can be 0.0 for left-
|
||||
## aligned, 0.5 for centered, and 1.0 for right-aligned.
|
||||
@@ -180,9 +180,9 @@ define gui.button_text_xalign = 0.0
|
||||
##
|
||||
## These customizations are used by the default interface:
|
||||
|
||||
define gui.radio_button_borders = Borders(27, 6, 6, 6)
|
||||
define gui.radio_button_borders = Borders(48, 6, 6, 6)
|
||||
|
||||
define gui.check_button_borders = Borders(27, 6, 6, 6)
|
||||
define gui.check_button_borders = Borders(48, 6, 6, 6)
|
||||
|
||||
define gui.confirm_button_text_xalign = 0.5
|
||||
|
||||
@@ -226,7 +226,7 @@ define gui.choice_button_text_insensitive_color = '#8888887f'
|
||||
define gui.slot_button_width = 414
|
||||
define gui.slot_button_height = 309
|
||||
define gui.slot_button_borders = Borders(15, 15, 15, 15)
|
||||
define gui.slot_button_text_size = 21
|
||||
define gui.slot_button_text_size = 26
|
||||
define gui.slot_button_text_xalign = 0.5
|
||||
define gui.slot_button_text_idle_color = gui.idle_small_color
|
||||
define gui.slot_button_text_selected_idle_color = gui.selected_color
|
||||
|
||||
@@ -135,7 +135,7 @@ style window:
|
||||
yalign gui.textbox_yalign
|
||||
ysize gui.textbox_height
|
||||
|
||||
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
|
||||
background Frame("gui/textbox.png", 0, 0)
|
||||
|
||||
style namebox:
|
||||
xpos gui.name_xpos
|
||||
|
||||
@@ -13,27 +13,50 @@ screen vn_art_style_picker():
|
||||
|
||||
modal True
|
||||
|
||||
add Solid("#000000")
|
||||
add gui.main_menu_background
|
||||
add Solid("#000000c8")
|
||||
|
||||
vbox:
|
||||
xalign 0.5
|
||||
yalign 0.5
|
||||
spacing 30
|
||||
yalign 0.45
|
||||
spacing 24
|
||||
|
||||
text "@@ART_STYLE_TITLE@@" xalign 0.5 size 60
|
||||
text "@@ART_STYLE_HINT@@" xalign 0.5 size 28
|
||||
text "@@ART_STYLE_TITLE@@":
|
||||
xalign 0.5
|
||||
size gui.title_text_size
|
||||
color gui.accent_color
|
||||
|
||||
null height 20
|
||||
text "@@ART_STYLE_HINT@@":
|
||||
xalign 0.5
|
||||
size 30
|
||||
italic True
|
||||
|
||||
null height 40
|
||||
|
||||
for style_id, style_label in vn_art_styles:
|
||||
textbutton style_label:
|
||||
style_prefix "vn_picker"
|
||||
xalign 0.5
|
||||
action [SetField(persistent, "art_style", style_id),
|
||||
SetField(persistent, "art_style_chosen", True), Return()]
|
||||
|
||||
style vn_picker_button is gui_button
|
||||
style vn_picker_button_text is gui_button_text
|
||||
|
||||
style vn_picker_button:
|
||||
xminimum 420
|
||||
padding (30, 12)
|
||||
|
||||
style vn_picker_button_text:
|
||||
size 44
|
||||
xalign 0.5
|
||||
text_align 0.5
|
||||
|
||||
## Shown once, before the first scene, when there is a choice to make.
|
||||
label vn_pick_art_style:
|
||||
if len(vn_art_styles) > 1 and not persistent.art_style_chosen:
|
||||
scene black
|
||||
$ quick_menu = False
|
||||
call screen vn_art_style_picker
|
||||
$ quick_menu = True
|
||||
return
|
||||
Reference in new issue
Block a user