diff --git a/examples/game/assets/html/main.html b/examples/game/assets/html/main.html index 3d62b84..ed70ae5 100644 --- a/examples/game/assets/html/main.html +++ b/examples/game/assets/html/main.html @@ -16,7 +16,7 @@ flex-grow: 1; } - panel { + .panel-outer { width: 300px; height: 300px; margin-top: 120px; @@ -26,7 +26,7 @@ justify-content: center; } - panel-inner { + .panel-inner { flex-direction: column; align-items: center; justify-content: center; @@ -120,7 +120,7 @@ top: 52; } - play-game-inner-panel { + .play-game-panel { width: 260px; height: 140px; flex-direction: column; @@ -156,8 +156,8 @@ - - + + Health @@ -166,7 +166,7 @@ Mana - + Inventory OK @@ -185,13 +185,13 @@ - + PLAY THE GAME? YES NO - + diff --git a/examples/game/main.go b/examples/game/main.go index dc3d644..bf55a5b 100644 --- a/examples/game/main.go +++ b/examples/game/main.go @@ -89,7 +89,6 @@ func (g *Game) setupUI() { Height: g.screen.Height, Components: map[string]furex.Component{ "panel": &widgets.Panel{}, - "panel-inner": &widgets.Panel{}, "gauge-text": &widgets.Text{Color: color.RGBA{50, 48, 41, 255}}, "health-gauge": &widgets.Bar{Color: "Green", Value: .8}, "mana-gauge": &widgets.Bar{Color: "Blue", Value: .8},