Procedurally generate selected listbox cell borders

This commit is contained in:
Charles Dang 2016-03-19 01:48:23 +11:00
parent d299ab1292
commit d764bba7e4

View file

@ -101,67 +101,22 @@
# version for both tiny and normal gui.
#define GUI__LISTBOX_SELECTED_CELL
# corners are 10x10
[image]
[rectangle]
x = 0
y = 0
name = "dialogs/selection-border-topleft.png"
[/image]
w = "(width)"
h = "(height)"
border_thickness = 1
border_color = {GUI__BORDER_COLOR}
[/rectangle]
[image]
x = "(width - 10)"
y = 0
name = "dialogs/selection-border-topright.png"
[/image]
[image]
x = 0
y = "(height - 10)"
name = "dialogs/selection-border-botleft.png"
[/image]
[image]
x = "(width - 10)"
y = "(height - 10)"
name = "dialogs/selection-border-botright.png"
[/image]
# since the lines are already quite long scale them instead of stretching
# the height of the lines is 3 pixels.
[image]
x = 10
y = 0
w = "(width - 20)"
name = "dialogs/selection-border-top.png"
[/image]
[image]
x = 10
y = "(height - 3)"
w = "(width - 20)"
name = "dialogs/selection-border-bottom.png"
[/image]
[image]
x = 0
y = 10
h= "(height - 20)"
name = "dialogs/selection-border-left.png"
[/image]
[image]
x = "(width - 3)"
y = 10
h = "(height - 20)"
name = "dialogs/selection-border-right.png"
[/image]
#main background 320 x 67
[image]
x = 3
y = 3
w = "(width - 6)"
h = "(height - 6)"
x = 1
y = 1
w = "(width - 2)"
h = "(height - 2)"
name = "dialogs/selection-background.png"
[/image]