Customizable Status Screen

So. I wasn't too happy with the default status screen. i thought there was a lot of unneeded stuff. And I was wondering how I could take out all of that unneeded stuff. So I decided to edit the status screen script, 'Window_Status'. I made it so it was a lot easier to customize the status screen. You can take out stuff that you don't need. I don't really take credit for this since all I really did was move stuff around. So pretty much, 99% credit for enterbrain for scripting it, and 1% credit to me for just making it easier to edit and move around.

Spoiler
#==============================================================================

# **  Customizable Status Screen

#     by Enterbrain

#     Modified my Culai

#------------------------------------------------------------------------------

#  This window is like the default status screen except it makes it much easier

#  to customize it. Experiment around with it! If you take any draw_blocks out make sure

#  you take out the same Draw Block later on.

#==============================================================================

 

class Window_Status < Window_Selectable

  

  #--------------------------------------------------------------------------

  # Customizable Area

  # To customize, just take out different lines. I've provided descriptions of

  # what each line does.

  #--------------------------------------------------------------------------

  def refresh

    contents.clear

    draw_block1   (line_height * 0) #This takes out the line that says the characters

                                    #name and class.

    

    draw_horz_line(line_height * 1) #This takes out the first line.

    

    draw_block2   (line_height * 2) #This takes out the characters HP, MP, and level info.

    

    draw_horz_line(line_height * 6) #This takes out the second line.

    

    draw_block3   (line_height * 7) #This takes out the equipment info.

    

    draw_horz_line(line_height * 13)#This takes out the third line.

    

    draw_block4   (line_height * 14)#This takes out the character desciption. 

  end

  #--------------------------------------------------------------------------

  # * Draw Block 1 NOTE: Take out if you remove 'draw_block1'

  #--------------------------------------------------------------------------

  def draw_block1(y)

    draw_actor_name(@actor, 4, y)

    draw_actor_class(@actor, 128, y)

    draw_actor_nickname(@actor, 288, y)

  end

  #--------------------------------------------------------------------------

  # * Draw Block 2 NOTE: Take out if you remove 'draw_block2'

  #--------------------------------------------------------------------------

  def draw_block2(y)

    draw_actor_face(@actor, 8, y)

    draw_basic_info(136, y)

    draw_exp_info(304, y)

  end

  #--------------------------------------------------------------------------

  # * Draw Block 3 NOTE: Take out if you remove 'draw_block3'

  #--------------------------------------------------------------------------

  def draw_block3(y)

    draw_parameters(32, y)

    draw_equipments(288, y)

  end 

  #--------------------------------------------------------------------------

  # * Draw Block 4 NOTE: Take out if you remove 'draw_block4'

  #--------------------------------------------------------------------------

  def draw_block4(y)

    draw_description(4, y)

  end

  #--------------------------------------------------------------------------

  # End Customizable Area

  #--------------------------------------------------------------------------

  def initialize(actor)

    super(0, 0, Graphics.width, Graphics.height)

    @actor = actor

    refresh

    activate

  end

  #--------------------------------------------------------------------------

  # * Set Actor

  #--------------------------------------------------------------------------

  def actor=(actor)

    return if @actor == actor

    @actor = actor

    refresh

  end

  #--------------------------------------------------------------------------

  # * Draw Horizontal Line

  #--------------------------------------------------------------------------

  def draw_horz_line(y)

    line_y = y + line_height / 2 - 1

    contents.fill_rect(0, line_y, contents_width, 2, line_color)

  end

  #--------------------------------------------------------------------------

  # * Get Color of Horizontal Line

  #--------------------------------------------------------------------------

  def line_color

    color = normal_color

    color.alpha = 48

    color

  end

  #--------------------------------------------------------------------------

  # * Draw Basic Information

  #--------------------------------------------------------------------------

  def draw_basic_info(x, y)

    draw_actor_level(@actor, x, y + line_height * 0)

    draw_actor_icons(@actor, x, y + line_height * 1)

    draw_actor_hp(@actor, x, y + line_height * 2)

    draw_actor_mp(@actor, x, y + line_height * 3)

  end

  #--------------------------------------------------------------------------

  # * Draw Parameters

  #--------------------------------------------------------------------------

  def draw_parameters(x, y)

    6.times {|i| draw_actor_param(@actor, x, y + line_height * i, i + 2) }

  end

  #--------------------------------------------------------------------------

  # * Draw Experience Information

  #--------------------------------------------------------------------------

  def draw_exp_info(x, y)

    s1 = @actor.max_level? ? "-------" : @actor.exp

    s2 = @actor.max_level? ? "-------" : @actor.next_level_exp - @actor.exp

    s_next = sprintf(Vocab::ExpNext, Vocab::level)

    change_color(system_color)

    draw_text(x, y + line_height * 0, 180, line_height, Vocab::ExpTotal)

    draw_text(x, y + line_height * 2, 180, line_height, s_next)

    change_color(normal_color)

    draw_text(x, y + line_height * 1, 180, line_height, s1, 2)

    draw_text(x, y + line_height * 3, 180, line_height, s2, 2)

  end

  #--------------------------------------------------------------------------

  # * Draw Equipment

  #--------------------------------------------------------------------------

  def draw_equipments(x, y)

    @actor.equips.each_with_index do |item, i|

      draw_item_name(item, x, y + line_height * i)

    end

  end

