# ============================================================================= # TheoAllen + YEA Battle Engine | Name Icon # Version : 1.0 # Contact : www.rpgmakerid.com (or) http://theolized.blogspot.com # (This script documentation is written in informal indonesian language) # ----------------------------------------------------------------------------- # Requires : # >> YEA - Battle Engine # ============================================================================= # ============================================================================= ($imported ||= {})[:Theo_NameIcon] = true # ============================================================================= # Change Logs: # ----------------------------------------------------------------------------- # 2014.02.11 - Finished script # ============================================================================= =begin Perkenalan : Script ini cuman nambahin icon di samping nama battler Cara penggunaan : Pasang script ini di bawah YEA Battle Engine Gunakan notetag Index adalah icon index. Ganti dengan angka. Semisal Terms of Service : Wa ngikutin ToSnya Yanfly ~ =end # ============================================================================= # Tidak ada konfigurasi # ============================================================================= class RPG::BaseItem def icon return @type if @type note[/ 0 draw_text(0, dy, contents.width, line_height, @text, 1) dx = (contents.width - (icons.size * 24)) / 2 draw_actor_icons(battler, dx, line_height, contents.width) return unless battler_icon > 0 rect = text_size(@text) rect.width += 2 dx = contents.width/2 + rect.width/2 draw_icon(battler_icon, dx, dy) end end