def initialize(self): Controller.initialize(self) self.log("Initializing %s" %(self.__name__)) # get the GUI and load the chat View self._gui = Engine().getGUI() self._gui.loadView(self._params["layout"])
def initialize(self): Controller.initialize(self) # get the GUI and load the chat View self._gui = Engine().getGUI() self._gui.loadView("stats.layout") # Watch for input events #self._gui.subscribeEvent("Chat/ChatWindow/ChatOkBtn", # self._gui.getEvent("PushButton/EventClicked"),self.onInput) self._textObject = self._gui.getObject("StatsWindow/Msg") self._winstats = self._gui.getObject("StatsWindow") self.setText("...") self._window = Engine().getRenderer().getRenderWindow() if self._params.has_key("visible") \ and self._params["visible"].lower() != "true": self._vis = False else: self._vis = True self._winstats.setVisible(self._vis)
def initialize(self): Controller.initialize(self) # get the GUI and load the chat View self._gui = Engine().getGUI() self._gui.loadView("chat.layout") # Watch for input events self._gui.subscribeEvent("Chat/ChatWindow/ChatOkBtn", "PushButton/EventClicked", self.onInput) self._gui.subscribeEvent("Chat/ChatWindow/ChatInput", "Editbox/EventTextAccepted", self.onInput) self._gui.subscribeEvent("Chat/ChatWindow/ChatInput", "Editbox/EventActivated", self.onFocus) self._textBox = self._gui.getObject("Chat/ChatWindow/ChatInput") self._chatBox = self._gui.getObject("Chat/ChatWindow/ChatBox") #.setText("Connection code is missing") # get Net and watch for incomming messages #self._net = wathever #self._net.subscribeMsg("chat,",self.onMsg) self.setVisible(False)
def initialize(self): Controller.initialize(self) self.log("Initializing %s" % (self.__class__.__name__))
def initialize(self): Controller.initialize(self) self.loadScene() print "World was initialized"
def initialize(self): Controller.initialize(self) self.toggleGUIFocus(False)