From d2f1fbbecc36f24e131cf050071a8f073dc058d8 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 23 Aug 2025 19:03:46 +0200 Subject: improve draft activity ui and introduce wasm specific ui constants --- go/ui/constants.go | 6 ++++++ go/ui/constants_wasm.go | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 go/ui/constants.go create mode 100644 go/ui/constants_wasm.go (limited to 'go/ui') diff --git a/go/ui/constants.go b/go/ui/constants.go new file mode 100644 index 00000000..052ae527 --- /dev/null +++ b/go/ui/constants.go @@ -0,0 +1,6 @@ +//go:build !wasm +package ui + +const ( + DRAFT_DECK_VIEW_SCALE = 0.5 +) diff --git a/go/ui/constants_wasm.go b/go/ui/constants_wasm.go new file mode 100644 index 00000000..e6e2bbce --- /dev/null +++ b/go/ui/constants_wasm.go @@ -0,0 +1,8 @@ +package ui + +const ( + // The atlas of the ebiten wasm port does not allow as big imaes as the linux version. + // Therefore, we scale the deck view to reduce its size. + // FIXME: This is only needed because the cardView rendering is very naiv. + DRAFT_DECK_VIEW_SCALE = 0.35 +) -- cgit v1.2.3