Exemple #1
0
 def update(self, dt, click, clickKey, curMousePos=None):
     oldString = self.currentString
     FileDialogState.update(self, dt, click, clickKey, curMousePos)
     if oldString != self.currentString:
         curText = FileSaveButton(self, self.currentString, (40, 30))
         self.addButton(curText)
         self.menu.loadMenuState(self)
Exemple #2
0
 def update( self, dt, click, clickKey, curMousePos=None ):
     oldString = self.currentString
     FileDialogState.update( self, dt, click, clickKey, curMousePos )
     if oldString != self.currentString:
         curText = self.userFont.render( self.currentString, False, pygame.Color( 0, 0, 0 ) )
         self.addSprite( StaticImage( curText, ( 40, 30 ) ) )
         self.menu.loadMenuState( self )
Exemple #3
0
 def update( self, dt, click, clickKey, curMousePos=None ):
     oldString = self.currentString
     FileDialogState.update( self, dt, click, clickKey, curMousePos )
     if oldString != self.currentString:
         curText = FileSaveButton( self, self.currentString, ( 40, 30 ) )
         self.addButton( curText )
         self.menu.loadMenuState( self )
Exemple #4
0
    def __init__(self, menu, sprites=[]):

        sprites = []
        buttons = []
        FileDialogState.__init__(self, menu, FileSaveButton, sprites)
Exemple #5
0
 def __init__( self, menu, sprites=[] ):
     sprites = []
     buttons = []
     FileDialogState.__init__( self, menu, FileLoadButton, sprites )