refactor: Update CMake Configuration and EditorCard Constructor
- Modified CMake configuration to include additional proto files for gRPC services, enhancing the build process for canvas automation features. - Adjusted the number of buttons in the Toolset to improve UI layout. - Introduced a new constructor for EditorCard to manage open state, enhancing flexibility in editor card management.
This commit is contained in:
@@ -114,6 +114,7 @@ class EditorCard {
|
||||
};
|
||||
|
||||
EditorCard(const char* title, const char* icon = nullptr);
|
||||
EditorCard(const char* title, const char* icon, bool* p_open);
|
||||
|
||||
// Set card properties
|
||||
void SetDefaultSize(float width, float height);
|
||||
@@ -140,6 +141,7 @@ class EditorCard {
|
||||
bool closable_ = true;
|
||||
bool minimized_ = false;
|
||||
bool first_draw_ = true;
|
||||
bool* p_open_ = nullptr;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user