Moves the world Editor guis to be based through a tabbed structure to make it easier to begin separating out editor/tool guis into their own tabs or elements for better separation.

Currently establishes the MainScene tab and otherwise retains existing behavior directly
This commit is contained in:
Areloch 2023-11-14 18:58:58 -06:00
parent fcd611353d
commit 59247bd9ca
20 changed files with 1503 additions and 1471 deletions

View file

@ -58,6 +58,10 @@ IMPLEMENT_CALLBACK( GuiTabBookCtrl, onTabSelected, void, ( const String& text, U
"Called when a new tab page is selected.\n\n"
"@param text Text of the page header for the tab that is being selected.\n"
"@param index Index of the tab page being selected." );
IMPLEMENT_CALLBACK(GuiTabBookCtrl, onTabUnSelected, void, (const String& text, U32 index), (text, index),
"Called when a new tab page is unselected.\n\n"
"@param text Text of the page header for the tab that is being unselected.\n"
"@param index Index of the tab page being unselected.");
IMPLEMENT_CALLBACK( GuiTabBookCtrl, onTabRightClick, void, ( const String& text, U32 index ), ( text, index ),
"Called when the user right-clicks on a tab page header.\n\n"
"@param text Text of the page header for the tab that is being selected.\n"
@ -849,7 +853,10 @@ void GuiTabBookCtrl::selectPage( GuiTabPageCtrl *page )
onTabSelected_callback( tab->getText(), index );
}
else
tab->setVisible( false );
{
tab->setVisible(false);
onTabUnSelected_callback(tab->getText(), index);
}
}
setUpdateLayout( updateSelf );
}