feat(MainWindow): tab self added noclip

This commit is contained in:
Yimura 2021-05-19 14:36:21 +02:00
parent bb45b9c765
commit fcfa3094e4
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#include "tabs.hpp" #include "tabs.hpp"
#include "imgui.h" #include "core/globals.hpp"
namespace big namespace big
{ {
@ -7,8 +7,7 @@ namespace big
{ {
if (ImGui::BeginTabItem("Self")) if (ImGui::BeginTabItem("Self"))
{ {
ImGui::Text("Yeet"); ImGui::Checkbox("No Clip", &g.self.noclip);
//ImGui::Checkbox("No Clip", nullptr);
ImGui::EndTabItem(); ImGui::EndTabItem();
} }

View File

@ -1,9 +1,12 @@
#pragma once #pragma once
#include "common.hpp"
#include "imgui.h"
namespace big namespace big
{ {
class tab_main { class tab_main {
public: public:
static void tab_self(); static void tab_self();
static void tab_spawn();
}; };
} }

View File

@ -12,6 +12,7 @@ namespace big
{ {
ImGui::BeginTabBar("tabbar"); ImGui::BeginTabBar("tabbar");
tab_main::tab_self(); tab_main::tab_self();
tab_main::tab_spawn();
ImGui::EndTabBar(); ImGui::EndTabBar();
} }
ImGui::End(); ImGui::End();