aboutsummaryrefslogtreecommitdiff
path: root/go/ui/cardView.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2025-09-03 14:26:21 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2025-09-03 14:26:21 +0200
commit24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e (patch)
tree40310c055521bad4fc2bd706e8fdb9b7dc1fb2cd /go/ui/cardView.go
parent0587acd2dd03cb92d67ad0651eedda7275c084d7 (diff)
downloadmuhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.tar.gz
muhqs-game-24a6b1d7aced3e2da8a4c26dfa844a6eaaf4632e.zip
add ui to packages and format code
Diffstat (limited to 'go/ui/cardView.go')
-rw-r--r--go/ui/cardView.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/ui/cardView.go b/go/ui/cardView.go
index 0dff9481..066b73fc 100644
--- a/go/ui/cardView.go
+++ b/go/ui/cardView.go
@@ -56,7 +56,8 @@ func NewToggleCardView(x, y, wdth, hght int, cardPath string) *ToggleCardView {
cv := &ToggleCardView{
EventHandlersMap: NewEventHandlersMap(),
cv: NewScaledCardView(x, y, wdth, hght, cardPath),
- expanded: true}
+ expanded: true,
+ }
cv.tgglBtn = NewSimpleButton(x, y+10, 80, 50, ">", func(b *SimpleButton) {
shift := float64(cv.cv.Width - 80)