zxvnme / zgui

zxvnme's graphical user interface
MIT License
399 stars 53 forks source link

[BUG] Menu rendering invisible #72

Open vk-nom opened 4 years ago

vk-nom commented 4 years ago

hey guys im new to this stuff and not really good at c++ but my menu isnt rendering onto my canvas and its just blocking all input until I toggle it using insert here's my code:

void renderMenu()
{
    zgui::poll_input("Counter-Strike: Global Offensive");

    if (zgui::begin_window("test", { 380, 520 }, zgui::zgui_window_flags_none)) {

        zgui::begin_groupbox("test", { 375, 515 }, zgui::zgui_window_flags_none);
        bool esp = false;
        zgui::checkbox("esp toggle", esp);
        zgui::end_groupbox();

    }
    zgui::end_window();
}

any help is appreciated

MihaiHvH commented 3 years ago

Did you call the function renderMenu() ?

vk-nom commented 3 years ago

yes I did

MihaiHvH commented 3 years ago

Do you use ZGUI v2 ? or LEGACY ? On zgui::begin_window("", {500, 350 }, UR_FONT, zgui::zgui_window_flags_none), you dont have a font :/ <----- On LEGACY

MihaiHvH commented 3 years ago

Btw when I try implement zgui my cs crash do you know why ?

vk-nom commented 3 years ago

i dont know