aboutsummaryrefslogtreecommitdiff
path: root/go/ui
diff options
context:
space:
mode:
Diffstat (limited to 'go/ui')
-rw-r--r--go/ui/cardGrid.go8
-rw-r--r--go/ui/mapView.go2
2 files changed, 5 insertions, 5 deletions
diff --git a/go/ui/cardGrid.go b/go/ui/cardGrid.go
index abe1d60b..f6720ca1 100644
--- a/go/ui/cardGrid.go
+++ b/go/ui/cardGrid.go
@@ -35,7 +35,7 @@ func NewCardGrid(x, y, width, height int, scale float64, cards game.PileOfCards)
func (w *CardGrid) Columns(columns int) *CardGrid {
if w.rows != 0 {
- log.Fatalf("CardGrid can not have fixed columns and rows")
+ log.Panicf("CardGrid can not have fixed columns and rows")
}
w.columns = columns
return w
@@ -43,7 +43,7 @@ func (w *CardGrid) Columns(columns int) *CardGrid {
func (w *CardGrid) Rows(rows int) *CardGrid {
if w.columns != 0 {
- log.Fatalf("CardGrid can not have fixed columns and rows")
+ log.Panicf("CardGrid can not have fixed columns and rows")
}
w.rows = rows
return w
@@ -81,7 +81,7 @@ func (w *CardGrid) render() *ebiten.Image {
width = int(float64(w.columns) * w.cardWidth)
height = int(math.Ceil(float64(nCards)/float64(w.columns)) * w.cardHeight)
} else {
- log.Fatalf("CardGrid must have have fixed columns or rows")
+ log.Panicf("CardGrid must have have fixed columns or rows")
}
w.gridCards = nCards
w.grid = ebiten.NewImage(width, height)
@@ -90,7 +90,7 @@ func (w *CardGrid) render() *ebiten.Image {
for i, card := range cards {
cardImg := assets.GetCard(card.Path(), "en")
if cardImg == nil {
- log.Fatalf("No image found for %s", card.Path())
+ log.Panicf("No image found for %s", card.Path())
}
op := &ebiten.DrawImageOptions{}
diff --git a/go/ui/mapView.go b/go/ui/mapView.go
index 697eb774..155750b4 100644
--- a/go/ui/mapView.go
+++ b/go/ui/mapView.go
@@ -138,7 +138,7 @@ func getPermanentSymbol(p game.Permanent, i int) *ebiten.Image {
symbol := fmt.Sprintf("%c%d", unicode.ToUpper(rune(p.Card().Type.String()[0])), i)
permanentSymbol = assets.GetGenericSymbol(symbol)
if permanentSymbol == nil {
- log.Fatalf("Failed to generate generic symbol %s", symbol)
+ log.Panicf("Failed to generate generic symbol %s", symbol)
}
}