Thraka / SadConsole

A .NET ascii/ansi console engine written in C# for MonoGame and XNA. Create your own text roguelike (or other) games!
MIT License
1.22k stars 120 forks source link

Add ComboBox control for v10 #309

Closed Thraka closed 1 year ago

Thraka commented 1 year ago

Should be pretty easy to do now that there is CompositeControl.

  1. The control should have two states, dropdown shown or not.
  2. Without the dropdown shown, it looks like a button but with a chevron of some sort.
  3. The mouse bounds for non-dropdown mode would be the single row.
  4. If the chevron is pressed, the control requests exclusive focus and draws the rest of the control, showing the listbox. Mouse bounds would change to be the full area of the control
Thraka commented 1 year ago

Fixed in f33632c4d0ff162b9b6db22f94d7fb29257fb11c