View Single Post
  #8    
Old March 30th, 2013 (11:06 AM).
Maruno's Avatar
Maruno Maruno is offline
Lead Dev of Pokémon Essentials
Moderator
 
Join Date: Jan 2008
Location: England
Posts: 4,070
Interesting design.

1. self.bitmap.font.size=16, placed directly after the line pbSetSystemFont(self.bitmap). That'll change all text in the Pokémon panels (i.e. level and name). You'll probably need to fiddle with the number a bit.

2. The width of the health bar (I'm just mentioning this for completeness) is the red number in the following line:
Code:
hpgauge=@pokemon.totalhp==0 ? 0 : (self.hp*96/@pokemon.totalhp)
The height of the health bar is determined by the red numbers in the following lines:
Code:
          self.bitmap.fill_rect(@gaugeX,@gaugeY,hpgauge,2,hpcolors[hpzone*2])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+2,hpgauge,4,hpcolors[hpzone*2+1])
          self.bitmap.fill_rect(@gaugeX,@gaugeY+6,hpgauge,2,hpcolors[hpzone*2])
Knowing that the health bar is three separate coloured lines, this should make some sense.
__________________
Reply With Quote