Z in save screen

Hello,
My newest script allows you to do various things with the visuals of the save screen. I have almost finished but cannot work out how to use Z to make the faces (which this script adds) go behind the text and the sprites. I hope you could help me with this. Here is the script:

#----------------------------------------------------------------------------# AriArk's Visual Save Options# Version 1.00#----------------------------------------------------------------------------# This script allows you to change things about the save scene.# 1. Hide party characters# 2. Hide playtime# 3. Lets you use faces (if you want)# 4. Change character positions#----------------------------------------------------------------------------class Window_SaveFile < Window_Base def initialize(height, index)#----------------------------------------------------------------------------# Show the party on save & load scene?#---------------------------------------------------------------------------- @show_party_characters = false #----------------------------------------------------------------------------# Show playtime on save & load scene?#---------------------------------------------------------------------------- @show_playtime = true #----------------------------------------------------------------------------# Show faces on save & load scene?#---------------------------------------------------------------------------- @show_faces = true #----------------------------------------------------------------------------# DO NOT TOUCH#---------------------------------------------------------------------------- super(0, index * height, Graphics.width, height) @file_index = index refresh @selected = false end#----------------------------------------------------------------------------def refresh contents.clear change_color(normal_color) name = Vocab::File + " #{@file_index + 1}" draw_text(4, 0, 200, line_height, name) @name_width = text_size(name).width#----------------------------------------------------------------------------#\DO NOT TOUCH#----------------------------------------------------------------------------# Party Character Position (x, y)#---------------------------------------------------------------------------- draw_party_characters(152, 58) # deafult 152, 58 draw_party_faces(0, 0) # deafult 0, 0 #---------------------------------------------------------------------------draw_playtime(0, contents.height - line_height, contents.width - 4, 2)endend#---------------------------------------------------------------------------class Window_SaveFile < Window_Base def draw_party_characters(x, y) if @show_party_characters header = DataManager.load_header(@file_index) return unless header header[:characters].each_with_index do |data, i| draw_character(data[0], data[1], x + i * 48, y) end end def draw_party_faces(x, y) if @show_faces header = DataManager.load_header(@file_index) return unless header header[:characters].each_with_index do |data, i| draw_face(data[0], data[1], x + i * 96, y) end end def draw_playtime(x, y, width, align) if @show_playtime header = DataManager.load_header(@file_index) return unless header draw_text(x, y, width, line_height, header[😛laytime_s], 2) endenddef draw_party_faces(x, y) if @show_faces header = DataManager.load_header(@file_index) return unless header header[:characters].each_with_index do |data, i| draw_face(data[0], data[1], x + i * 96, y) end endendendendend

The part that needs the Z axis is near the bottom - it is the method draw_party_faces(x, y).
I don't know the whole ruby thing yet or what not but in the last program I used that had me coding it wasn't a z axis that determined what was drawn on top of the other in 2d but the order in which it's told to draw the object.

So if the same logic applies, have you tried moving the code that draws the face further up on the list so that it's not drawn last?
Nope, that doesn't work.
Show me your new refresh method.
Show me your new refresh method.
def refresh contents.clear change_color(normal_color) name = Vocab::File + " #{@file_index + 1}" draw_text(4, 0, 200, line_height, name) @name_width = text_size(name).width draw_party_characters(152, 58) # deafult 152, 58 draw_party_faces(0, 0) # deafult 0, 0 draw_playtime(0, contents.height - line_height, contents.width - 4, 2) endHere you go. Just added draw_party_faces under draw_party_characters.

Edit:

Don't worry, the first person was correct - I was just being stupid, thought I changed it, but I actually different (god, i'm dumb).
So it works now?
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/z-in-save-screen.17783/