Advance editor runtime and scripting integration

This commit is contained in:
2026-04-29 16:55:44 +08:00
parent 631bf32db2
commit 2e50c90167
60 changed files with 4071 additions and 228 deletions

View File

@@ -64,6 +64,13 @@ struct UIEditorShellInteractionMenuButtonRequest {
bool enabled = true;
};
struct UIEditorShellInteractionToolbarButtonRequest {
std::string buttonId = {};
::XCEngine::UI::UIRect rect = {};
::XCEngine::UI::UIInputPath path = {};
bool enabled = true;
};
struct UIEditorShellInteractionPopupItemRequest {
std::string popupId = {};
std::string menuId = {};
@@ -95,6 +102,7 @@ struct UIEditorShellInteractionRequest {
UIEditorShellComposeRequest shellRequest = {};
std::vector<Widgets::UIEditorMenuBarItem> menuBarItems = {};
std::vector<UIEditorShellInteractionMenuButtonRequest> menuButtons = {};
std::vector<UIEditorShellInteractionToolbarButtonRequest> toolbarButtons = {};
std::vector<UIEditorShellInteractionPopupRequest> popupRequests = {};
};