Jump to content
Sign in to follow this  
roninator2

KMS Gauge addon for Galv Menu Theme Engine

Recommended Posts

KMS Gauge addon for Galv Menu Theme Engine 1.0
by Roninator2


Introduction
An addon to make the Galv Menu Theme Engine work with KMS Generic Gauge

Features
- Plug & play

How to Use
Put below KMS Generic Gauge and Galv Menu Theme Engine
 

Image

Spoiler

1604681803488.png.a3bdb0779d0cbb509df106fdf08ed266.png

 

Script

Spoiler

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

$imported = {} if $imported.nil?
$kms_imported = {} if $kms_imported.nil?

#==============================================================================
# ■ Window_MainMenuStatus
#==============================================================================

if $imported["Galv_Menu_Themes"] && $kms_imported["GenericGauge"]
class Window_MainMenuStatus < Window_MenuStatus
  #--------------------------------------------------------------------------
  # * Draw Gauge
  #     rate   : Rate (full at 1.0)
  #     color1 : Left side gradation
  #     color2 : Right side gradation
  #--------------------------------------------------------------------------
  def draw_gauge(x, y, width, rate, color1, color2)
    fill_w = (width * rate).to_i
    gauge_y = y + line_height - 8
    contents.fill_rect(x, gauge_y, width, 6, gauge_back_color)
    contents.gradient_fill_rect(x, gauge_y, fill_w, 6, color1, color2)
  end
end

class Window_Base < Window
  def draw_gtp(actor, x, y, width = 124)
    draw_actor_tp_gauge(actor, x, y, width)
    change_color(system_color)
    draw_text(x - 30, y + 7, 30, line_height, Vocab::tp_a,2)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y + 3, 42, line_height, actor.tp.to_i, 2)
  end

  def draw_ghp(actor, x, y, width = 124)
    draw_actor_hp_gauge(actor, x, y, width)
    change_color(system_color)
    draw_text(x - 30, y + 7, 30, line_height, Vocab::hp_a,2)
    draw_current_and_max_values(x, y + 3, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
  end
    
  def draw_gmp(actor, x, y, width = 124)
    draw_actor_mp_gauge(actor, x, y, width)
    change_color(system_color)
    draw_text(x - 30, y + 7, 30, line_height, Vocab::mp_a,2)
    draw_current_and_max_values(x, y + 3, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
  end
end
end # if $imported["Galv_Menu_Themes"]

 


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