Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Combo: example
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin8105 committed Apr 20, 2022
1 parent 71ca49b commit 72692f1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions internal/demo/Window.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,11 @@ func (widgets *widgets) show() {
widgets.radio = 2
}

var c int
imgui.Combo("combo", &c, []string{
"first",
"second",
"car",
}, 0)
imgui.Combo("combo", &widgets.radio, []string{
"one item",
"two items",
"three items",
})

imgui.TreePop()
}
Expand Down

0 comments on commit 72692f1

Please sign in to comment.