View Issue Details

IDProjectCategoryView StatusLast Update
0004949Multi Theft Auto : San AndreasClientpublic2010-11-19 21:45
Reporterx86 Assigned ToTalidan  
Status resolvedResolutionfixed 
Target Version1.1Fixed in Version1.1 
Summary0004949: Add GUI dropdown widgets

The current release lacks any support for any dropdown widgets. Adding dropdown widgets to the GUI subsystem and exposing the appropriate scripting functions would be nice for a number of reasons (e.g. easy selection of various options in the interface).

Additional Information

Example widget:

TagsNo tags attached.


child of 0003344 closed New Feature Requests Requested features tracker 



2009-09-06 00:27

reporter   ~~0010422

Seconded. Although it's possible to make a similar object with a gridlist, support for "real" dropdowns/comboboxes would be much simpler and neater...


2009-09-06 21:32

viewer   ~~0010427

I don't understand why we don't already have them, seeing as they are already provided in CEGUI.


2009-09-06 21:33

viewer   ~~0010428

agreed son


2009-09-12 20:01

administrator   ~~0010476

What I mean:


2010-04-03 01:09

viewer   ~~0011323

Last edited: 2010-04-03 01:09

Added the following functions:
gui-element guiCreateComboBox( float x, float y, float width, float
height, string caption, bool relative [, gui-element parent ] );
bool guiComboBoxAddItem( gui-element comboBox, string value );
nil/string guiComboBoxGetSelected( gui-element comboBox );

Signed-off-by: Jyrno42 <>


2010-04-03 05:01

viewer   ~~0011324

That's kick ass, Jyrno42. Good job.

Now only if we could implement a right click dropdown box, also supported by the gui.


2010-04-03 16:52

viewer   ~~0011326

Last edited: 2010-04-03 17:26

A new patch for #4949.

As recommended by lil_Toady, I made comboboxes kinda like gridlists. The
functions are now like this:

gui-element guiCreateComboBox( float x, float y, float width, float
height, string caption, bool relative [, gui-element parent ] );

int guiComboBoxAddItem( gui-element comboBox, string value );

bool/string guiComboBoxGetItemText( gui-element comboBox, int itemId );
bool guiComboBoxSetItemText( gui-element comboBox, int itemId, string
value );
bool guiComboBoxRemoveItem( gui-element comboBox, int itemId );

nil/int guiComboBoxGetSelected( gui-element comboBox );
bool guiComboBoxSetSelected( gui-element comboBox, int itemId );

PS: Someone should hook events cause I can't grasp the thing's needed for
getting them to work.

Signed-off-by: Jyrno42 <>


2010-04-03 17:10

viewer   ~~0011327

Sounds great, might also be nice to have a guiComboBoxGetItems (or guiComboBoxGetRowCount)


2010-07-09 04:10

administrator   ~~0011714

Modified jyrno42's polished patch, it's now up to scratch after some tweaks.

Issue History

Date Modified Username Field Change