New button function help

10/01/2014 08:03 isolator0524#1
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.
[Only registered and activated users can see links. Click Here To Register...]

I do not know how to give you the opening to the closing command in interfacemodule.py
Help my.
Thanks
10/01/2014 16:57 .yorliK#2
I hope, i understand you correctly..

Open Game.py and search for:
Code:
onPressKeyDict[app.DIK_F4]	= lambda : self.__PressQuickSlot(7)
under this, make a new function like this, i used F6:
Code:
onPressKeyDict[app.DIK_F6]	= lambda : self.__TeleportGui()
now scroll till the end of game.py and add a new function:
Code:
	def __TeleportGui(self):
		self.teleport.Open()
10/02/2014 05:40 isolator0524#3
Thank you.
The problem is that I do not dislike it made ​​to the key button. I'll show you:
[Only registered and activated users can see links. Click Here To Register...]
In the picture you can see that there is a new button should be doing the opening and closing of the command in interfacemodule.py