Neo Gauge Ultimate + Ace Core Engine compatibility?

1763418140732.png

As you can see above (HP and TP), Neo Gauge Ultimate appears, but below, the gauges from Ace's scripts appear, and I am looking for a way to disable the last one so that I can use Neo Gauge Ultimate instead.

I have been searching, but I have not found any patch or similar, so I can only open this request.

Yanfly Scripts what I'm using:

-Ace Core Engine (I suspect that this is the one that involves these gauges.)
-Ace Equip Engine
-Ace Status Menu
@Golder Here you go! I wrote a compatibility patch:
Spoiler: Compatibility Patch
Ruby:
=begin

Yanfly Engine Ace - Ace Status Menu Neo Gauge Addon
    ver 1.0

  Compatability patch to use Neo Gauge Ultimate bars
  in Yanfly Status Menu parameters window
  
  Note: if using this patch, the PARAM_COLOUR setting in the Ace Status Menu
  script will be ignored. The colors must be set in this script.

=end

module YEA
  module NEO
    
    #Set true to use Neo Gauge in Yanfly Status Menu
    NEO_GAUGE = true
    
    #Sets the height of the gauges
    GAUGE_HEIGHT = 8
    
    #Adjusts the Y position
    GAUGE_Y_OFFSET = 0
    
    #Sets the param colors. 
    PARAM_COLOUR ={
    # ParamID => [:stat,      Color1,
    #                         Color2,
    #                         Color3],
            2 => [ :atk, Color.new(225, 100, 100),
                         Color.new(230, 125, 125),
                         Color.new(240, 150, 150)],
            3 => [ :def, Color.new(250, 150,  30),
                         Color.new(250, 165,  60),
                         Color.new(250, 180, 100)],
            4 => [ :mat, Color.new( 70, 140, 200),
                         Color.new(100, 160, 220),
                         Color.new(135, 180, 230)],
            5 => [ :mdf, Color.new(135, 130, 190),
                         Color.new(160, 140, 200),
                         Color.new(170, 160, 220)],
            6 => [ :agi, Color.new( 60, 180,  80),
                         Color.new( 90, 190, 100),
                         Color.new(120, 200, 120)],
            7 => [ :luk, Color.new(255, 240, 100),
                         Color.new(255, 250, 150),
                         Color.new(255, 250, 200)],
    } # Do not remove this.
    
  end #NEO
end #YEA
  
class Window_StatusItem
  
  def draw_parameter_graph
    draw_parameter_title
    dy = line_height * 3/2
    maximum = 1
    minimum = @actor.param_max(2)
    for i in 2..7
      maximum = [@actor.param(i), maximum].max
      minimum = [@actor.param(i), minimum].min
    end
    maximum += minimum * 0.33 unless maximum == minimum
    for i in 2..7
      rate = calculate_rate(maximum, minimum, i)
      dy = line_height * i - line_height/2
      draw_param_gauge(i, dy, rate)
      change_color(system_color)
      draw_text(28, dy, contents.width - 56, line_height, Vocab::param(i))
      dw = (contents.width - 48) * rate - 8
      change_color(normal_color)
      draw_text(28, dy, dw, line_height, @actor.param(i).group, 2)
    end
  end
  
  def param_gauge3(param_id)
    return YEA::NEO::PARAM_COLOUR[param_id][3]
  end
  alias draw_param_gauge_neo draw_param_gauge
  def draw_param_gauge(param_id, dy, rate)
    if YEA::NEO::NEO_GAUGE
      dw = contents.width - 48
      dy += YEA::NEO::GAUGE_Y_OFFSET
      height = YEA::NEO::GAUGE_HEIGHT
      back = neo_gauge_back_color
      c1, c2, c3 = back[0], back[1], back[2]
      draw_neo_gauge(24, dy, dw, height, c1, c2, c3)
      c1 = param_gauge1(param_id)
      c2 = param_gauge2(param_id)
      c3 = param_gauge3(param_id)
      gauge_width = (dw * rate).to_i
      draw_neo_gauge(24, dy, gauge_width, height, c1, c2, c3, false, false,
        dw, 50)
    else
      draw_param_gauge_neo(param_id, dy, rate)
    end
  end

