BudsieBuds
Member
Hello,
I would like to replace the actor states text with icons, but I'm failing.
This is what I had in Window_Base:
I did add 'draw_actor_state_icon(actor, x, y)' to Window_MenuStatus, just doesn't work.
Can someone help me? What am I doing wrong?
Cheers,
Budsie
I would like to replace the actor states text with icons, but I'm failing.
This is what I had in Window_Base:
Code:
#--------------------------------------------------------------------------
# * Make State Text String for Drawing
# actor : actor
# width : draw spot width
# need_normal : Whether or not [normal] is needed (true / false)
#--------------------------------------------------------------------------
def make_battler_state_bitmap(battler, width)
# Make text string for state names
bitmap = RPG::Cache.icon("001-Weapon01")
for i in battler.states
if $data_states[i].rating >= 1
if $data_states[0] = true
bitmap = RPG::Cache.icon("001-Weapon01")
elsif $data_states[1]
bitmap = RPG::Cache.icon("001-Weapon01")
end
end
end
# Return completed text string
return bitmap
end
#--------------------------------------------------------------------------
# * Draw State
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : draw spot width
#--------------------------------------------------------------------------
def draw_actor_state_icon(actor, x, y)
bitmap = make_battler_state_bitmap(actor, true)
bitmap = RPG::Cache.icon("001-Weapon01")
end
Can someone help me? What am I doing wrong?
Cheers,
Budsie