Skip to content

Commit

Permalink
Procedurally generate selected listbox cell borders
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 18, 2016
1 parent d299ab1 commit d764bba
Showing 1 changed file with 10 additions and 55 deletions.
65 changes: 10 additions & 55 deletions data/gui/default/macros/_initial.cfg
Expand Up @@ -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)"

[image]
x = "(width - 10)"
y = 0
name = "dialogs/selection-border-topright.png"
[/image]
border_thickness = 1
border_color = {GUI__BORDER_COLOR}

[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]
[/rectangle]

#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]

Expand Down

0 comments on commit d764bba

Please sign in to comment.