wip(Stats/Features): Pushing progress for stats & join message

This commit is contained in:
Yimura
2020-12-27 00:47:08 +01:00
parent 8df0c5bac9
commit db7e37f2a5
9 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,33 @@
#include "tab_bar.hpp"
namespace big
{
void tabbar::render_misc()
{
if (ImGui::BeginTabItem("Misc"))
{
if (ImGui::Checkbox("Player Join Message", g_settings.options["join_message"].get<bool*>()))
g_settings.save();
ImGui::Separator();
if (ImGui::Button("Unlock Achievements"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
features::stats::unlock_achievements();
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Unlock All Stats"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
features::stats::unlock_all();
}QUEUE_JOB_END_CLAUSE
}
ImGui::EndTabItem();
}
}
}