コード例 #1
0
	def __init__(self, *args, **kwargs):
		self.parent = args[0]
		self.rootParent = self.parent.rootParent
		self.canvas = pygame.Surface((config.WIDTH, config.HEIGHT))
		self.drawnPageNum = -1
		
		self.modes = [self.Mode_Status(self),self.Mode_SPECIAL(self),self.Mode_Skills(self),self.Mode_Perks(self),self.Mode_General(self)]
		
		self.modeNames = ["","","","",""]
		for n in range(0,5):
			self.modeNames[n] = self.modes[n].name
			
		self.header = headFoot.Header(self)
		
		# Generate footers for mode-pages:
		self.footerImgs = headFoot.genFooterImgs(self.modeNames)
コード例 #2
0
	def __init__(self, *args, **kwargs):
		self.parent = args[0]
		self.rootParent = self.parent.rootParent
		self.canvas = pygame.Surface((config.WIDTH, config.HEIGHT))
		self.drawnPageNum = -1
		
		self.modes = [dataMap.Mode_Map(self,0),dataMap.Mode_Map(self,1),self.Mode_Quests(self),self.Mode_Misc(self),radio.Mode_Radio(self)]
		
		# Generate footers for mode-pages:
		self.modeNames = ["","","","",""]
		for n in range(0,5):
			self.modeNames[n] = self.modes[n].name
			
		self.header = headFoot.Header(self)
		
		# Generate footers for mode-pages:
		self.footerImgs = headFoot.genFooterImgs(self.modeNames)
コード例 #3
0
ファイル: pipboy_camera.py プロジェクト: Zaryob/raspipboy
 def __init__(self, *args, **kwargs):
     
     self.parent = args[0]
     self.rootParent = self.parent.rootParent
     self.name = "V.A.T.S."        
     
     self.header = headFoot.Header(self)
     
     # Create camera-read thread: (set as daemon, so it'll die with main process)
     camThread = self.ThreadClass()
     camThread.daemon = True
     camThread.parent = self
     camThread.rootParent = self.rootParent
     camThread.start()
     self.camThread = camThread
             
     # Generate footers for mode-pages:
     self.footerImgs = headFoot.genFooterImgs(["Light","Contrast","Exposure","Mode","Tinted",])
コード例 #4
0
    def __init__(self, *args, **kwargs):
        '''Tab init:'''
        self.parent = args[0]
        self.rootParent = self.parent.rootParent
        self.canvas = pygame.Surface((config.WIDTH, config.HEIGHT))
        self.drawnPageNum = -1

        # Item-pages all use the same class instance:
        self.itemPage = self.Mode_Items(self)
        self.modes = [self.itemPage, self.itemPage, self.itemPage, self.itemPage, self.itemPage]

        for n in range(0, 5):
            self.modes[n].pageNum = n

        self.header = headFoot.Header(self)

        # Generate footers for mode-pages:
        self.footerImgs = headFoot.genFooterImgs(self.modeNames)