Need a little modification on cozziekuns's earthbound battle system

I'm using cozziekuns's Earthbound battle layout ( https://rmrk.net/index.php?topic=47693.0 ).
I'd like to modify just a little the appearence of the status box(es) at the bottom.


Current layout:
1639596412951.png



The one I'd like to have would be like this:
1639596509756.png




And that's basically it.
Only if possible, it would be perfect to raise by 2/3 pixels the box of the actor who's currently selecting the action, otherwise it's ok anyways. Thanks 🙂
Copied code from RikiFive for draw_window_frame in Face Frames script
Ruby:
module R2_Cozzie_Status_Back_Color
  Back = Color.new(0,65,155,180) # color for back when Show_Back == false
  Show_Back = false # show default status window
end
class Window_BattleStatus < Window_Selectable
  def draw_window_frame(x, y, w, h)
    contents.blt(x, y, windowskin, Rect.new(64,0,16,16))
    contents.blt(x+w-16, y, windowskin, Rect.new(112,0,16,16))
    contents.blt(x, y+h-16, windowskin, Rect.new(64,48,16,16))
    contents.blt(x+w-16, y+h-16, windowskin, Rect.new(112,48,16,16))
    adjust = $game_party.battle_members.size
    contents.fill_rect(x + 6, y + 6, adjust % 3 == 0 ? 117 : 119, 108, R2_Cozzie_Status_Back_Color::Back) unless
    R2_Cozzie_Status_Back_Color::Show_Back == true
    i=0
    while i < w-32 do
      contents.blt(x+16+i, y, windowskin, Rect.new(80,0,[w-32-i,32].min,16))
      contents.blt(x+16+i, y+h-16, windowskin, Rect.new(80,48,[w-32-i,32].min,16))
      i+=32
    end
    i=0
    while i < h-32 do
      contents.blt(x, y+16+i, windowskin, Rect.new(64,16,16,[h-32-i,32].min))
      contents.blt(x+w-16, y+16+i, windowskin, Rect.new(112,16,16,[h-32-i,32].min))
      i+=32
    end   
  end
 
  def draw_basic_area(rect, actor)
    draw_window_frame(rect.x, rect.y, rect.width, rect.height)
    draw_actor_name(actor, rect.x, rect.y + 3, rect.width)
    draw_actor_icons(actor, rect.x + 4, rect.y + line_height, rect.width)
  end

  def draw_gauge_area_with_tp(rect, actor)
    draw_gauge_area_without_tp(rect, actor)
    draw_actor_tp(actor, rect.x + 8, rect.y + line_height * 4 - 5, rect.width - 18)
  end

  def draw_gauge_area_without_tp(rect, actor)
    draw_actor_hp(actor, rect.x + 8, rect.y + line_height * 2 - 5, rect.width - 18)
    draw_actor_mp(actor, rect.x + 8, rect.y + line_height * 3 - 5, rect.width - 18)
  end
 
end

class Scene_Battle < Scene_Base
  alias r2_status_window_hide create_status_window
  def create_status_window
    r2_status_window_hide
    @status_window.opacity = 0 if R2_Cozzie_Status_Back_Color::Show_Back == false
  end
end
Copied code from RikiFive for draw_window_frame in Face Frames script
Ruby:
module R2_Cozzie_Status_Back_Color
  Back = Color.new(0,65,155,180) # color for back when Show_Back == false
  Show_Back = false # show default status window
end
class Window_BattleStatus < Window_Selectable
  def draw_window_frame(x, y, w, h)
    contents.blt(x, y, windowskin, Rect.new(64,0,16,16))
    contents.blt(x+w-16, y, windowskin, Rect.new(112,0,16,16))
    contents.blt(x, y+h-16, windowskin, Rect.new(64,48,16,16))
    contents.blt(x+w-16, y+h-16, windowskin, Rect.new(112,48,16,16))
    adjust = $game_party.battle_members.size
    contents.fill_rect(x + 6, y + 6, adjust % 3 == 0 ? 117 : 119, 108, R2_Cozzie_Status_Back_Color::Back) unless
    R2_Cozzie_Status_Back_Color::Show_Back == true
    i=0
    while i < w-32 do
      contents.blt(x+16+i, y, windowskin, Rect.new(80,0,[w-32-i,32].min,16))
      contents.blt(x+16+i, y+h-16, windowskin, Rect.new(80,48,[w-32-i,32].min,16))
      i+=32
    end
    i=0
    while i < h-32 do
      contents.blt(x, y+16+i, windowskin, Rect.new(64,16,16,[h-32-i,32].min))
      contents.blt(x+w-16, y+16+i, windowskin, Rect.new(112,16,16,[h-32-i,32].min))
      i+=32
    end  
  end
 
  def draw_basic_area(rect, actor)
    draw_window_frame(rect.x, rect.y, rect.width, rect.height)
    draw_actor_name(actor, rect.x, rect.y + 3, rect.width)
    draw_actor_icons(actor, rect.x + 4, rect.y + line_height, rect.width)
  end

  def draw_gauge_area_with_tp(rect, actor)
    draw_gauge_area_without_tp(rect, actor)
    draw_actor_tp(actor, rect.x + 8, rect.y + line_height * 4 - 5, rect.width - 18)
  end

  def draw_gauge_area_without_tp(rect, actor)
    draw_actor_hp(actor, rect.x + 8, rect.y + line_height * 2 - 5, rect.width - 18)
    draw_actor_mp(actor, rect.x + 8, rect.y + line_height * 3 - 5, rect.width - 18)
  end
 
end

class Scene_Battle < Scene_Base
  alias r2_status_window_hide create_status_window
  def create_status_window
    r2_status_window_hide
    @status_window.opacity = 0 if R2_Cozzie_Status_Back_Color::Show_Back == false
  end
end

Where should I exactly put this?
I put it under the cozziekun's one in a different page, and this is what happens :/

1639659027837.png
You need to tell me what other scripts you have below this.
I get...
1639660256575.png


Maybe move cozziekuns script down towards the bottom. and this script after it.
You need to tell me what other scripts you have below this.
I get...
View attachment 209942

Maybe move cozziekuns script down towards the bottom. and this script after it.

I tried in an empty project and it works...but
I assume this script draws the boxes and replaces the others in cozziekuns' script.
Some issues i found (and i think there could be others) are:
- You can't understand who is selecting the action, because the window doesn't result "selected"
- If you try to use an item or a skill on an actor, another basic window gets created behind the status ones and it results buggy and confusing

1639661873699.png

using an item
the window doesn't result "selected"
It does, but it behind the window frames. you can see a bit in the corners. I'm not sure how to fix this. I'll have to create something else to 'highlight' the actor.
another basic window gets created behind the status ones
This is the actor select window. To hide it would hide the select cursor.
Until I or someone else can resolve the selection then you are stuck with this. Sorry.
It does, but it behind the window frames. you can see a bit in the corners. I'm not sure how to fix this. I'll have to create something else to 'highlight' the actor.

This is the actor select window. To hide it would hide the select cursor.
Until I or someone else can resolve the selection then you are stuck with this. Sorry.
Don't worry, just your attempt to help means a lot to me 🙂
This script works if you are ok with a little arrow showing.

Original thread: https://forums.rpgmakerweb.com/threads/need-a-little-modification-on-cozziekunss-earthbound-battle-system.143025/