Is it possible to change the button name when you click it?
I'm currently doing a imgui project. I want to change the Global
view and the Local
view in one button using ImGui::Button
. Is that possible in the current ImGui version right now?
Is it possible to change the button name when you click it?
I'm currently doing a imgui project. I want to change the Global
view and the Local
view in one button using ImGui::Button
. Is that possible in the current ImGui version right now?
Just change the label of the button depending on your current state.. And you can use the ### operator (described in FAQ) to keep a stable ID.