Changeset 79 for trunk/PARPG/scripts


Ignore:
Timestamp:
06/01/09 13:43:32 (11 years ago)
Author:
maximinus_parpg
Message:

Fixed horrible text, looks better.
Changed a few typos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PARPG/scripts/world.py

    r78 r79  
    8484 
    8585    def reset(self): 
    86         """Rest the map to default settings""" 
     86        """Reset the map to default settings""" 
    8787        self.transitions = [] 
    8888        self.PC = None 
     
    119119        self.target_rotation = self.cameras['main'].getRotation() 
    120120        self.cord_render = self.cameras['main'].getRenderer('CoordinateRenderer') 
     121         
     122        # set the rnder text 
     123        rend = fife.FloatingTextRenderer.getInstance(self.cameras['main']) 
     124        text = self.engine.getGuiManager().createFont('fonts/rpgfont.png', 
     125                                                          0, str(TDS.readSetting("FontGlyphs", strip=False))) 
     126        rend.changeDefaultFont(text) 
    121127 
    122128    def addPC(self, agent): 
     
    141147        # make sure that the object exists first 
    142148        if obj in self.obj_hash: 
    143             self.obj_hash[obj].say(str(text),3500) 
     149            self.obj_hash[obj].say(str(text), 3500) 
    144150 
    145151    def displayInventory(self, callFromHud): 
Note: See TracChangeset for help on using the changeset viewer.