Михаил Капелько 4 ay önce
ebeveyn
işleme
eed8001a01
2 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. +18
    -0
      v5/desktop.py
  2. +1
    -0
      v5/main-gui.py

+ 18
- 0
v5/desktop.py Dosyayı Görüntüle

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


+ 1
- 0
v5/main-gui.py Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet