Cod: Selectaţi tot
InventoryWindow' object has no attribute 'switchbot'uiinventory.py
Cod: Selectaţi tot
#Button SwitchBot
if self.Alaska_py:
self.Alaska_py.SetEvent(ui.__mem_func__(self.ClickAlaska_py))Cod: Selectaţi tot
from switchbot import BotCod: Selectaţi tot
self.Alaska_py = self.GetChild2("Alaska_py")Cod: Selectaţi tot
def ClickAlaska_py(self):
import switchbot
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()Cod: Selectaţi tot
## SwitchBot
{
"name" : "Alaska_py",
"type" : "button",
"x" : 5,
"y" : 115,
"tooltip_text" : uiScriptLocale.MALL_TITLE,
"default_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_01.tga",
"over_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_02.tga",
"down_image" : "d:/ymir work/ui/game/TaskBar/Mall_Button_03.tga",
}, 






de