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

Commit

Permalink
Merge pull request #18 from Konstantin8105/main
Browse files Browse the repository at this point in the history
Combo: Example
  • Loading branch information
dertseha authored Jun 4, 2022
2 parents b723354 + 5c36865 commit bcadf4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/demo/Window.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func showUserGuide() {
type widgets struct {
buttonClicked int
check bool
radio int
radio int32
}

// nolint: nestif
Expand Down Expand Up @@ -224,6 +224,12 @@ func (widgets *widgets) show() {
widgets.radio = 2
}

imgui.Combo("combo", &widgets.radio, []string{
"one item",
"two items",
"three items",
})

imgui.TreePop()
}
}
Expand Down

0 comments on commit bcadf4e

Please sign in to comment.