thennequin / ImWindow

Window and GUI system based on Dear ImGui from OCornut
MIT License
845 stars 119 forks source link

Dialog box system #20

Open thennequin opened 7 years ago

thennequin commented 7 years ago

Simple way to create custom dialog box with ImGui and ImWindow.

Example of use:


bool MyDialogBoxCallback(void* pUserData)
{
    ImGui::Text((const char*)pUserData);
    if (ImGui::Button("Close"))
        return true;
    return false;
}

ImwWindowManager::GetInstance()->ShowDialogBox( MyDialogBoxCallback, ImVec2( 200.f, 150.f ), "I'm UserData");