(svn r2974) -Fix: Drag and drop selection on drop down boxes didn't select correct item when some items were hidden.

-Separate disabled and hidden masks in drop downs to support both hidden and disabled items.
This commit is contained in:
2005-09-23 07:44:03 +00:00
parent 313fcfbd83
commit 9c2700b14c
3 changed files with 17 additions and 21 deletions

View File

@@ -617,7 +617,7 @@ int PositionMainToolbar(Window *w);
/* widget.c */
int GetWidgetFromPos(const Window *w, int x, int y);
void DrawWindowWidgets(const Window *w);
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, bool remove_filtered_strings);
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask);
void HandleButtonClick(Window *w, byte widget);