[lightsoff] Fixes based on review



commit 09a99960a45ef6f7f6640bf005fccc8a213576e0
Author: Robert Roth <robert roth off gmail com>
Date:   Fri Jan 2 00:29:56 2015 +0200

    Fixes based on review

 src/board-view.vala |    5 +++--
 src/lightsoff.vala  |    7 ++++++-
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/board-view.vala b/src/board-view.vala
index fe3f562..d86e97f 100644
--- a/src/board-view.vala
+++ b/src/board-view.vala
@@ -77,9 +77,10 @@ public class BoardView : Clutter.Group
     private Clutter.Texture off_texture;
     private Clutter.Texture on_texture;
     private Light[,] lights;
-    private int _moves = 0;
+
     public bool playable = true;
-    
+
+    private int _moves = 0;
     public int moves
     {
         get { return _moves;}
diff --git a/src/lightsoff.vala b/src/lightsoff.vala
index 4b629c2..a18c769 100644
--- a/src/lightsoff.vala
+++ b/src/lightsoff.vala
@@ -111,7 +111,12 @@ public class LightsOff : Gtk.Application
     {
         /* The title of the window, %d is the level number */
         headerbar.title = _("Level %d").printf (level);
-        update_subtitle (0);
+
+        /* Subtitle is a game hint when playing level one, the number of moves otherwise */
+        if (level == 1)
+            headerbar.subtitle = _("Turn off all the lights!");
+        else
+            update_subtitle (0);
     }
 
     private void previous_level_cb ()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]