Exemple #1
0
    def __init__(self, widget_properties):
        ContentMenu.__init__(self, widget_properties)

        self.widget_properties = widget_properties
        self.group_count = 0
        self.heights = []
        self.toggle_list = []
Exemple #2
0
    def __init__(self, widget_properties, menu_list, song=None, \
            use_pil=False, game=None, debug=False):

        self.l_main_menu = _(u'main menu')
        self.l_choose = _(u'choose another song')
        self.l_quit = _(u'quit')
        #self.separator = ' - '
        self.l_points = {}
        self.l_points['normal'] = _(u'normal points')
        self.l_points['freestyle'] = _(u'freestyle points')
        self.l_points['bonus'] = _(u'bonus points')
        self.l_points['sum'] = _(u'points')
        self.l_score = _(u'SCORE')

        ContentMenu.__init__(self, widget_properties)
        # heading, nav and box container inherited from Menu:

        self.widget_properties = widget_properties
        self.menu_list = menu_list
        self.song = song
        self.use_pil = use_pil
        self.theme_mgr = self.widget_properties['theme_mgr']
        self.debug = debug

        self.world = soya.World()
        self.parent_world.add(self.world)

        self.main_theme_name = self.widget_properties['theme']['main']
        self.song_theme_name = self.widget_properties['theme']['song']

        self.values = []
        self.pos = None
        self.game = game
Exemple #3
0
    def __init__(self, widget_properties, menu_list, song=None, \
            use_pil=False, game=None, debug=False):

        self.l_main_menu = _(u'main menu')
        self.l_choose = _(u'choose another song')
        self.l_quit = _(u'quit')
        #self.separator = ' - '
        self.l_points = {}
        self.l_points['normal'] = _(u'normal points')
        self.l_points['freestyle'] = _(u'freestyle points')
        self.l_points['bonus'] = _(u'bonus points')
        self.l_points['sum'] = _(u'points')
        self.l_score = _(u'SCORE')

        ContentMenu.__init__(self, widget_properties)
        # heading, nav and box container inherited from Menu:

        self.widget_properties = widget_properties
        self.menu_list = menu_list
        self.song = song
        self.use_pil = use_pil
        self.theme_mgr = self.widget_properties['theme_mgr']
        self.debug = debug

        self.world = soya.World()
        self.parent_world.add(self.world)

        self.main_theme_name = self.widget_properties['theme']['main']
        self.song_theme_name = self.widget_properties['theme']['song']

        self.values = []
        self.pos = None
        self.game = game
Exemple #4
0
    def __init__(self, widget_properties, top=0, left=0):
        ContentMenu.__init__(self, widget_properties)

        # The container for the text:
        self.text_cont = pudding.container.VerticalContainer(self,
                                                             top=top,
                                                             left=left,
                                                             z_index=1)
        self.text_cont.anchors = pudding.ANCHOR_ALL
        self.text_cont.padding = 15
Exemple #5
0
    def __init__(self, widget_properties, top=0, left=0):
        ContentMenu.__init__(self, widget_properties)

        # The container for the text:
        self.text_cont = pudding.container.VerticalContainer(
                self,
                top=top,
                left=left,
                z_index=1)
        self.text_cont.anchors = pudding.ANCHOR_ALL
        self.text_cont.padding = 15