Skip to content

Commit

Permalink
ttip: improved look of floating tooltips further
Browse files Browse the repository at this point in the history
This makes the whole thing procedurally drawn
  • Loading branch information
Vultraz committed Mar 15, 2016
1 parent fe4623e commit 53af40b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 67 deletions.
73 changes: 7 additions & 66 deletions data/gui/default/widget/window_tooltip_large.cfg
Expand Up @@ -60,75 +60,16 @@

[draw]

[image]
name = "dialogs/menu-border-topleft.png"
[/image]

[image]
x = 2
y = 0
w = "(if(width < 4, 0, width - 4))"
resize_mode = "stretch"
name = "dialogs/menu-border-top.png"
[/image]

[image]
x = "(width - 2)"
y = 0
name = "dialogs/menu-border-topright.png"
[/image]

[image]
x = "(width - 2)"
y = 2
h = "(if(height < 4, 0, height - 4))"
resize_mode = "stretch"
name = "dialogs/menu-border-right.png"
[/image]

[image]
x = "(width - 2)"
y = "(height - 2)"
name = "dialogs/menu-border-botright.png"
[/image]

[image]
x = 2
y = "(height - 2)"
w = "(if(width < 4, 0, width - 4))"
resize_mode = "stretch"
name = "dialogs/menu-border-bottom.png"
[/image]

[image]
[rectangle]
x = 0
y = "(height - 2)"
name = "dialogs/menu-border-botleft.png"
[/image]
y = 0
w = "(width)"
h = "(height)"

[image]
x = 0
y = 2
h = "(if(height < 4, 0, height - 4))"
resize_mode = "stretch"
name = "dialogs/menu-border-left.png"
[/image]

[image]
x = 2
y = 2
w = "(if(width < 4, 0, width - 4))"
h = "(if(height < 4, 0, height - 4))"
name = "dialogs/selection-background.png"
resize_mode = "stretch"
[/image]
fill_color = "5, 6, 12, 255"

[rectangle]
x = 1
y = 1
w = "(width - 1)"
h = "(height - 1)"
fill_color = {GUI__BACKGROUND_COLOR_ENABLED}
border_thickness = 1
border_color = "114, 79, 46, 255"
[/rectangle]

[/draw]
Expand Down
2 changes: 1 addition & 1 deletion data/gui/default/window/tooltip_large.cfg
Expand Up @@ -215,7 +215,7 @@ def reevaluate_best_size(w, s)

[label]
id = "label"
definition = "gold_small"
definition = "default_small"

wrap = "true"
[/label]
Expand Down

0 comments on commit 53af40b

Please sign in to comment.