def __init__(self):
     try:
         self.MinigameStation_initialized
         return
     except:
         self.MinigameStation_initialized = 1
     GroupStation.__init__(self)
     self.game = ""
     self.locations = {
         "pos": {
             0: (-100.0, 8.00, 0.00),
             1: (0.00, 100.00, 0.00),
             2: (100.0, -8.00, 0.00),
             3: (0.00, -100.00, 0.00),
             4: (-82.85, -71.97, 0.00),
             5: (82.85, -71.97, 0.0)
         },
         "hpr": {
             0: (255.00, 0.00, 0.00),
             1: (180.00, 0.00, 0.00),
             2: (-255.00, 0.00, 0.00),
             3: (0.00, 0.00, 0.00),
             4: (310.00, 0.00, 0.00),
             5: (-260.00, 0, 0)
         }
     }
     return
Example #2
0
 def generateStation(self, game):
     self.game = game
     numSlots = self.game2maxPlayers[game]
     GroupStation.generateStation(self, numSlots)
     title = DirectLabel(text=game + '\n' + self.game2dateCreated[game], relief=None, text_fg=(0.7, 0.3, 0.5, 1.0), text_decal=True, text_font=CIGlobals.getMickeyFont(), text_pos=(0, 0.1), parent=self.sign.find('**/signText_locator'), text_scale=0.3, text_wordwrap=7.0)
     title.setBillboardAxis(2)
     return
 def delete(self):
     try:
         self.MinigameStation_deleted
     except:
         self.MinigameStation_deleted = 1
         self.removeStation()
         self.game = None
         GroupStation.delete(self)
Example #4
0
    def delete(self):
        try:
            self.MinigameStation_deleted
        except:
            self.MinigameStation_deleted = 1
            self.removeStation()
            self.game = None
            GroupStation.delete(self)

        return
 def generateStation(self, game):
     self.game = game
     numSlots = self.game2maxPlayers[game]
     GroupStation.generateStation(self, numSlots)
     if not base.config.GetBool('show-minigame-dates', False):
         text = game
         pos = (0, 0)
     else:
         text = game + '\n' + self.game2dateCreated[game]
         pos = (0, 0.1)
     title = DirectLabel(text=text, relief=None, text_fg=(0.7, 0.3, 0.5, 1.0), text_decal=True, text_font=CIGlobals.getMickeyFont(), text_pos=pos, parent=self.sign.find('**/signText_locator'), text_scale=0.3, text_wordwrap=7.0)
     title.setBillboardAxis(2)
     return
Example #6
0
    def __init__(self):
        try:
            self.MinigameStation_initialized
            return
        except:
            self.MinigameStation_initialized = 1

        GroupStation.__init__(self)
        self.game = ''
        self.locations = {'pos': {0: (-100.0, 8.0, 0.0),
                 1: (0.0, 100.0, 0.0),
                 2: (100.0, -8.0, 0.0),
                 3: (0.0, -100.0, 0.0),
                 4: (-82.85, -71.97, 0.0),
                 5: (82.85, -71.97, 0.0)},
         'hpr': {0: (255.0, 0.0, 0.0),
                 1: (180.0, 0.0, 0.0),
                 2: (-255.0, 0.0, 0.0),
                 3: (0.0, 0.0, 0.0),
                 4: (310.0, 0.0, 0.0),
                 5: (-260.0, 0, 0)}}
    def __init__(self):
        try:
            self.MinigameStation_initialized
            return
        except:
            self.MinigameStation_initialized = 1

        GroupStation.__init__(self)
        self.game = ''
        self.locations = {'pos': {0: (-100.0, 8.0, 0.0), 1: (0.0, 100.0, 0.0), 
                   2: (100.0, -8.0, 0.0), 
                   3: (0.0, -100.0, 0.0), 
                   4: (-82.85, -71.97, 0.0), 
                   5: (82.85, -71.97, 0.0), 
                   6: (-50, -50, 0), 
                   7: (50, 50, 0)}, 
           'hpr': {0: (255.0, 0.0, 0.0), 1: (180.0, 0.0, 0.0), 
                   2: (-255.0, 0.0, 0.0), 
                   3: (0.0, 0.0, 0.0), 
                   4: (310.0, 0.0, 0.0), 
                   5: (-260.0, 0, 0), 
                   6: (50, 0, 0), 
                   7: (50, 0, 0)}}