asumagic / kag-staging

Issue tracker for the KAG staging build
6 stars 0 forks source link

Imgui Script bind flickering #213

Open Vam-Jam opened 2 weeks ago

Vam-Jam commented 2 weeks ago

Putting two script made Imgui menus on the same tab causes Imgui to flicker every other frame, and soft locks input from other Imgui frames (such as console, debug etc)

Before combining:

After:

Code:

void onRender(CRules@ this) {
    if (!ImGui::Begin("Hello")) {
        ImGui::End();
        return;
    }
    ImGui::End();

    if (!ImGui::Begin("World")) {
        ImGui::End();
        return;
    }
    ImGui::End();
}