diff options
author | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:14 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-12-19 21:05:14 +0000 |
commit | 403cd3acdb7b7fedf2b5e823326611bb32113385 (patch) | |
tree | dff28e68ec5c8015279ea1120dc822f2896f9ace /src/window_gui.h | |
parent | 3ada3b9cc5b63a593c2b2655aafedbcbdedcd041 (diff) | |
download | openttd-403cd3acdb7b7fedf2b5e823326611bb32113385.tar.xz |
(svn r23631) -Add: ScriptWindow, to manipulate windows on the client (GameScript only)
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index f60b39d01..a0c03805d 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -218,7 +218,7 @@ enum WindowFlags { WF_STICKY = 1 << 6, ///< Window is made sticky by user WF_DISABLE_VP_SCROLL = 1 << 7, ///< Window does not do autoscroll, @see HandleAutoscroll(). WF_WHITE_BORDER = 1 << 8, ///< Window white border counter bit mask. - + WF_HIGHLIGHTED = 1 << 9, ///< Window has a widget that has a highlight. WF_CENTERED = 1 << 10, ///< Window is centered and shall stay centered after ReInit. }; DECLARE_ENUM_AS_BIT_SET(WindowFlags) @@ -338,6 +338,10 @@ public: this->white_border_timer = WHITE_BORDER_DURATION; } + void DisableAllWidgetHighlight(); + void SetWidgetHighlight(byte widget_index, TextColour highlighted_colour); + bool IsWidgetHighlighted(byte widget_index) const; + /** * Sets the enabled/disabled status of a widget. * By default, widgets are enabled. @@ -482,6 +486,7 @@ public: void InvalidateData(int data = 0, bool gui_scope = true); void ProcessScheduledInvalidations(); + void ProcessHighlightedInvalidations(); /*** Event handling ***/ |