Question ImGui pop up problem

Devolus

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Apr 12, 2019
Messages
14
Reaction score
26
Hi, i currently use CSGOSIMPLE base and trying to work on it, i thought about adding popup when trying to save current config and i came up with this

C++:
if (ImGui::Button("Save"))
        {
            if (ImGui::BeginPopup("WARNING", ImGuiWindowFlags_AlwaysAutoResize))
            {
                ImGui::Text("Are you sure that you want to rewrite config?");
                if (ImGui::Button("Yes"))
                {
                    Config->save(current_config);
                }
                if (ImGui::Button("No"))
                    ImGui::EndPopup();
            }
        }


Problem is.. it won't open any window when trying to save existing config with changes u applied
 

quelz

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Mar 19, 2020
Messages
35
Reaction score
14
сын бляди нихуя не поняттно пиши по руски
 

designer

Newbie
Newbie
Newbie
Newbie
Status
Offline
Joined
Jun 15, 2019
Messages
10
Reaction score
2
ImGui::OpenPopup("WARNING")
 
Top