Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "menu.hpp"
- // note from alpha:
- // i strongly suggest people to use namespaces insteas of classes and singletons
- // not only is it a bad habit, i overused singletons in this sdk, and they're not thread safe.
- void menu::render() {
- static bool checkbox;
- static bool Test;
- static bool test2;
- static float sliderf;
- static int slideri, dropdown;
- zgui::poll_input("Counter-Strike: Global Offensive");
- // could add an if statement but whatever
- if (zgui::begin_window("FatalCheats - Non-Paste", { 500, 350 }, render::main_font)) {
- if (zgui::tab_button("Test", { 165,30 }, Test))
- {
- Test = true;
- test2 = false;
- }
- zgui::next_column(-5, 0);
- if (zgui::tab_button("Test2", { 165,30 }, test2))
- {
- Test = false;
- test2 = true;
- }
- zgui::next_column(-327, 34);
- if (Test) draw_tab_1();
- if (test2) draw_tab_2();
- zgui::end_window();
- }
- }
- void menu::draw_tab_1()
- {
- static bool checkbox;
- zgui::checkbox("yikes", checkbox);
- }
- void menu::draw_tab_2()
- {
- static bool checkbox;
- zgui::checkbox("yikes", checkbox);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement