File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -261,11 +261,17 @@ func (hs *HUDStore) Draw(screen *ebiten.Image) {
261261 if cp .Lives == 0 {
262262 hs .winLoseTextW .Label = "YOU LOST"
263263 hs .winLoseTextW .GetWidget ().Visibility = widget .Visibility_Show
264+ } else if hs .winLoseTextW .GetWidget ().Visibility != widget .Visibility_Hide {
265+ hs .winLoseTextW .Label = ""
266+ hs .winLoseTextW .GetWidget ().Visibility = widget .Visibility_Hide
264267 }
265268
266269 if cp .Winner {
267270 hs .winLoseTextW .Label = "YOU WON!"
268271 hs .winLoseTextW .GetWidget ().Visibility = widget .Visibility_Show
272+ } else if hs .winLoseTextW .GetWidget ().Visibility != widget .Visibility_Hide {
273+ hs .winLoseTextW .Label = ""
274+ hs .winLoseTextW .GetWidget ().Visibility = widget .Visibility_Hide
269275 }
270276
271277 hs .ui .Draw (screen )
You can’t perform that action at this time.
0 commit comments