Changeset 301 for traintris/graphics.py

Show
Ignore:
Timestamp:
05/29/2012 01:10:35 PM (23 months ago)
Author:
andefodahl
Message:

Updated tutorial

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • traintris/graphics.py

    r299 r301  
    143143                self.drawText("Predators: " + predators, (20, ystart + 188), color, 20) 
    144144             
    145     def drawDialogBox(self, string1, string2, color): 
     145    def drawDialogBox(self, string1, string2, string3, string4, color): 
    146146        self.drawImage("dialogbox.png", ((self.screenwidth / 2) - 375, (self.screenheight / 2) - 300)) 
    147147        self.drawText(string1, ((self.screenwidth / 2) - 310, (self.screenheight / 2) - 240), color, 40) 
    148         self.drawText(string2, ((self.screenwidth / 2) -310, (self.screenheight / 2) - 120), color, 40) 
     148        self.drawText(string2, ((self.screenwidth / 2) -310, (self.screenheight / 2) - 160), color, 40) 
     149        self.drawText(string3, ((self.screenwidth / 2) -310, (self.screenheight / 2) - 80), color, 40) 
     150        self.drawText(string4, ((self.screenwidth / 2) -310, (self.screenheight / 2)), color, 40) 
    149151     
    150152    def drawMenuBox(self): 
     
    224226    #------------------------------------------------------------------------------------------------- 
    225227    # draws a button (pos is top-left) 
    226     def drawButton(self, text, size, images, mode, pos): 
    227      
    228         print "Drawing button" 
    229      
     228    def drawButton(self, text, size, images, mode, pos):     
    230229        if mode == CONSTANTS.NEUTRAL: 
    231230            image = images[CONSTANTS.NEUTRAL]