Vlue

Yanfly Ace Engine + Sleek Gauges

Apr 7th, 2014
911
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Yanfly Engine Ace - Ace Battle Engine + Sleek Gauges by Vlue
  2. class Window_BattleStatus < Window_Selectable
  3.   alias ynfbs_refresh refresh
  4.   def refresh
  5.     if !@dummy_window
  6.       @dummy_window = Window_BaseLH.new(self.x,self.y,self.width,self.height)
  7.       @dummy_window.viewport = self.viewport
  8.       @dummy_window.opacity = 0
  9.       @dummy_window.contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
  10.     end
  11.     @dummy_window.contents.clear
  12.     ynfbs_refresh
  13.   end
  14.   def draw_actor_hp(actor, dx, dy, width = 124)
  15.     @dummy_window.draw_actor_hp(actor, dx, dy, width,8)
  16.   end
  17.   def draw_actor_mp(actor, dx, dy, width = 124)
  18.     @dummy_window.draw_actor_mp(actor, dx, dy+3, width,8)
  19.   end
  20.   def draw_actor_tp(actor, dx, dy, width = 124)
  21.     @dummy_window.draw_actor_tp(actor, dx, dy+3, width,8)
  22.   end
  23.   alias gauge2_update update
  24.   def update
  25.     gauge2_update
  26.     @dummy_window.update if @dummy_window
  27.   end
  28.   def close
  29.     super
  30.     @dummy_window.close if @dummy_window
  31.   end
  32. end
  33.  
  34. class Window_BattleStatusAid < Window_BattleStatus
  35.   alias ynfbs_refresh refresh
  36.   def refresh
  37.     if !@dummy_window
  38.       @dummy_window = Window_BaseLH.new(self.x,self.y,self.width,self.height)
  39.       @dummy_window.viewport = self.viewport
  40.       @dummy_window.opacity = 0
  41.       @dummy_window.contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
  42.       @dummy_window.hide
  43.     end
  44.     @dummy_window.contents.clear
  45.     ynfbs_refresh
  46.   end
  47.   def hide
  48.     super
  49.     @dummy_window.hide if @dummy_window
  50.   end
  51.   def show
  52.     super
  53.     @dummy_window.show if @dummy_window
  54.   end
  55. end
  56.  
  57. class Window_BaseLH < Window_Base
  58.   def line_height
  59.     self.contents ? contents.font.size : 24
  60.   end
  61. end
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×