Jump to content
Sign in to follow this  
roninator2

KMS Gauge addon for Xail Menu Delux

Recommended Posts

KMS Gauge addon for Xail Menu Delux 1.0
by Roninator2


Introduction
An addon to make the Xail Menu Delux work with KMS Generic Gauge

Features
- Plug & play

How to Use
Put below KMS Generic Gauge and Xail Menu Delux

Images

Spoiler

1604683899976.png.8aaa233f89c0e14106d10bf9e687c1b1.png


Script

Spoiler

#==============================================================================
# Compatibility Patch :                                         v1.0 (05/10/20)
#   XaiL System - Menu Delux + KMS Generic Gauge
#==============================================================================
# Script by:
#     Mr. Bubble - recreated by Roninator2
#--------------------------------------------------------------------------
# Place this script below both XaiL System - Menu Delux and KMS Generic Gauge
# in your script edtior.
#
#==============================================================================

$imported ||= {}
$kms_imported ||= {}

if $imported["XAIL-XS-MENU_DELUX"] && $kms_imported["GenericGauge"]
class Window_MenuStatus < Window_Selectable
  def draw_menu_stats(actor, stat, x, y, color1, color2, width)
    # // Method to draw actor hp & mp.
    case stat
    when :hp
      rate = actor.hp_rate ; vocab = Vocab::hp_a ; values = [actor.hp, actor.mhp]
    # // Draw guage.
      draw_actor_hp_gauge(actor, x, y - 4, width = 100)
    when :mp
      rate = actor.mp_rate ; vocab = Vocab::mp_a ; values = [actor.mp, actor.mmp]
    # // Draw guage.
      draw_actor_mp_gauge(actor, x, y - 4, width = 100)
    when :tp
      rate = actor.tp_rate ; vocab = Vocab::tp_a ; values = [actor.tp, actor.max_tp]
    # // Draw guage.
      draw_actor_tp_gauge(actor, x, y - 4, width = 100)
    end
    contents.font.name = XAIL::MENU_DELUX::FONT[0]
    contents.font.size = 14 # // Override font size.
    contents.font.color = XAIL::MENU_DELUX::FONT[2]
    contents.font.bold = XAIL::MENU_DELUX::FONT[3]
    contents.font.shadow = XAIL::MENU_DELUX::FONT[4]
    # // Draw stats.
    draw_text(x + 2, y, width, line_height, values[0], 0)
    draw_text(x + 1, y, width, line_height, values[1], 2)
    # // Draw vocab.
    draw_text(x, y, width, line_height, vocab, 1) if XAIL::MENU_DELUX::BAR_VOCAB
    reset_font_settings
  end
end
end # if $imported

 


Credit and Thanks
- Mr Bubble
- Roninator2

Terms of use
Follow original authors terms

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted