[gnome-nibbles] worm: Fix bug with scoreboard not showing more than 6 lives
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-nibbles] worm: Fix bug with scoreboard not showing more than 6 lives
- Date: Mon, 26 Oct 2015 00:22:27 +0000 (UTC)
commit 2b054b1123a5504bf3f96efc1c79de7d18b994e3
Author: Iulian Radu <iulian radu67 gmail com>
Date: Wed Sep 16 13:57:53 2015 +0300
worm: Fix bug with scoreboard not showing more than 6 lives
src/gnome-nibbles.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-nibbles.vala b/src/gnome-nibbles.vala
index 69719ac..6ddba90 100644
--- a/src/gnome-nibbles.vala
+++ b/src/gnome-nibbles.vala
@@ -853,8 +853,10 @@ private class PlayerScoreBox : Gtk.Box
for (int i = 0; i < Worm.MAX_LIVES; i++)
{
var life = new Gtk.Image.from_pixbuf (life_pixbuf);
- if (i < Worm.STARTING_LIVES)
- life.show ();
+ life.show ();
+
+ if (i >= Worm.STARTING_LIVES)
+ life.set_opacity (0);
life_images.add (life);
lives_grid.attach (life, i % 6, i / 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]