#----------------------------------------------------------------------------
# draw
# Draws the recharge sectors over the hotkey display.
#----------------------------------------------------------------------------
def draw(index = nil)
# iterate through all skills that need to be recharged
(@skillrecharge).each {|i|
# temporary var
object = $data_skills[$game_player.skill_hotkeys[i%10]]
ind = $game_player.skill_hotkeys[i%10]+1
if $game_player.recharging?(ind)
# remove old image
self.bitmap.fill_rect(32*(i-1), 0, 32, 32, Color.new(0, 0, 0, 0))
# draw recharge indicator
len = (24*$game_player.rech_rate(ind)).to_i
self.bitmap.fill_rect(32*(i-1)+4, 0, len, 4, Color.new(255, 255, 0))
self.bitmap.fill_rect(32*(i-1)+4, 4, 24, 24, Color.new(0, 0, 0, 127))
self.bitmap.draw_text_full(32*(i-1)+4, 4, 24, 24, (($game_player.rechcounter[ind]/40).to_i+1).to_s, 1)
else
if object != nil
# remove old image
self.bitmap.fill_rect(32*(i-1), 0, 32, 32, Color.new(0, 0, 0, 0))
end
@skillrecharge.delete(i)
end}
# iterate through all items that need to be recharged
(@itemrecharge).each {|i|
# temporary var
object = $data_items[$game_player.item_hotkeys[i%10]]
ind = $game_player.item_hotkeys[i%10]+1
if $game_player.recharging?(ind)
# remove old image
self.bitmap.fill_rect(32*(i-1), 0, 32, 32, Color.new(0, 0, 0, 0))
# draw recharge indicator
len = (24*$game_player.rech_rate(ind)).to_i
self.bitmap.fill_rect(32*(i-1)+4, 0, len, 4, Color.new(255, 255, 0))
self.bitmap.draw_text_full(32*(i-1)+4, 4, 24, 24, (($game_player.rechcounter[ind]/40).to_i+1).to_s, 1)
else
if object != nil
# remove old image
self.bitmap.fill_rect(32*(i-1), 0, 32, 32, Color.new(0, 0, 0, 0))
end
@itemrecharge.delete(i)
end}
end
Your hotkeys look customized. If so, the spacing between the hotkeys could be different than the default ones. In that case, you will have to change the four in 32*(i-1)+4 into something smaller I think.