Beispiel #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)
	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)
Beispiel #3
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
		
		# 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)
Beispiel #4
0
 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",])
    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)
Beispiel #6
0
    def __init__(self, *args, **kwargs):

        self.parent = args[0]
        self.root_parent = self.parent.root_parent
        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.root_parent = self.root_parent
        camthread.start()
        self.camthread = camthread

        # Generate footers for mode-pages:
        self.footer_imgs = headFoot.genFooterImgs(["Light", "Contrast", "Exposure", "Mode", "Tinted"])