#--------------------------------------------------------------------------

  # * Draw Description

  #--------------------------------------------------------------------------

  def draw_description(x, y)

    draw_text_ex(x, y, @actor.description)

  end

end
 

Thanks to everyone who uses this!

 

EDIT: Made it easier to understand how to edit this.
Can you show an image of how this would look to us non-scripters?
You basically just taken all the parts where the windows are made... Which doesn't really make it easier for non-scripters to understand. Most non-scripters would look for a configuration table or something instead of having to directly modify the parts which process these things. You didn't even define what each part does, and which needs to be edited to do something.  🙂

For scripters, this also wouldn't make much sense as I could just as well do this too in a very short while, though I don't really need to as this is just the same as editing them almost directly anyways.

If you want this to at least be usable for non-scripters, please define what each part does and how editing them affects things. :3
Alright. I will edit it. Sorry!

EDIT: Made it easier to understand how to edit. Sorry about not making it clear before!

EDIT2: Also, I'm really not a scripter, I just said I edited the script by moving things around.
Actually, define what each draw_block method you included there does and how to edit them too. Right now, this script can even stand even if you simply remove those if the only purpose of the script is to just determine which line is showed and which is not. Deleting them won't change a thing because the methods themselves are still present in the original status script anyway.
Deleting will change a thing. When you delete the first block, you delete the part where it says the characters name and the characters class.
You didn't get it... I don't mean these:

def refresh contents.clear draw_block1 (line_height * 0) #This takes out the line that says the characters #name and class. I mean the actual

Code:
def draw_block1
Even if you remove all of those methods, they are still in existence since the original script has them. Try it, leave only your refresh method, it will still work correctly.basically this shorter one will work the same way as your script above, if what you want to achieve is to only allow easy removal of lines

Code:
class Window_Status < Window_Selectable    #--------------------------------------------------------------------------  # Customizable Area  # To customize, just take out different lines. I've provided descriptions of  # what each line does.  #--------------------------------------------------------------------------  def refresh    contents.clear    draw_block1   (line_height * 0) #This takes out the line that says the characters                                    #name and class.        draw_horz_line(line_height * 1) #This takes out the first line.        draw_block2   (line_height * 2) #This takes out the characters HP, MP, and level info.        draw_horz_line(line_height * 6) #This takes out the second line.        draw_block3   (line_height * 7) #This takes out the equipment info.        draw_horz_line(line_height * 13)#This takes out the third line.        draw_block4   (line_height * 14)#This takes out the character desciption.   end  #------end
so either remove those methods from the script, or teach the users how to edit them too.
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.


at OP's request

Original thread: https://forums.rpgmakerweb.com/threads/customizable-status-screen.35641/