mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-15 01:17:00 +00:00
Added Haddock in the (popup) Aquarium
This commit is contained in:
parent
f5ba64d8cd
commit
c6112550eb
@ -9473,7 +9473,7 @@ void ImGui::ShowTestWindow(bool* opened)
|
||||
{
|
||||
static bool popup_open = false;
|
||||
static int selected_fish = -1;
|
||||
const char* fishes[] = { "Bream", "Mackerel", "Pollock", "Tilefish" };
|
||||
const char* fishes[] = { "Bream", "Haddock", "Mackerel", "Pollock", "Tilefish" };
|
||||
if (ImGui::Button("Select.."))
|
||||
popup_open = true;
|
||||
ImGui::SameLine();
|
||||
@ -9481,6 +9481,8 @@ void ImGui::ShowTestWindow(bool* opened)
|
||||
if (popup_open)
|
||||
{
|
||||
ImGui::BeginPopup(&popup_open);
|
||||
ImGui::Text("Aquarium");
|
||||
ImGui::Separator();
|
||||
for (size_t i = 0; i < IM_ARRAYSIZE(fishes); i++)
|
||||
{
|
||||
if (ImGui::Selectable(fishes[i], false))
|
||||
|
Loading…
Reference in New Issue
Block a user