d
This commit is contained in:
@@ -78,6 +78,24 @@ def desktop_displaySelectedTile(p):
|
||||
#}
|
||||
#}
|
||||
|
||||
# Display title for the first selected tile
|
||||
#
|
||||
# Conditions:
|
||||
# 1. tile has just been selected and it's the first one in pair
|
||||
def desktop_displayTitle(p):
|
||||
if (
|
||||
p.c.recentField == "selectedId" and
|
||||
(
|
||||
len(p.c.selectedItems) == 0 or
|
||||
len(p.c.selectedItems) == 2
|
||||
)
|
||||
):
|
||||
gid = p.c.playfieldItems[p.c.selectedId]
|
||||
p.title.texture = p.titleTextures[gid]
|
||||
p.title.visible = True
|
||||
#}
|
||||
#}
|
||||
|
||||
# Hide matching tiles
|
||||
#
|
||||
# Conditions:
|
||||
|
||||
@@ -95,6 +95,7 @@ def process(c):
|
||||
# Similar to context functions, but no platform is returned.
|
||||
desktop_deselectMismatchedTiles(p)
|
||||
desktop_displaySelectedTile(p)
|
||||
desktop_displayTitle(p)
|
||||
desktop_hideMatchingTiles(p)
|
||||
desktop_scheduleHidingOfMatchingTiles(p)
|
||||
desktop_scheduleDeselectionOfMismatchedTiles(p)
|
||||
|
||||
Reference in New Issue
Block a user