From 9e24ab99b9672a53fb8ca6cc2434fe79b6741e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sun, 30 Jun 2024 23:27:36 +0300 Subject: [PATCH] d --- v5/desktop.py | 13 +++++++++++++ v5/main-gui.py | 1 + 2 files changed, 14 insertions(+) diff --git a/v5/desktop.py b/v5/desktop.py index 1fbc73b..8380b13 100644 --- a/v5/desktop.py +++ b/v5/desktop.py @@ -111,6 +111,19 @@ def desktop_hideMatchingTiles(p): #} #} +# Hide title +# +# Conditions: +# 1. tiles has been scheduled to hide after being matched or just mismatched +def desktop_hideTitle(p): + if ( + p.c.recentField == "hideMatchingTiles" or + p.c.recentField == "mismatchedItems" + ): + p.title.visible = False + #} +#} + # Load tile textures def desktop_loadTextures(p): texs = [] diff --git a/v5/main-gui.py b/v5/main-gui.py index d8d47d0..9934de5 100644 --- a/v5/main-gui.py +++ b/v5/main-gui.py @@ -97,6 +97,7 @@ def process(c): desktop_displaySelectedTile(p) desktop_displayTitle(p) desktop_hideMatchingTiles(p) + desktop_hideTitle(p) desktop_scheduleHidingOfMatchingTiles(p) desktop_scheduleDeselectionOfMismatchedTiles(p) ctrl.registerCallback(process)