Advertisement
AngryPacman

Neo EXP Gauge for PAC MM

Jun 22nd, 2014
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.86 KB | None | 0 0
  1. class Window_Base < Window
  2.   EXP_GCOLOR_1 = Color.new(0,0,128)
  3.   EXP_GCOLOR_2 = Color.new(0,191,255)
  4.   EXP_GCOLOR_3 = Color.new(152,251,152)
  5.  
  6.   def draw_actor_exp(actor, x, y, width = 60)
  7.     gwidth = width * actor.exp / actor.next_level_exp
  8.     cg = neo_gauge_back_color
  9.     c1, c2, c3 = cg[0], cg[1], cg[2]
  10.     draw_neo_gauge(x + HPMP_GAUGE_X_PLUS, y + line_height - 8 +
  11.       HPMP_GAUGE_Y_PLUS, width, HPMP_GAUGE_HEIGHT, c1, c2, c3)
  12.     (1..3).each {|i| eval("c#{i} = EXP_GCOLOR_#{i}")}
  13.     draw_neo_gauge(x + HPMP_GAUGE_X_PLUS, y + line_height - 8 +
  14.       HPMP_GAUGE_Y_PLUS, gwidth, HPMP_GAUGE_HEIGHT, c1, c2, c3, false, false,
  15.       width, 30)
  16.     change_color(system_color)
  17.     draw_text(x, y, 30, line_height, PAC::MM::Exp_a)
  18.     draw_current_and_max_values(x, y, width, actor.exp, actor.next_level_exp,
  19.       normal_color, normal_color)
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement