feat(GUI): Added Tunables tab

This commit is contained in:
Yimura 2020-12-26 16:47:27 +01:00
parent b917ac9905
commit e026f8e97d
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78
3 changed files with 19 additions and 2 deletions

View File

@ -11,6 +11,7 @@ namespace big
{ {
ImGui::BeginTabBar("tabbar"); ImGui::BeginTabBar("tabbar");
tabbar::render_self(); tabbar::render_self();
tabbar::render_tunables();
ImGui::EndTabBar(); ImGui::EndTabBar();
} }
ImGui::End(); ImGui::End();

View File

@ -9,12 +9,11 @@
namespace big namespace big
{ {
using namespace features;
class tabbar class tabbar
{ {
public: public:
static void render_self(); static void render_self();
static void render_tunables();
}; };
} }

View File

@ -0,0 +1,17 @@
#include "tab_bar.hpp"
#include "pointers.hpp"
#include "script_global.hpp"
namespace big
{
void tabbar::render_tunables()
{
if (ImGui::BeginTabItem("Tunables"))
{
if (ImGui::Checkbox("No Idle Kick", g_settings.options["no_idle_kick"].get<bool*>()))
g_settings.save();
ImGui::EndTabItem();
}
}
}