- 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
Problem is.. it won't open any window when trying to save existing config with changes u applied
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