inventorywindow
Code:
{ "name" : "SwitchButton", "type" : "button", "x" : 100, "y" : 3, "tooltip_text" : uiScriptLocale.SWITCH_TITLE, "default_image" : "d:/ymir work/ui/terkea/bonus_button_01.tga", "over_image" : "d:/ymir work/ui/terkea/bonus_button_02.tga", "down_image" : "d:/ymir work/ui/terkea/bonus_button_03.tga", },
Code:
self.SwitchButton=self.GetChild2("SwitchButton")
Code:
# SwitchButtonifself.SwitchButton: self.SwitchButton.SetEvent(ui.__mem_func__(self.ClickSwitchButton))
Code:
self.SwitchButton=None
Code:
# SwitchButtondefClickSwitchButton(self): if self.switchbot.bot_shown ==1: self.switchbot.Hide() else: self.switchbot.Show()