DropDown.txt 1.9 KB

123456789101112131415161718192021222324252627
  1. Add support for images on buttons. Replace dropdownbox scroll buttons with that.
  2. Drop down box gets closed the same frame it was opened on! Need to delay the close one frame.
  3. GUI ignores image in GUIContent for most elements.
  4. - Also I don't have a way of specifiying drop down box skin. It always uses whichever skin is active but this might be a problem when
  5. the user wants his own skin for the game and I want my own skin for the editor. I might want to cache the active skin on DropDownList initialization
  6. and then provide it to GUIManager::openDropDownBox.
  7. Immediate TODO:
  8. - Add support for images in GUIButton
  9. - With placement options (left/right of the text)
  10. - Update DropDown ScrollUp and ScrollDown buttons so they don't use two GUIAreas each and instead use a GUIButton with an image
  11. - This will require slightly updated hover graphic (Arrow icon no longer should change color)
  12. - Upon scroll up/down remove ScrollUp or ScrollDown buttons if that direction isn't usable anymore
  13. - Delete its GUIArea and offset the content area, and possibly ScrollDown area
  14. ----------------------------
  15. - Elements can call addContextAction("Name", "Callback")
  16. - This will be automatically rendered by GUIManager as a drop down menu when user clicks on it
  17. - This kind of drop down menu will require separator buttons
  18. - Also buttons with sub-menus
  19. - It is probably useful to just add this functionality to DropDownBox
  20. - Mousing over a sub-menu should upen another DropDownBox at that location
  21. - I might need to modify DropDownBox input parameters so they accept GUElement as a parent, and not just GUIDropDownList
  22. - Also another parameter to specify on which side of the GUIElement to open the box
  23. - GUIManager drop down system could be extended so it handles multiple drop down boxes from various sources
  24. - DropDownLists, context menus and toolbar menus