Esempio n. 1
0
 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
Esempio n. 2
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"])
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
 def terminate(self):
     self._gui.destroyObject("StatsWindow")
     Controller.terminate(self)
Esempio n. 6
0
 def initialize(self):
     Controller.initialize(self)
     self.log("Initializing %s" % (self.__class__.__name__))
Esempio n. 7
0
 def __init__(self, params):
     Controller.__init__(self, params)
     self._renderer = Engine().getRenderer()
     self._camera = self._renderer.getCamera()
     self._updateMetrics()
     self._target = None
Esempio n. 8
0
 def initialize(self):
     Controller.initialize(self)
     self.loadScene()
     print "World was initialized"
Esempio n. 9
0
 def __init__(self, params):
     Controller.__init__(self, params, "World")
     self._worldMGR = Engine().getWorldMGR()
Esempio n. 10
0
 def __init__(self,params):
     Controller.__init__(self,params)
     self._params = params
Esempio n. 11
0
 def initialize(self):
     Controller.initialize(self)
     self.toggleGUIFocus(False)
Esempio n. 12
0
 def __init__(self,params):
     Controller.__init__(self,params)
     self._guiFocus = False
Esempio n. 13
0
 def terminate(self):
     self._gui.destroyObject("Chat/ChatWindow")
     Controller.terminate(self)
Esempio n. 14
0
 def __init__(self,params):
     Controller.__init__(self,params,"console")
     self._visible = True
     self._cmds = Commands(self)