Story viewer: Use a slightly fuzzy rounded rectangle as the title background

This commit is contained in:
Celtic Minstrel 2017-04-08 19:00:36 -04:00
parent 508a493736
commit 753df47137

View file

@ -15,13 +15,22 @@
where box_width = {_GUI_ESTIMATE_TEXT_WIDTH})#enddef
#define _GUI_BACKGROUND
[rectangle]
[round_rectangle]
x = 10
y = 10
w = "{_GUI_ESTIMATE_TEXT_WIDTH}"
h = "(height - 20)"
fill_color = "0, 0, 0, 128"
[/rectangle]
corner_radius = 5
fill_color = "0, 0, 0, 96"
[/round_rectangle]
[round_rectangle]
x = 13
y = 13
w = "(text_width - 6 where text_width = {_GUI_ESTIMATE_TEXT_WIDTH})"
h = "(height - 26)"
corner_radius = 5
fill_color = "0, 0, 0, 96"
[/round_rectangle]
#enddef
#define _GUI_TEXT MODE