Back to index

freevial  1.2
Public Member Functions | Public Attributes | Static Public Attributes
common.freevialglob.helpOnScreen Class Reference

List of all members.

Public Member Functions

def __init__
def creaTextdeTextos
def creaText
def draw
def activitat

Public Attributes

 sec_darrera_activitat
 text
 sfc_text

Static Public Attributes

string text = ''
 scf_text = None
int sec_darrera_activitat = 1
int sec_timeout = 10
int intensitat = 5

Detailed Description

Definition at line 494 of file freevialglob.py.


Constructor & Destructor Documentation

def common.freevialglob.helpOnScreen.__init__ (   self,
  itext 
)

Definition at line 504 of file freevialglob.py.

00504 
00505        def __init__( self, itext ):
00506               
00507               self.creaTextdeTextos ( itext )
00508               self.sec_darrera_activitat = time.time()  
00509        
       

Here is the call graph for this function:


Member Function Documentation

def common.freevialglob.helpOnScreen.activitat (   self,
  event = None 
)

Definition at line 531 of file freevialglob.py.

00531 
00532        def activitat( self, event = None ):
00533               
00534               if not event or event.type == pygame.KEYUP :
00535                      self.sec_darrera_activitat = time.time()
00536 

def common.freevialglob.helpOnScreen.creaText (   self,
  ptext 
)

Definition at line 516 of file freevialglob.py.

00516 
00517        def creaText( self, ptext ):
00518               
00519               if self.text != ptext :
00520                      self.text = ptext
00521                      self.sfc_text = render_text( self.text, (128,128,128), 15, 1 )
00522        
       

Here is the caller graph for this function:

Definition at line 510 of file freevialglob.py.

00510 
00511        def creaTextdeTextos(self, itext ):
00512               
00513               global textos
00514               self.creaText( textos[itext] )
00515        
       

Here is the call graph for this function:

Here is the caller graph for this function:

def common.freevialglob.helpOnScreen.draw (   self,
  surface,
  pos,
  itext = None 
)

Definition at line 523 of file freevialglob.py.

00523 
00524        def draw( self, surface, pos, itext = None ):
00525               
00526               if time.time() >= self.sec_darrera_activitat + self.sec_timeout :
00527                      
00528                      if itext: self.creaTextdeTextos ( itext )
00529                      surface.blit( self.sfc_text, pos )
00530        
       

Here is the call graph for this function:


Member Data Documentation

Definition at line 501 of file freevialglob.py.

Definition at line 497 of file freevialglob.py.

Definition at line 498 of file freevialglob.py.

Definition at line 507 of file freevialglob.py.

Definition at line 499 of file freevialglob.py.

Definition at line 520 of file freevialglob.py.

Definition at line 496 of file freevialglob.py.

Definition at line 519 of file freevialglob.py.


The documentation for this class was generated from the following file: