[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kajongg/sid] src: UITile: simplify showFace: Always show if tile is known (not Xy)
From:       Wolfgang Rohdewald <wolfgang () rohdewald ! de>
Date:       2013-10-31 21:21:09
Message-ID: E1Vbzfx-0002lj-Bw () scm ! kde ! org
[Download RAW message or body]

Git commit a11da8497dc0b9d2c9075e744ce4221596536dd4 by Wolfgang Rohdewald.
Committed on 31/10/2013 at 05:00.
Pushed by wrohdewald into branch 'sid'.

UITile: simplify showFace: Always show if tile is known (not Xy)

M  +2    -8    src/uitile.py

http://commits.kde.org/kajongg/a11da8497dc0b9d2c9075e744ce4221596536dd4

diff --git a/src/uitile.py b/src/uitile.py
index 684426b..ff52b82 100644
--- a/src/uitile.py
+++ b/src/uitile.py
@@ -23,7 +23,7 @@ from PyQt4.QtGui import QGraphicsObject, QGraphicsItem, QPixmap, QPainter
 from PyQt4.QtGui import QColor
 from util import logException, stack, logDebug
 from guiutil import Painter
-from common import LIGHTSOURCES, ZValues, Internal, Preferences, Debug, isAlive
+from common import LIGHTSOURCES, ZValues, Preferences, Debug, isAlive
 
 from tile import Tile
 from meld import Meld
@@ -135,13 +135,7 @@ class UITile(QGraphicsObject):
 
     def showFace(self):
         """should we show face for this tile?"""
-        game = Internal.field.game
-        element = self.tile
-        if game and game.isScoringGame():
-            result = element and element != 'Xy' and (self.yoffset or not self.dark)
-        else:
-            result = element and element != 'Xy' and not self.dark
-        return result
+        return self.tile != 'Xy'
 
     def __elementId(self):
         """returns the SVG element id of the tile"""

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic