|
|
@@ -76,6 +76,24 @@ def desktop_deselectMismatchedTiles(p): |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Display description for the first selected tile |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. tile has just been selected and it's the first one in pair |
|
|
|
def desktop_displayDesc(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.desc.texture = p.descTextures[gid] |
|
|
|
p.desc.visible = True |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Hide deselected tile and show selected one |
|
|
|
# |
|
|
|
# Conditions: |
|
|
@@ -108,6 +126,19 @@ def desktop_displayTitle(p): |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Hide description |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. tiles has been mismatched or timed out to to hide after matching |
|
|
|
def desktop_hideDesc(p): |
|
|
|
if ( |
|
|
|
p.c.recentField == "hideMatchingTiles" or |
|
|
|
p.c.recentField == "mismatchedItems" |
|
|
|
): |
|
|
|
p.desc.visible = False |
|
|
|
#} |
|
|
|
#} |
|
|
|
|
|
|
|
# Hide matching tiles |
|
|
|
# |
|
|
|
# Conditions: |
|
|
@@ -126,7 +157,7 @@ def desktop_hideMatchingTiles(p): |
|
|
|
# Hide title |
|
|
|
# |
|
|
|
# Conditions: |
|
|
|
# 1. tiles has been scheduled to hide after being matched or just mismatched |
|
|
|
# 1. tiles has been mismatched or timed out to to hide after matching |
|
|
|
def desktop_hideTitle(p): |
|
|
|
if ( |
|
|
|
p.c.recentField == "hideMatchingTiles" or |
|
|
|