roninator2 257 Posted February 24, 2021 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 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