Jump to content

[PY] Mostrar / Ocultar efecto premium


alexander0195

Mensajes recomendados

Sirve para mostrar y ocultar los iconos de la parte superior izquierda.

buscar en root / game.py

 

player.SetGameWindow(self)

Agrega abajo

        self.AffectShowHideBtn = ui.CheckBox()
        self.AffectShowHideBtn.SetEvent(ui.__mem_func__(self.__AffectShow), "ON_CHECK", True)
        self.AffectShowHideBtn.SetEvent(ui.__mem_func__(self.__AffectHide), "ON_UNCKECK", False)
        self.AffectShowHideBtn.SetCheckStatus(constInfo.AffectShowHide)
        self.AffectShowHideBtn.SetPosition(0, 0)
        self.AffectShowHideBtn.Show()


Agrega game.py al final o en algún lugar disponible

 

    def __AffectShow(self):
        constInfo.AffectShowHide = 1
        if constInfo.AffectShowHide == 1:
            self.affectShower.Show()
        chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Ikonlar gosterildi.")

    def __AffectHide(self):
        constInfo.AffectShowHide = 0
        if constInfo.AffectShowHide == 0:
            self.affectShower.Hide()
        chat.AppendChat(chat.CHAT_TYPE_INFO, "<Sistem> Ikonlar gizlendi.")

 

agregue root / costinfo.py a una ubicación disponible;

 

AffectShowHide = 1

 

Evidencia

17-AffectShow.PNG

IMG_20210621_161026.png

 

Es posible que sus archivos no tengan CheckBox adjunto. Puede verificar buscando CheckBox en ui.py.
Si no es así, descargue y adjunte el archivo a continuación.

Debes iniciar sesión para ver el contenido del enlace en esta publicación.

Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...