Implemented Animation Clip asset and animation controller #410

Merged
XiaoQiDigipen merged 66 commits from SP3-22-AnimationController into main 2023-03-09 16:19:40 +08:00
1 changed files with 6 additions and 4 deletions
Showing only changes of commit f8cc1fe2dc - Show all commits

View File

@ -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();