This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/BigBaseV2/src/gui/tab_bar/tab_weapons.cpp

25 lines
550 B
C++
Raw Normal View History

2021-01-13 16:55:49 +01:00
#include "tab_bar.hpp"
namespace big
{
static const double min = 1, max = 5;
void tabbar::render_weapons()
{
if (ImGui::BeginTabItem("Weapons"))
{
if (ImGui::TreeNode("Gravity Gun"))
{
if (ImGui::Checkbox("Gravity Gun", g_settings.options["gravity_gun"]["enabled"].get<bool*>()))
g_settings.save();
if (ImGui::SliderScalar("Multiplier", ImGuiDataType_Double, g_settings.options["gravity_gun"]["multiplier"].get<double*>(), &min, &max))
g_settings.save();
ImGui::TreePop();
}
ImGui::EndTabItem();
}
}
}