diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-09-03 14:26:21 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-09-03 14:26:21 +0200 |
| commit | 24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e (patch) | |
| tree | 40310c055521bad4fc2bd706e8fdb9b7dc1fb2cd /go/ui/collection.go | |
| parent | 0587acd2dd03cb92d67ad0651eedda7275c084d7 (diff) | |
| download | muhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.tar.gz muhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.zip | |
add ui to packages and format code
Diffstat (limited to 'go/ui/collection.go')
| -rw-r--r-- | go/ui/collection.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/go/ui/collection.go b/go/ui/collection.go index 20dff35e..3de52e11 100644 --- a/go/ui/collection.go +++ b/go/ui/collection.go @@ -97,7 +97,6 @@ func (c *Collection) Contains(x, y int) bool { } func (c *Collection) FindWidgetAt(x, y int) Widget { - // Iterate the widget in reverse order to ensure that upper widgets are // considered first for i := len(c.widgets) - 1; i >= 0; i-- { @@ -111,7 +110,6 @@ func (c *Collection) FindWidgetAt(x, y int) Widget { } func (c *Collection) FindObjectAt(x, y int) any { - // Iterate the widget in reverse order to ensure that upper widgets are // considered first for i := len(c.widgets) - 1; i >= 0; i-- { @@ -128,7 +126,6 @@ func (c *Collection) switchFocus(fcsbl Widget) { log.Printf("switch focus from %v to %v\n", c.focused, fcsbl) if c.focused != nil { c.focused.Focus(false) - } if fcsbl != nil { fcsbl.Focus(true) |
