#==============================================================================# ■ Meow Face Large Skill Icons#------------------------------------------------------------------------------# Display Skills using 64 x 64 icons#==============================================================================# How to Use:# [1] Plug & Play, Put this script below Material and above Main# [2] Put your skill pictures in the [Graphics\System] folder and name it "Skill_N" # where N is the same as skill ID.#==============================================================================class Window_Base < Window #-------------------------------------------------------------------------- # ○ New Method #-------------------------------------------------------------------------- def draw_skill_icon(icon_id, x, y, enabled = true) bitmap = Cache.system("Skill_"+icon_id.to_s) rect = Rect.new(0, 0, 64, 64) contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha) end #-------------------------------------------------------------------------- # ○ New Method #-------------------------------------------------------------------------- def draw_skill_name(skill, x, y, enabled = true, width = 172) return unless skill draw_skill_icon(skill.id, x, y, enabled) change_color(normal_color, enabled) draw_text(x + 68, y+12, width, line_height, skill.name) endendclass Window_SkillList < Window_Selectable #-------------------------------------------------------------------------- # ◎ Overwrite Method #-------------------------------------------------------------------------- def item_height 64 + 2 end #-------------------------------------------------------------------------- # ◎ Overwrite Method #-------------------------------------------------------------------------- def draw_skill_cost(rect, skill) if @actor.skill_tp_cost(skill) > 0 change_color(tp_cost_color, enable?(skill)) draw_text(rect, @actor.skill_tp_cost(skill)) elsif @actor.skill_mp_cost(skill) > 0 change_color(mp_cost_color, enable?(skill)) draw_text(rect, @actor.skill_mp_cost(skill)) end end #-------------------------------------------------------------------------- # ◎ Overwrite Method #-------------------------------------------------------------------------- def draw_item(index) skill = @data[index] if skill rect = item_rect(index) rect.width -= 4 draw_skill_name(skill, rect.x, rect.y, enable?(skill)) rect.x += 68 rect.y += 12 draw_skill_cost(rect, skill) end endend