CogWindow: simplify how CogWidgets are rendered

Remove the need to specify the widgets width to be able to right them.
Instead widgets are rendered in a table which left/center/right align automatically.
This commit is contained in:
Arnaud Jamin
2025-01-30 13:15:25 -05:00
parent fff036d81f
commit 1cecf93841
28 changed files with 386 additions and 323 deletions
@@ -140,7 +140,7 @@ void FCogAIWindow_BehaviorTree::RenderContent()
ImGui::EndMenu();
}
FCogWindowWidgets::SearchBar(Filter);
FCogWindowWidgets::SearchBar("##Filter", Filter);
ImGui::EndMenuBar();
}
@@ -46,7 +46,7 @@ void FCogAIWindow_Blackboard::RenderContent()
ImGui::EndMenu();
}
FCogWindowWidgets::SearchBar(Filter);
FCogWindowWidgets::SearchBar("##Filter", Filter);
ImGui::EndMenuBar();
}