Proper build UI

This commit is contained in:
2024-01-23 16:54:39 +01:00
parent f3acb1a0a3
commit b6e54a7fcb
9 changed files with 110 additions and 30 deletions

View File

@@ -616,11 +616,12 @@ void imguiRender(float dt, void *userData) {
}
if (igCollapsingHeader_TreeNodeFlags("Resources", 0)) {
igText("Wood: %lld", game->resources.wood);
igText("Iron: %lld", game->resources.iron);
igText("Food: %lld", game->resources.food);
igText("Gold: %lld", game->resources.gold);
igText("Population: %lld", game->resources.pop);
PlayerResources resources = game->playerResources[game->player];
igText("Wood: %lld", resources.wood);
igText("Food: %lld", resources.food);
igText("Gold: %lld", resources.gold);
igText("Pop: %lld", resources.pop);
igText("Pop Capacity: %lld", resources.pop);
}
if (igCollapsingHeader_TreeNodeFlags("BuildMenu", 0)) {
for (int i = BUILDING_NONE; i < BUILDING_COUNT; i++) {