Jump to content
For maintenance and updates, the community will be offline on 31 December 2022 ×
  • 0

New button function help


isolator

Question

  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0
	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

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 992

      [40250] Reference Serverfile + Client + Src [15 Available Languages]

    2. 3

      Biologist Manager (C++ & LUA)

    3. 3

      Visual studio 2022 compiling issue

    4. 63

      Metin2 | Mount System Renewal

    5. 58

      Metin2 2004 Beta Client

    6. 0

      🔥Paradise2 PVP SERVER GLOBAL!! EN-ES-PT 🕐📢Apertura 11 de diciembre 21 horas de España!

    7. 0

      Please help here ( Sush system problem )

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.