Implemented Animation Clip asset and animation controller #410
|
@ -64,13 +64,34 @@ namespace SHADE
|
|||
SHEditorWindow::Update();
|
||||
|
||||
if (Begin())
|
||||
{
|
||||
|
||||
{
|
||||
// Only render the node editor if there is controller data
|
||||
if (controllerData.has_value())
|
||||
{
|
||||
drawActiveMenuBar();
|
||||
drawNodeEditor();
|
||||
// Calculate size of each portion
|
||||
const float MAIN_PANEL_COLUMN_WIDTH = ImGui::GetWindowSize().x * 0.7f;
|
||||
|
||||
// Draw
|
||||
drawActiveMenuBar();
|
||||
ImGui::BeginTable("base_table", 3);
|
||||
{
|
||||
// Set up Columns
|
||||
ImGui::TableSetupColumn("params_panel", ImGuiTableColumnFlags_WidthStretch);
|
||||
ImGui::TableSetupColumn("main_panel", ImGuiTableColumnFlags_WidthFixed, MAIN_PANEL_COLUMN_WIDTH);
|
||||
ImGui::TableSetupColumn("prop_panel", ImGuiTableColumnFlags_WidthStretch);
|
||||
|
||||
// Render contents
|
||||
ImGui::TableNextRow();
|
||||
{
|
||||
ImGui::TableSetColumnIndex(0);
|
||||
ImGui::Text("Parameters");
|
||||
ImGui::TableSetColumnIndex(1);
|
||||
drawNodeEditor();
|
||||
ImGui::TableSetColumnIndex(2);
|
||||
ImGui::Text("Properties");
|
||||
}
|
||||
}
|
||||
ImGui::EndTable();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue