aboutsummaryrefslogtreecommitdiff
path: root/go/ui/stateBar.go
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-02-03 14:05:14 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-08-20 15:46:38 +0200
commit8802f30ff720fcb64d9207c4cb673dc6805390c2 (patch)
tree9be529221105fc8681e3afb0e673e229ef9504d4 /go/ui/stateBar.go
parente8f44219976edf8cf57cbd9e964f66fe9d145a9c (diff)
downloadmuhqs-game-8802f30ff720fcb64d9207c4cb673dc6805390c2.tar.gz
muhqs-game-8802f30ff720fcb64d9207c4cb673dc6805390c2.zip
add text input and properly center text
Diffstat (limited to 'go/ui/stateBar.go')
-rw-r--r--go/ui/stateBar.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/go/ui/stateBar.go b/go/ui/stateBar.go
index 6914de6e..3b9407b5 100644
--- a/go/ui/stateBar.go
+++ b/go/ui/stateBar.go
@@ -50,12 +50,12 @@ func (sb *StateBar) FindObjectAt(x, y int) interface{} {
func (sb *StateBar) ForceRedraw() {
if sb.resourceView != nil {
- sb.resourceView.Text = sb.resourceLabel()
+ sb.resourceView.text = sb.resourceLabel()
sb.resourceView.ForceRedraw()
}
if sb.phaseView != nil {
- sb.phaseView.Text = sb.phaseLabel()
+ sb.phaseView.text = sb.phaseLabel()
sb.phaseView.ForceRedraw()
}
}