add: function for Animals button

This commit is contained in:
jadis0x
2022-10-03 19:28:14 +03:00
committed by GitHub
parent 85fd2f60a0
commit 5c019f3d91

View File

@@ -166,7 +166,7 @@ void DrawEntitiesTab() {
static int animal_current = 0;
ImGui::Combo("##an", &animal_current, animals_items, IM_ARRAYSIZE(animals_items));
if (ImGui::Button("Spawn##an")) {
//call spawn function
Misc::SpawnAnimal(animals_items[animal_current]);
}
}