isolator 4 Posted October 1, 2014 Share Posted October 1, 2014 Hi. I put in a new key but I can not write to function. The teleport System is opened I would like to close with him.[Release]Teleportsystem Lite-Version [Gui+Quest+Code] I do not know how to give you the opening to the closing command in interfacemodule.py Help my. Thanks Link to comment Share on other sites More sharing options...
Active Member Koray 2002 Posted October 1, 2014 Active Member Share Posted October 1, 2014 telestatu = 0 def __Teleport(self): global telestatu if telestatu == 0: import uiteleport telestatu = 1 uiteleport.TeleportWindow().Open() else: import uiteleport telestatu = 0 uiteleport.TeleportWindow().Hide() try this Link to comment Share on other sites More sharing options...
isolator 4 Posted October 1, 2014 Author Share Posted October 1, 2014 Thans. well, that did not go to the teleport map. Maybe the wrong buttonI'll explain what I did. Locale_xy/ui/taskbar.py { "name" : "TeleportButton", "type" : "button", "x" : SCREEN_WIDTH - 178, "y" : 3 + Y_ADD_POSITION, "tooltip_text" : "Teleport", "default_image" : ROOT + "TaskBar/Inventory_Button_01.sub", "over_image" : ROOT + "TaskBar/Inventory_Button_02.sub", "down_image" : ROOT + "TaskBar/Inventory_Button_03.sub", }, uitaskbar.py toggleButtonDict[TaskBar.BUTTON_TELEPORT]=self.GetChild("TeleportButton") BUTTON_TELEPORT = 4 interfacemudule.py: import uiteleport self.wndTaskBar.SetToggleButtonEvent(uiTaskBar.TaskBar.BUTTON_TELEPORT, ui.__mem_func__(self.ToggleUiteleportWindow)) it's so good? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now