Changeset 78


Ignore:
Timestamp:
06/01/09 13:27:14 (10 years ago)
Author:
maximinus_parpg
Message:

Text over objects works
Ugly, but it works
Thanks to CheeseSucker? for the help

File:
1 edited

Legend:

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

    r77 r78  
    133133                fife.ExactModelCoordinate(xpos,ypos,0.0), str(gfx)) 
    134134        obj.setRotation(0) 
     135        fife.InstanceVisual.create(obj) 
    135136        # save it for later use 
    136137        self.obj_hash[name]=obj 
    137         fife.InstanceVisual.create(obj) 
    138138 
    139139    def displayObjectText(self, obj, text): 
     
    141141        # make sure that the object exists first 
    142142        if obj in self.obj_hash: 
    143             # NOT WORKING! 
    144             #self.obj_hash[obj].say(text,3500) 
    145             print text 
     143            self.obj_hash[obj].say(str(text),3500) 
    146144 
    147145    def displayInventory(self, callFromHud): 
Note: See TracChangeset for help on using the changeset viewer.