Implemented Animation Clip asset and animation controller #410
|
@ -69,16 +69,18 @@ namespace SHADE
|
|||
if (controllerData.has_value())
|
||||
{
|
||||
// Calculate size of each portion
|
||||
const float MAIN_PANEL_COLUMN_WIDTH = ImGui::GetWindowSize().x * 0.7f;
|
||||
const float WINDOW_WIDTH = ImGui::GetWindowSize().x;
|
||||
const float MAIN_PANEL_COLUMN_WIDTH = WINDOW_WIDTH * 0.7f;
|
||||
const float SIDE_PANELS_COLUMN_WIDTH = (WINDOW_WIDTH - MAIN_PANEL_COLUMN_WIDTH) * 0.5f;
|
||||
|
||||
// Draw
|
||||
drawActiveMenuBar();
|
||||
ImGui::BeginTable("base_table", 3);
|
||||
ImGui::BeginTable("base_table", 3, ImGuiTableFlags_Resizable);
|
||||
{
|
||||
// Set up Columns
|
||||
ImGui::TableSetupColumn("params_panel", ImGuiTableColumnFlags_WidthStretch);
|
||||
ImGui::TableSetupColumn("params_panel", ImGuiTableColumnFlags_WidthStretch, SIDE_PANELS_COLUMN_WIDTH);
|
||||
ImGui::TableSetupColumn("main_panel", ImGuiTableColumnFlags_WidthFixed, MAIN_PANEL_COLUMN_WIDTH);
|
||||
ImGui::TableSetupColumn("prop_panel", ImGuiTableColumnFlags_WidthStretch);
|
||||
ImGui::TableSetupColumn("prop_panel", ImGuiTableColumnFlags_WidthStretch, SIDE_PANELS_COLUMN_WIDTH);
|
||||
|
||||
// Render contents
|
||||
ImGui::TableNextRow();
|
||||
|
|
Loading…
Reference in New Issue