Implement market

This commit is contained in:
2024-02-11 10:22:09 +01:00
parent 71eddd9ec2
commit f984ca3163
3 changed files with 29 additions and 0 deletions

View File

@@ -422,6 +422,11 @@ void uiGameBuild(const char *label, Rectangle rec, Texture2D tex, bool canAfford
bzUIPopParent(UI);
}
bool uiGameTrade(const char *label, Rectangle rec, Texture2D tex, bool canAfford) {
bool selected = false;
uiGameBuild(label, rec, tex, canAfford, &selected);
return selected;
}
bool uiGameUnit(const char *label, i32 count, Rectangle rec, Texture2D tex) {
if (rec.height > 16)
rec.y += 16;