feat(session): Add Local Weather Options (#123)

Co-authored-by: LiamD-Flop <contact@liamd.me>
This commit is contained in:
Maddy
2022-03-21 17:06:16 -04:00
committed by GitHub
parent c659f68ab5
commit 0efb118349
3 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,4 @@
#include "fiber_pool.hpp"
#include "util/session.hpp"
#include "views/view.hpp"
@ -64,6 +65,26 @@ namespace big
ImGui::SliderInt("Second", &g->session.custom_time.second, 0, 59);
}
ImGui::TreePop();
}
if (ImGui::TreeNode("Local Weather"))
{
if (ImGui::Button("Clear Override"))
{
g_fiber_pool->queue_job([]
{
MISC::CLEAR_OVERRIDE_WEATHER();
});
}
if (ImGui::ListBox("", &g->session.local_weather, session::weathers, 15))
{
g_fiber_pool->queue_job([]
{
session::local_weather();
});
}
ImGui::TreePop();
}
}