fix(TabOnline): Fixed weather switch combo UI bug
This commit is contained in:
parent
fe9d985d9e
commit
9ab3b97947
@ -99,7 +99,8 @@ namespace big
|
|||||||
}
|
}
|
||||||
|
|
||||||
ImGui::Text("Weather:");
|
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++)
|
for (uint8_t i = 0; i < IM_ARRAYSIZE(weatherTypes); i++)
|
||||||
{
|
{
|
||||||
bool is_selected = (g_temp.weather_type == i);
|
bool is_selected = (g_temp.weather_type == i);
|
||||||
@ -107,7 +108,7 @@ namespace big
|
|||||||
{
|
{
|
||||||
g_temp.weather_type = i;
|
g_temp.weather_type = i;
|
||||||
|
|
||||||
QUEUE_JOB_BEGIN_CLAUSE(=)
|
QUEUE_JOB_BEGIN_CLAUSE(= )
|
||||||
{
|
{
|
||||||
g_pointers->m_set_session_weather(1, i, 76, 0);
|
g_pointers->m_set_session_weather(1, i, 76, 0);
|
||||||
}QUEUE_JOB_END_CLAUSE
|
}QUEUE_JOB_END_CLAUSE
|
||||||
@ -116,6 +117,7 @@ namespace big
|
|||||||
ImGui::SetItemDefaultFocus();
|
ImGui::SetItemDefaultFocus();
|
||||||
}
|
}
|
||||||
ImGui::EndCombo();
|
ImGui::EndCombo();
|
||||||
|
}
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user