Skip to content

Commit

Permalink
fix constants naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Apr 24, 2024
1 parent 3fd0bfc commit 814f380
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 96 deletions.
2 changes: 1 addition & 1 deletion ClickableWidgets.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func (t *TreeNodeWidget) Build() {
if open {
t.layout.Build()

if (t.flags & imgui.TreeNodeFlagsNoTreePushOnOpen) == 0 {
if (imgui.TreeNodeFlags(t.flags) & imgui.TreeNodeFlagsNoTreePushOnOpen) == 0 {
imgui.TreePop()
}
}
Expand Down
8 changes: 4 additions & 4 deletions Direction.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ type Direction imgui.Dir

// directions.
const (
DirectionLeft Direction = imgui.DirLeft
DirectionRight Direction = imgui.DirRight
DirectionUp Direction = imgui.DirUp
DirectionDown Direction = imgui.DirDown
DirectionLeft = Direction(imgui.DirLeft)
DirectionRight = Direction(imgui.DirRight)
DirectionUp = Direction(imgui.DirUp)
DirectionDown = Direction(imgui.DirDown)
)
Loading

0 comments on commit 814f380

Please sign in to comment.