wip(Stats/Features): Pushing progress for stats & join message
This commit is contained in:
33
BigBaseV2/src/gui/tab_bar/tab_misc.cpp
Normal file
33
BigBaseV2/src/gui/tab_bar/tab_misc.cpp
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user