Пример #1
0
    def _initGuiManager(self):
        settings = self.engine.getSettings()

        major_v, minor_v = map(int, PyCEGUI.Version__.split('.')[:2])

        #For CEGUI versions lower than 0.8.0 we use the old CEGuiManager
        if major_v == 0 and minor_v <= 7:
            guimanager = fife.CEGuiManager()
        else:
            guimanager = fife.CEGuiManager()

        #transfer ownership to the engine
        guimanager.thisown = 0

        self.guimanager = guimanager
        self.engine.setGuiManager(self.guimanager)
        self.engine.getEventManager().addSdlEventListener(self.guimanager)
Пример #2
0
    def _initGuiManager(self):
        settings = self.engine.getSettings()

        guimanager = fife.CEGuiManager()

        #transfer ownership to the engine
        guimanager.thisown = 0

        self.guimanager = guimanager
        self.engine.setGuiManager(self.guimanager)
        self.engine.getEventManager().addSdlEventListener(self.guimanager)