Jump to content

Recommended Posts

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
https://metin2.dev/topic/3291-new-button-function-help/
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Active+ Member
	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
https://metin2.dev/topic/3291-new-button-function-help/#findComment-21580
Share on other sites

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
https://metin2.dev/topic/3291-new-button-function-help/#findComment-21582
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.