Jump to content

New button function help


Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Thans.

well, that did not go to the teleport map. Maybe the wrong button
I'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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.