Jump to content

Recommended Posts

Menu Layout Compatibility

Author: Zvart

 

Description: A Compatibility script to keep Ace Menu Engine unneeded TP/MP bars hidden in Galv's Menu Layout, with design features from Syvkal's Menu Bars. 

 

Required Scripts (In Some Combination):

Yanfly's Ace Menu Engine

Galv's Menu Layout

Syvkal's Menu Bars

 

Credit and Terms of Use:

Free to use on any project that fits the ToU for the three parent scripts. No credit for me (Zvart) needed.

 

Compatibility Issues: None known.

 

The Script(s):

 

Included are three versions of the compatibility, in case you don't want to use all three of the above scripts.

 

Galv and Yanfly

 

 

#------------------------------------------------------------------------------
# A compatability patch for Yanfly's Ace Menu Script and Galv's Menu Layout.
#
# Plug 'n' Play.
#
# Place below "Materials" and above "Main", this should be placed beneath the
# two parent scripts.
#
# Author: Zvart
# No credit needed, outside Terms of Use of Parent Scripts
#------------------------------------------------------------------------------

class Window_MenuStatus < Window_Selectable
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 2)
    draw_actor_icons(actor, x, y + Graphics.height - line_height * 5 + ho)
    draw_actor_class(actor, x, y + line_height * 1)
    draw_actor_hp(actor, x, y + Graphics.height - line_height * 4 + ho)
    if YEA::MENU::DRAW_TP_GAUGE && actor.draw_tp? && !actor.draw_mp?
      draw_actor_tp(actor, x, y + Graphics.height - line_height * 3 + ho)
    elsif YEA::MENU::DRAW_TP_GAUGE && actor.draw_tp? && actor.draw_mp?
      if $imported["YEA-BattleEngine"]
        draw_actor_tp(actor, x, y + Graphics.height - line_height * 2 + ho)
        draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
      else
        draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
        draw_actor_tp(actor, x, y + Graphics.height - line_height * 2 + ho)
      end
    else
      draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
    end
  end
end 

 

 

 

Galv and Syvkal

 

 

#------------------------------------------------------------------------------
# A compatability patch for Galv's Menu Layout and Syvkal's Menu Bars.
#
# Plug 'n' Play.
#
# Place below "Materials" and above "Main", this should be placed beneath the
# three parent scripts.
#
# Author: Zvart
# No credit needed, outside Terms of Use of Parent Scripts
#------------------------------------------------------------------------------
class Window_MenuStatus < Window_Selectable

  def draw_actor_hp(actor, x, y, width = col_width)
    @rate = [actor.tp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, hp_gauge_color1, hp_gauge_color2, HPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
    hp_color(actor), normal_color)
  end
 
  def draw_actor_mp(actor, x, y, width = col_width)
    @rate = [actor.tp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, mp_gauge_color1, mp_gauge_color2, MPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
  end
 
  def draw_actor_tp(actor, x, y, width = col_width)
    @rate = [actor.tp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, tp_gauge_color1, tp_gauge_color2, TPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::tp_a)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  end
end 

 

 

 

All Three

 

 

#------------------------------------------------------------------------------
# A compatability patch for Yanfly's Ace Menu Script, Galv's Menu Layout, and
# Syvkal's Menu Bars.
#
# Plug 'n' Play.
#
# Place below "Materials" and above "Main", this should be placed beneath the
# three parent scripts.
#
# Author: Zvart
# No credit needed, outside Terms of Use of Parent Scripts
#------------------------------------------------------------------------------

class Window_MenuStatus < Window_Selectable
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 2)
    draw_actor_icons(actor, x, y + Graphics.height - line_height * 5 + ho)
    draw_actor_class(actor, x, y + line_height * 1)
    draw_actor_hp(actor, x, y + Graphics.height - line_height * 4 + ho)
    if YEA::MENU::DRAW_TP_GAUGE && actor.draw_tp? && !actor.draw_mp?
      draw_actor_tp(actor, x, y + Graphics.height - line_height * 3 + ho)
    elsif YEA::MENU::DRAW_TP_GAUGE && actor.draw_tp? && actor.draw_mp?
      if $imported["YEA-BattleEngine"]
        draw_actor_tp(actor, x, y + Graphics.height - line_height * 2 + ho)
        draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
      else
        draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
        draw_actor_tp(actor, x, y + Graphics.height - line_height * 2 + ho)
      end
    else
      draw_actor_mp(actor, x, y + Graphics.height - line_height * 3 + ho)
    end
  end
  def draw_actor_hp(actor, x, y, width = col_width)
    @rate = [actor.hp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, hp_gauge_color1, hp_gauge_color2, HPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
    hp_color(actor), normal_color)
  end
 
  def draw_actor_mp(actor, x, y, width = col_width)
    @rate = [actor.mp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, mp_gauge_color1, mp_gauge_color2, MPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
  end
 
  def draw_actor_tp(actor, x, y, width = col_width)
    @rate = [actor.tp_rate, 1.0].min
    draw_syvkal_gauge(x, y, width, @rate, tp_gauge_color1, tp_gauge_color2, TPSTYLE)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::tp_a)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  end
end

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×