fix(TabOnline): Fixed weather switch combo UI bug

This commit is contained in:
Yimura 2020-12-31 11:04:38 +01:00
parent fe9d985d9e
commit 9ab3b97947
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -99,7 +99,8 @@ namespace big
}
ImGui::Text("Weather:");
ImGui::BeginCombo("##weather", weatherTypes[g_temp.weather_type]);
if (ImGui::BeginCombo("##weather", weatherTypes[g_temp.weather_type]))
{
for (uint8_t i = 0; i < IM_ARRAYSIZE(weatherTypes); i++)
{
bool is_selected = (g_temp.weather_type == i);
@ -116,6 +117,7 @@ namespace big
ImGui::SetItemDefaultFocus();
}
ImGui::EndCombo();
}
ImGui::TreePop();
}