Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Solved][XP] Replace state text with an icon

Hello,

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
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
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top