end # Window_StatusItem

Make sure to place it below the Ace Status Menu and the Neo Gauge.

Edit: Added GAUGE_Y_OFFSET setting.
@Golder Here you go! I wrote a compatibility patch:
Spoiler: Compatibility Patch
Ruby:
=begin

Yanfly Engine Ace - Ace Status Menu Neo Gauge Addon
    ver 1.0

  Compatability patch to use Neo Gauge Ultimate bars
  in Yanfly Status Menu parameters window
 
  Note: if using this patch, the PARAM_COLOUR setting in the Ace Status Menu
  script will be ignored. The colors must be set in this script.

=end

module YEA
  module NEO
   
    #Set true to use Neo Gauge in Yanfly Status Menu
    NEO_GAUGE = true
   
    #Sets the height of the gauges
    GAUGE_HEIGHT = 8
   
    #Adjusts the Y position
    GAUGE_Y_OFFSET = 0
   
    #Sets the param colors.
    PARAM_COLOUR ={
    # ParamID => [:stat,      Color1,
    #                         Color2,
    #                         Color3],
            2 => [ :atk, Color.new(225, 100, 100),
                         Color.new(230, 125, 125),
                         Color.new(240, 150, 150)],
            3 => [ :def, Color.new(250, 150,  30),
                         Color.new(250, 165,  60),
                         Color.new(250, 180, 100)],
            4 => [ :mat, Color.new( 70, 140, 200),
                         Color.new(100, 160, 220),
                         Color.new(135, 180, 230)],
            5 => [ :mdf, Color.new(135, 130, 190),
                         Color.new(160, 140, 200),
                         Color.new(170, 160, 220)],
            6 => [ :agi, Color.new( 60, 180,  80),
                         Color.new( 90, 190, 100),
                         Color.new(120, 200, 120)],
            7 => [ :luk, Color.new(255, 240, 100),
                         Color.new(255, 250, 150),
                         Color.new(255, 250, 200)],
    } # Do not remove this.
   
  end #NEO
end #YEA
 
class Window_StatusItem
 
  def draw_parameter_graph
    draw_parameter_title
    dy = line_height * 3/2
    maximum = 1
    minimum = @actor.param_max(2)
    for i in 2..7
      maximum = [@actor.param(i), maximum].max
      minimum = [@actor.param(i), minimum].min
    end
    maximum += minimum * 0.33 unless maximum == minimum
    for i in 2..7
      rate = calculate_rate(maximum, minimum, i)
      dy = line_height * i - line_height/2
      draw_param_gauge(i, dy, rate)
      change_color(system_color)
      draw_text(28, dy, contents.width - 56, line_height, Vocab::param(i))
      dw = (contents.width - 48) * rate - 8
      change_color(normal_color)
      draw_text(28, dy, dw, line_height, @actor.param(i).group, 2)
    end
  end
 
  def param_gauge3(param_id)
    return YEA::NEO::PARAM_COLOUR[param_id][3]
  end
  alias draw_param_gauge_neo draw_param_gauge
  def draw_param_gauge(param_id, dy, rate)
    if YEA::NEO::NEO_GAUGE
      dw = contents.width - 48
      dy += YEA::NEO::GAUGE_Y_OFFSET
      height = YEA::NEO::GAUGE_HEIGHT
      back = neo_gauge_back_color
      c1, c2, c3 = back[0], back[1], back[2]
      draw_neo_gauge(24, dy, dw, height, c1, c2, c3)
      c1 = param_gauge1(param_id)
      c2 = param_gauge2(param_id)
      c3 = param_gauge3(param_id)
      gauge_width = (dw * rate).to_i
      draw_neo_gauge(24, dy, gauge_width, height, c1, c2, c3, false, false,
        dw, 50)
    else
      draw_param_gauge_neo(param_id, dy, rate)
    end
  end

end # Window_StatusItem

Make sure to place it below the Ace Status Menu and the Neo Gauge.

Edit: Added GAUGE_Y_OFFSET setting.
Works!! Thank you so much!!!

Original thread: https://forums.rpgmakerweb.com/threads/neo-gauge-ultimate-ace-core-engine-compatibility.181065/