ttip: improved look of floating tooltips further

This makes the whole thing procedurally drawn
This commit is contained in:
Charles Dang 2016-03-15 21:31:44 +11:00
parent fe4623e152
commit 53af40b2f3
2 changed files with 10 additions and 69 deletions

View file

@ -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]
x = 0
y = "(height - 2)"
name = "dialogs/menu-border-botleft.png"
[/image]
[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]
[rectangle]
x = 1
y = 1
w = "(width - 1)"
h = "(height - 1)"
fill_color = {GUI__BACKGROUND_COLOR_ENABLED}
x = 0
y = 0
w = "(width)"
h = "(height)"
fill_color = "5, 6, 12, 255"
border_thickness = 1
border_color = "114, 79, 46, 255"
[/rectangle]
[/draw]

View file

@ -215,7 +215,7 @@ def reevaluate_best_size(w, s)
[label]
id = "label"
definition = "gold_small"
definition = "default_small"
wrap = "true"
[/label]