Advertisement
LiTTleDRAgo

[RGSS] MMW Landith Hud Compatibility Patch

Aug 12th, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.59 KB | None | 0 0
  1. #==============================================================================
  2. # Scene_Map By Winkio
  3. #------------------------------------------------------------------------------
  4. #  This class was enhanced to support HUD control and creation system and
  5. #  Blizz-ABS battle handling and level up text display.
  6. #  Changed to enable the party hud
  7. #==============================================================================
  8. # PLACE BELOW Landith HUD
  9.  
  10. class Scene_Map
  11.  
  12.   #----------------------------------------------------------------------------
  13.   # Override Main
  14.   #----------------------------------------------------------------------------
  15.   def main
  16.     return drg152_main unless $BlizzABS
  17.     create_landith_hud
  18.     main_blizzabs_later
  19.     $game_temp.in_battle = false
  20.     all_window = [@hud, @parhud, @hotkeys, @minimap, @equiphud, @exphud].compact
  21.     all_window.each {|i| i.dispose }
  22.   end
  23.   #----------------------------------------------------------------------------
  24.   # create_landith_hud
  25.   #----------------------------------------------------------------------------
  26.   def create_landith_hud
  27.     par = LandithHUD::Font_Name rescue nil
  28.     @hud      = Hud.new               if $game_system.hud
  29.     @parhud   = ParHud.new            if par && $game_system.parhud
  30.     @equiphud = Equip_Hud.new         if par && $game_system.equiphud
  31.     @exphud   = ExpHud.new            if par && $game_system.hotkeys
  32.     @hotkeys  = Hotkey_Assignment.new if $game_system.hotkeys
  33.     @minimap = Minimap.new if BlizzABS::Config::MINIMAP&&$game_system.minimap>0
  34.     test_in_battle
  35.   end
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement