Simplified Menu changes (beginner)

Hi, I'm making a game where there's only one playable character and it's actually more puzzle/adventure oriented, so I thought it would be nice to simplify the menu since most of it isn't needed.

So, I replaced the Window_MenuStatus for the Window_Status, made the commands horizontal, removed most of the commands, put the on top with the gold window too. Overall it already looks simple and nice enough, but I kind of want to change the face graphic of the character for a full body picture. I already identified the code I would have to change:

  #--------------------------------------------------------------------------  # * Draw Block 2  #--------------------------------------------------------------------------  def draw_block2(y)    draw_actor_face(@actor, 8, y)    draw_basic_info(136, y)     endObviously I have to replace draw_actor_face for something else, that's what I'm not so sure about. I admit, I don't know much about syntax, I've managed to make all changes because I studied programming and I guess it's easier for me to spot what does what, etc. I was reading the help file and other modules and I guess I should use sprites or bitmaps and it should be easy since it's only one character so I can point the code to an specific image on the pictures folder. So basically, the question is how I do that?

And yes, I know I have to study the syntax, etc, it's the plan, but I'm asking so I can make this little change without having to stop to study who knows for how long =P

Thanks in advance for any help!
You want to draw a bust of the actor then?

I'll give you the exact code I did with my Mirai CMS how to do this. First of all, you need to create a method that draws the portrait using the bitmap, rect and contents functions:

#-------------------------------------------------------------------------- # * Draw Actor Portrait #-------------------------------------------------------------------------- def draw_actor_portrait(actor, x, y, enabled = true) bitmap = Cache.picture(Soulpour::CMS_Actor::Actor_Portrait[actor.actor_id]) rect = Rect.new(0,0, 500, Graphics.height) contents.blt(x, y, bitmap, rect, enabled ? 255 : translucent_alpha) bitmap.dispose end So as you can see, I am getting a portrait image from a hash, here's the complete hash code:

module Soulpour #-------------------------------------------------------------------------- # What is the variable ID of the counter? # What is a counter? - This counter is needed to count if in what item # should the help be and display the proper menu information. #-------------------------------------------------------------------------- Counter_Variable = 1 #-------------------------------------------------------------------------- # * CMS Actors Configuration (For Portrait) #-------------------------------------------------------------------------- module CMS_Actor Actor_Portrait = { 8 => "Rinara", } endendThat's how I did it for drawing the portrait. It would cause you an error because it won't recognize the actor id there, so you might want to add an attr_accessor to make that work, for example:

class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # * Public Instance Variables (To Show Portrait) #-------------------------------------------------------------------------- attr_reader :actor_idendYou might be wondering where I placed the actor portrait method, right? It's on the Window_MenuStatus' draw item method:

Code:
  #--------------------------------------------------------------------------  # * Draw Item  #--------------------------------------------------------------------------  def draw_item(index)    actor = $game_party.members[index]    enabled = $game_party.battle_members.include?(actor)    rect = item_rect(index)    draw_item_background(index)    draw_actor_portrait(actor, x - 160, 10, enabled = true)    draw_mirai_cms_actor_status(actor, rect.x + 108, rect.y + line_height / 2)  end
Nice! Thanks a lot!

Although I couldn't use much of what you posted, mostly because I thought it was overkill for this way too simple game, it certainly pointed me in the right way. 

I used this a the method to draw the portrait:

  #--------------------------------------------------------------------------  # * Draw Char Portrait  #--------------------------------------------------------------------------  def draw_actor_portrait(x, y, enabled = true)    portrait = Cache.picture("mao_menu.png")    rect = Rect.new(0,0, portrait.width, portrait.height)    contents.blt(x, y, portrait, rect, enabled ? 255 : translucent_alpha)    portrait.dispose     end  And because I'm not using Window_MenuStatus, I replaced it with Window_Status, here is where the method is called:

 #--------------------------------------------------------------------------  # * Draw Block 2  #--------------------------------------------------------------------------  def draw_block2(y)    draw_actor_portrait(0, 0, enabled = true)    draw_basic_info(236, y)     endI tinkered around with the rest of the information positions, and it's done. Quite happy with the results.

newmenu_zps11e2b2c2.png


Thanks again 😀
You're welcome. I was just lazy to do it directly so I redirected you with a script I made before that does this, sorry 😀 But I am glad that you were able to base from it and made your own. Enjoy 😉

Original thread: https://forums.rpgmakerweb.com/threads/simplified-menu-changes-beginner.26109/