This commit is contained in:
Михаил Капелько
2024-06-30 23:23:23 +03:00
parent 042f73126c
commit eed8001a01
2 changed files with 19 additions and 0 deletions

View File

@@ -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:

View File

@@ -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)