The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: EmperorAlan on June 22, 2013, 05:16:09 AM

Title: [VXA]Adding Icons to Everything
Post by: EmperorAlan on June 22, 2013, 05:16:09 AM
Is it possible to insert icons on Terms and script line? Yanfly's command icon works perfect, but it doesn't insert Icon on some database terms such as HP, MP, and stats. So, does anyone have idea to insert them? Thank you.
Title: Re: [VXA]Adding Icons to Everything
Post by: &&&&&&&&&&&&& on June 22, 2013, 05:20:49 AM
  def process_draw_icon(icon_index, pos)
    draw_icon(icon_index, pos[:x], pos[:y])
    pos[:x] += 24
  end


Line 324-327 of Window_Base.
Title: Re: [VXA]Adding Icons to Everything
Post by: modern algebra on June 22, 2013, 01:04:43 PM
You wouldn't really want to use that unless you were modifying the scripts directly and using the draw_text_ex method.

If you just want a script to do it, then my Global Text Codes (http://rmrk.net/index.php/topic,44810.0.html) script will do the trick.

It allows you to use the \I[n] text code in any terms anywhere as long as you also put a \* in the same field. For example, to add an icon to HP, you would just need to go to that term in the database and make it:

\*\i[32] HP

Replace the 32 with the index of whatever icon you want to use.
Title: Re: [VXA]Adding Icons to Everything
Post by: EmperorAlan on June 23, 2013, 12:47:14 PM
That's exactly what I'm looking for, solved!