# Changes 0.2.7

- Add UI7 32Bit Version Num
- Fix ClipRect Bug with Separators
- Fix Triangle/Rect Render order Bug (UI7 - Bug of Lithium)
- Add Position to Menus and Movement by dragging the Title bar
- Add Menu Collabse (+ Flag to disable)
- Add About and Metrics Menus to Context
This commit is contained in:
2025-03-06 18:14:39 +01:00
parent 5375d0f3a9
commit e45598f9f6
8 changed files with 185 additions and 30 deletions

View File

@ -158,7 +158,7 @@ class Menu : public SmartCtor<Menu> {
* Get the Cursor Position
* @return Cursor Pos
*/
vec2 Cursor() const { return cursor; }
vec2 Cursor() const { return pos + cursor; }
/**
* Set the Cursor position
* @note The old Position can be restored with RestoreCursor
@ -268,8 +268,12 @@ class Menu : public SmartCtor<Menu> {
// Advanced
/** Display Debug Labels of the Menu */
void DebugLabels();
/**
* Display Debug Labels of a Menu
* @param m Menu to display Data from
* @param t Target to Write the Labels into
*/
static void DebugLabels(Menu::Ref m, Menu::Ref t = nullptr);
// Uneditable Stuff
@ -352,6 +356,7 @@ class Menu : public SmartCtor<Menu> {
bool scrollbar[2]; ///< Is Hz or Vt Scrollbar rendered
bool scroll_allowed[2]; ///< Is Hz or Vt Scrolling Alowed
bool has_touch; ///< Menu has touch (depends on screen)
bool is_open = true; ///< For Collapse Event
Container::Ref tmp_parent; ///< Parent Container (for better alignment etc)
@ -373,6 +378,7 @@ class Menu : public SmartCtor<Menu> {
vec2 mouse; ///< Mouse/Touch Position
vec2 bslpos; ///< Before Sameline Position
vec2 last_size; ///< Last Object Size
vec2 pos; ///< Menu Position
// Theme
Theme::Ref theme;