The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: crow5derlock on September 23, 2012, 06:17:48 PM

Title: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 06:17:48 PM
Ok, simple enough hopefully, I want a menu script that removes all bet the return to game and the end game buttons in the center of the screen when paused, and a small window at the top right that shows the characters Face, Name, and Health.



(https://rmrk.net/proxy.php?request=http%3A%2F%2Ffc01.deviantart.net%2Ffs70%2Ff%2F2012%2F267%2F5%2F8%2Fcoustom_menu_layout_for_rmvxace_by_crow5derlock-d5frhsb.png&hash=75cbdb13c0c09b5e757c7c166c563ce855f3bf9b)
Title: Re: Menu remover [VXA]
Post by: D&P3 on September 23, 2012, 07:00:08 PM
Wouldn't a hud solve your face display problem?
If I was to take this request, I'm sure there are supplements to take care of that portion for me?
Title: Re: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 07:20:15 PM
Not 100%, i'm still learning ruby, and until i understand it i'm still stuck with asking for help on allot. :/
but i'll be sure to credit you if you take the request.
Title: Re: Menu remover [VXA]
Post by: D&P3 on September 23, 2012, 07:28:10 PM
A hud is a custom script. You don't need to know Ruby to be able to find one ;)
Title: Re: Menu remover [VXA]
Post by: DoctorTodd on September 23, 2012, 07:32:29 PM
All you need is a menu script like the one in the picture? I can do that unless D&P3 wants to.
Title: Re: Menu remover [VXA]
Post by: D&P3 on September 23, 2012, 07:38:02 PM
You do it :) I'm working on another script right now anyway :D
Title: Re: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 07:42:50 PM
thank you both for your input i look forward to seeing what you get for me DoctorTodd
Title: Re: Menu remover [VXA]
Post by: D&P3 on September 23, 2012, 07:47:16 PM
Do you actually want him to remove the default menu system entirely, or is this new menu system going to be active and inactive as you decree?
In simple terms, do you want the menu to be able to switch from default to this and vice-versa?
Title: Re: Menu remover [VXA]
Post by: DoctorTodd on September 23, 2012, 08:07:44 PM
How's this?
Code: [Select]
################################################################################
#                   ***Menu requested by crow5derlock***
################################################################################
# Author: Todd (Beacon Games)
# Date of completion: 9/23/2012
# Version: 1.0
# Support: Support@beacongames.com
################################################################################

class Scene_Menu < Scene_MenuBase
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_command_window
    create_status_window
  end
  #--------------------------------------------------------------------------
  # * Create Status Window
  #--------------------------------------------------------------------------
  def create_status_window
    @status_window = Window_MenuInfo.new(Graphics.width - 110, 0)
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
   @command_window = Window_MenuCommand.new
    @command_window.set_handler(:resume,  method(:command_resume))
    @command_window.set_handler(:game_end,  method(:command_game_end))
    @command_window.set_handler(:cancel,    method(:return_scene))
    @command_window.x = Graphics.width * 0.5 - 85
    @command_window.y = Graphics.height * 0.5 - 50
    end
  end
  #--------------------------------------------------------------------------
  # * [Resume] Command
  #--------------------------------------------------------------------------
  def command_resume
    return_scene
  end
  #--------------------------------------------------------------------------
  # * [Exit Game] Command
  #--------------------------------------------------------------------------
  def command_game_end
    SceneManager.call(Scene_End)
end
#===================================================================
# ** Window_MenuStatus
#------------------------------------------------------------------------------
#  This window displays the characters status on the menu screen.
#==============================================================================

class Window_MenuInfo < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, 110, 161)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
     @actor = $game_party.members[0]
      draw_actor_face(@actor, 0, 0)
      draw_actor_name(@actor, 0, 95)
       draw_text(30, 117 , 180, line_height, @actor.hp)
        draw_text(0, 117 , 180, line_height, "HP")
      end
  end
#==============================================================================
# ** Window_MenuCommand
#------------------------------------------------------------------------------
#  This command window appears on the menu screen.
#==============================================================================

class Window_MenuCommand < Window_Command
  #--------------------------------------------------------------------------
  # * Initialize Command Selection Position (Class Method)
  #--------------------------------------------------------------------------
  def self.init_command_position
    @@last_command_symbol = nil
  end
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0)
    select_last
  end
  #--------------------------------------------------------------------------
  # * Get Window Width
  #--------------------------------------------------------------------------
  def window_width
    return 160
  end
  #--------------------------------------------------------------------------
  # * Get Number of Lines to Show
  #--------------------------------------------------------------------------
  def visible_line_number
    item_max
  end
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  def make_command_list
    add_main_commands
    add_original_commands
  end
  #--------------------------------------------------------------------------
  # * Add Main Commands to List
  #--------------------------------------------------------------------------
  def add_main_commands
    add_command("Resume",   :resume)
    add_command(Vocab::game_end, :game_end)
  end
  #--------------------------------------------------------------------------
  # * For Adding Original Commands
  #--------------------------------------------------------------------------
  def add_original_commands
  end
  #--------------------------------------------------------------------------
  # * Processing When OK Button Is Pressed
  #--------------------------------------------------------------------------
  def process_ok
    @@last_command_symbol = current_symbol
    super
  end
  #--------------------------------------------------------------------------
  # * Restore Previous Selection Position
  #--------------------------------------------------------------------------
  def select_last
    select_symbol(@@last_command_symbol)
  end
end
Title: Re: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 08:09:27 PM
Yeah, that would probably be best, then it would at least be usable for many people not just me, i don't know many people who would just remove the entire menu system.

so yes please make it interchangeable.
Title: Re: Menu remover [VXA]
Post by: DoctorTodd on September 23, 2012, 08:14:54 PM
Wait so you want an entirely different scene?
Title: Re: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 08:31:42 PM
no, it should be fin, thank you for your work
Title: Re: Menu remover [VXA]
Post by: DoctorTodd on September 23, 2012, 08:33:37 PM
Your welcome.  :)

If you don't mind could you credit me like this?
Code: [Select]
Todd (Beacon Games)
Title: Re: Menu remover [VXA]
Post by: crow5derlock on September 23, 2012, 08:43:45 PM
sure


The game its being used in is here: http://rmrk.net/index.php/topic,46812.msg532115.html#msg532115

the demo is not updated yet.