refactor: changed child id

This commit is contained in:
2021-11-14 12:05:41 +01:00
parent 44922d1819
commit fec62d5961

View File

@@ -15,7 +15,7 @@ TowerPlacePopup::TowerPlacePopup(client::Client* client) : GuiWidget(client) {
void TowerPlacePopup::render() {
if (ImGui::BeginPopup("TowerPlace")) {
ImGui::BeginChild("SubWindow", ImVec2(800, m_TowerPopupTileHeight + 20), false, ImGuiWindowFlags_HorizontalScrollbar);
ImGui::BeginChild("TowerPlacePopupChild", ImVec2(800, m_TowerPopupTileHeight + 20), false, ImGuiWindowFlags_HorizontalScrollbar);
for (int i = 0; i < (int)game::TowerType::TowerCount; i++) {
if (i > 0) ImGui::SameLine();