Proper build UI
This commit is contained in:
11
game/main.c
11
game/main.c
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user