Switchbot in Inventar

03/24/2015 23:42 thespeedyy#1
Das hab ich soweit in der Game
Code:
def __ServerCommand_Build(self):
#Boniswitch
			"BoniSwitch"			: self.__MakeBoniSwitch,

def __MakeBoniSwitch(self):
		chat.AppendChat(chat.CHAT_TYPE_INFO, "Button funkt")
		import switchbot
		self.switchidialog = switchbot.Bot()
		self.switchidialog.Show()
und in der inventorywindow
Code:
{
					"name" : "BoniSwitch",
					"type" : "button",
					
					"x" : 55,
					"y" : 305,
					
					"tooltip_text" : "BoniSwitch",
					
					"default_image" : "d:/ymir work/ui/game/inventar/boniswitch.tga",
					"over_image" : "d:/ymir work/ui/game/inventar/boniswitch2.tga",
					"down_image" : "d:/ymir work/ui/game/inventar/boniswitch2.tga",					
				},
trotzdem nimmt er den button nicht an, nicht mal der chat teil kommt..
py heißt switchbot.py.

sonst ist alles nochmal im anhang
03/24/2015 23:46 .JeQuila.#2
mh versuchs mal über eine tastenkombination zu regeln :3

vllt geht ja der bot nicht :D
03/24/2015 23:55 thespeedyy#3
über nä taste gehts^^ sieht man in der game auch, möchte es gerne so^^
03/25/2015 00:09 .JeQuila.#4
mh dann liegts an der funktion des buttons :/
schaus mir morgen mal an :D
03/25/2015 02:19 thespeedyy#5
habs hin gekriegt^^
weißt du wie ich [Only registered and activated users can see links. Click Here To Register...] als hotkey mache?
03/25/2015 11:30 .JeQuila.#6
Ja es gibt eine .py da sind die Tasten und deren Funktionen definiert :) da einfach eine Zeile anfügen :)