if (Gui::bShowWindow)
{
SF->getSAMP()->getMisc()->ToggleCursor(3, true);
ImGui::GetIO().MouseDrawCursor = 1;
ImGui::GetIO().ConfigFlags &= ~ImGuiConfigFlags_NoMouseCursorChange;
ImGui::SetNextWindowSize(ImVec2(Gui::screenSize.x / 2, Gui::screenSize.y / 3), 0.0f);
ImGui::SetNextWindowPos(
ImVec2((Gui::screenSize.x / 2)*0.5, (Gui::screenSize.y / 2)*0.5), 0.0f, ImVec2(0.0, 0.0));
ImGui::Begin("GUI", &Gui::bShowWindow,
ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoResize);
{
...
}
ImGui::End();
ImGui::GetIO().MouseDrawCursor = 0;
ImGui::GetIO().ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange;
}