def __init__(self, params): Controller.__init__(self, params, "stats") self._msg2 = "" self._msg1 = "" self._markee = "sd7 Engine -Canvi - Demostration" self._i = 0 self._time = 0
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 terminate(self): self._gui.destroyObject("StatsWindow") Controller.terminate(self)
def initialize(self): Controller.initialize(self) self.log("Initializing %s" % (self.__class__.__name__))
def __init__(self, params): Controller.__init__(self, params) self._renderer = Engine().getRenderer() self._camera = self._renderer.getCamera() self._updateMetrics() self._target = None
def initialize(self): Controller.initialize(self) self.loadScene() print "World was initialized"
def __init__(self, params): Controller.__init__(self, params, "World") self._worldMGR = Engine().getWorldMGR()
def __init__(self,params): Controller.__init__(self,params) self._params = params
def initialize(self): Controller.initialize(self) self.toggleGUIFocus(False)
def __init__(self,params): Controller.__init__(self,params) self._guiFocus = False
def terminate(self): self._gui.destroyObject("Chat/ChatWindow") Controller.terminate(self)
def __init__(self,params): Controller.__init__(self,params,"console") self._visible = True self._cmds = Commands(self)