Ignore:
Timestamp:
06/07/09 20:07:47 (10 years ago)
Author:
bretzel_parpg
Message:

Added ready slots to HUD. The image on the ready slot on the HUD will alway match the one on the inventory

File:
1 edited

Legend:

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

    r97 r103  
    2020 
    2121        self.settings = settings 
    22         self.hp = self.hud.findChild(name="healthPoints") 
    23         self.ap = self.hud.findChild(name="actionPoints") 
    2422        self.actionsBox = self.hud.findChild(name="actionsBox") 
    2523        self.actionsText = [] 
     
    3937        screen_width = int(self.settings.readSetting('ScreenWidth')) 
    4038        self.hud.findChild(name="mainHudWindow").size = (screen_width, 65) 
    41  
    4239        self.hud.findChild(name="inventoryButton").position = (screen_width-59, 7) 
    43          
    44         actions_width = screen_width - 175  
     40 
     41        self.hud.findChild(name='hudReady1').position = (screen_width-820, 7) 
     42        self.hud.findChild(name='hudReady2').position = (screen_width-760, 7) 
     43        self.hud.findChild(name='hudReady3').position = (screen_width-215, 7) 
     44        self.hud.findChild(name='hudReady4').position = (screen_width-155, 7) 
     45 
     46        actions_width = screen_width - 550  
    4547        self.hud.findChild(name="actionsBox").min_size = (actions_width, 0) 
    4648        self.hud.findChild(name="actionsScrollArea").size = (actions_width, 55) 
     
    219221        NOTE: This does not in any way affect the character's actual health, only what is displayed on the HUD 
    220222        """ 
    221         self.hp.text = value 
     223        self.hud.findChild(name="healthPoints").text = value 
    222224 
    223225    def setAP(self, value): 
     
    227229              what is displayed on the HUD 
    228230        """ 
    229         self.ap.text = value 
     231        self.hud.findChild(name="actionPoints").text = value 
     232 
     233    def setAC(self, value): 
     234        """ 
     235        Set the armor class on the HUD display (not the characters actual armor class 
     236        """ 
     237        self.hud.findChild(name="armorClass").text = value 
    230238         
    231239    def toggleInventory(self): 
Note: See TracChangeset for help on using the changeset viewer.