Fixing the flow indication + making fixed pipes look different.
authorMarja Hassinen <marja2@Vahvero.(none)>
Mon, 4 Jan 2010 19:22:52 +0000 (21:22 +0200)
committerMarja Hassinen <marja2@Vahvero.(none)>
Mon, 4 Jan 2010 19:22:52 +0000 (21:22 +0200)
src/game.cpp

index 7c9f829..5fc6b07 100644 (file)
@@ -154,6 +154,10 @@ bool GameField::setPiece(int row, int col, const Piece* piece, bool fixed)
         QLabel* label = (QLabel*)fieldUi->indexWidget(index);
         label->setPixmap(QPixmap(iconId));
 
+        if (fixed) {
+            label->setStyleSheet("background-color: #263d49");
+        }
+
         return true;
     }
     return false;
@@ -190,7 +194,7 @@ void GameField::indicateFlow(int row, int col, Direction dir)
     if (row < 0 || col < 0 || row >= rows || col >= cols) {
         return;
     }
-    if (dir == DirDone || dir == DirFailed || dir == DirPassed) {
+    if (dir == DirFailed || dir == DirPassed) {
         // No need to indicate these pseudo-directions
         return;
     }
@@ -742,14 +746,15 @@ void LevelSwitcher::writeSavedGames()
     file.close();
 }
 
-// Todo next:
-// better graphics
-// save & load
-// level collections: introduction + basic
-// more levels
+// TODO:
+// --- 0.1 ---
+// more levels to the basic collection
 // make fixed pipes look different than non-fixed ones
+// get rid of debug prints
+// --- 0.2 ---
+// ability to install level sets as different packages
+// better graphics
 // color theme
-// --------------
 // re-placing pieces
 // graphical hints on what to do next
 // graphical help, showing the ui elements: demo