def createSubMenu(self, el):
     name = str(el.attribute('name'))
     self.createMenu(el, MenuManager.MENU2)
     self.createInfo(
             MenuContentItem(el, self.window.scene,
                     self.window.mainSceneRoot),
             name + ' -info')
    def createRootMenu(self, el):
        name = str(el.attribute('name'))
        self.createMenu(el, MenuManager.MENU1)
        self.createInfo(MenuContentItem(el, self.window.scene), name + ' -info')

        menuButtonsIn = self.score.insertMovie(name + ' -buttons')
        menuButtonsOut = self.score.insertMovie(name + ' -buttons -out')
        self.createLowLeftButton("Quit", MenuManager.QUIT, menuButtonsIn,
                menuButtonsOut, None)
        self.createLowRightButton("Toggle fullscreen", MenuManager.FULLSCREEN,
                menuButtonsIn, menuButtonsOut, None)
示例#3
0
    def createRootMenu(self, el):
        name = el.getAttribute("name")
        self.createMenu(el, MenuManager.MENU1)
        self.createInfo(MenuContentItem(el, self.window.mainSceneRoot),
                        name + " -info")

        menuButtonsIn = self.score.insertMovie(name + " -buttons")
        menuButtonsOut = self.score.insertMovie(name + " -buttons -out")
        self.createLowLeftButton("Quit", MenuManager.QUIT, menuButtonsIn,
                                 menuButtonsOut, None)
        self.createLowRightButton(
            "Toggle fullscreen",
            MenuManager.FULLSCREEN,
            menuButtonsIn,
            menuButtonsOut,
            None,
        )
示例#4
0
 def createSubMenu(self, el):
     name = el.getAttribute("name")
     self.createMenu(el, MenuManager.MENU2)
     self.createInfo(MenuContentItem(el, self.window.mainSceneRoot),
                     name + " -info")