From 53af40b2f324379985114b7852fd23b2f565958d Mon Sep 17 00:00:00 2001 From: Charles Dang Date: Tue, 15 Mar 2016 21:31:44 +1100 Subject: [PATCH] ttip: improved look of floating tooltips further This makes the whole thing procedurally drawn --- .../default/widget/window_tooltip_large.cfg | 73 ++----------------- data/gui/default/window/tooltip_large.cfg | 2 +- 2 files changed, 8 insertions(+), 67 deletions(-) diff --git a/data/gui/default/widget/window_tooltip_large.cfg b/data/gui/default/widget/window_tooltip_large.cfg index 2eaf757a738d..478601bff695 100644 --- a/data/gui/default/widget/window_tooltip_large.cfg +++ b/data/gui/default/widget/window_tooltip_large.cfg @@ -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] diff --git a/data/gui/default/window/tooltip_large.cfg b/data/gui/default/window/tooltip_large.cfg index 00114d4c6af3..02afc6bd3532 100644 --- a/data/gui/default/window/tooltip_large.cfg +++ b/data/gui/default/window/tooltip_large.cfg @@ -215,7 +215,7 @@ def reevaluate_best_size(w, s) [label] id = "label" - definition = "gold_small" + definition = "default_small" wrap = "true" [/label]