forked from h33p/m0dular-menu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestmenu.cpp
66 lines (53 loc) · 1.18 KB
/
testmenu.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "menuimpl.h"
#include "menu.h"
#include "widgets.h"
static void AimbotTab();
static void VisualsTab();
static void AntiaimTab();
static void OtherTab();
const MenuTab tabs[] = {
{"Aimbot", AimbotTab},
{"Visuals", VisualsTab},
{"Antiaim", AntiaimTab},
{"Misc", nullptr},
{"Other", OtherTab}
};
void MenuImpl::Render()
{
Menu::Render(tabs, sizeof(tabs) / sizeof(tabs[0]));
}
float globalFloat = 43;
float anotherGlobalFloat = 43;
int globalInt = 3;
int anotherGlobalInt = 10;
float globalVec[4];
static void AimbotTab()
{
TabPad pad;
ImGui::Button("OWO");
ImGui::Columns(2, nullptr, true);
ImGui::BeginChild("C1", ImVec2(0, 0), true, ImGuiWindowFlags_NoBackground);
{
Slider<float>::Run(globalFloat);
Slider<float>::Run(anotherGlobalFloat, -12, 12, "Floaty thing");
CheckBox::Run(globalInt, "Bool");
}
ImGui::EndChild();
ImGui::NextColumn();
ImGui::BeginChild("C2", ImVec2(0, 0), true, ImGuiWindowFlags_NoBackground);
{
Slider<int>::Run(globalInt, 0, 100);
Slider<float>::Run(anotherGlobalInt, 0, 100);
SliderVec<float, 4>::Run(globalVec, 0, 100);
}
ImGui::EndChild();
}
static void VisualsTab()
{
}
static void AntiaimTab()
{
}
static void OtherTab()
{
}