RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

[Resolved] Modifying Chingoos Sliding Menu

Started by tehMagus, July 05, 2011, 10:35:08 PM

0 Members and 1 Guest are viewing this topic.

tehMagus

Hello,
I really like the design of Modern Algebra's Chingoos Sliding Menu. However, I am making a game that only involves a party that consists of one player. I'm looking for a script that modifies this CMS so that when you select Equip/Status/Skill/ it goes straight to the respective menu for the party leader. This would mean that I do not need the sliding aspect of the menu, just its design.
The CMS is here: http://rmrk.net/index.php/topic,43068.0.html
Thank you,
Magus

modern algebra

Here:


#==============================================================================
#    tehMagus' One Actor Menu System
#    Version: 1.0
#    Author: modern algebra (rmrk.net)
#    Date: July 5, 2011
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This is a menu, requested by tehMagus, that is designed for a party of one
#   member and as such skips actor selection when choosing the Equip, Skill,
#   commands, etc...
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Paste this script above Main and below Materials.
#==============================================================================
 
$imported = {} unless $imported
$imported["TehMagusOAMS"] = true

#==============================================================================
# ** Scene_Menu
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - start
#    overwritten method - start_actor_selection
#==============================================================================

class Scene_Menu
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias ma_tem_oams_start_1bv8 start
  def start (*args, &block)
    ma_tem_oams_start_1bv8 (*args, &block) # Run Original Method
    @command_window.x = (Graphics.width - @command_window.width) / 2
    @command_window.y = (Graphics.height - @gold_window.height - @command_window.height) / 2
    @gold_window.x = (Graphics.width - @gold_window.width) / 2
    @status_window.x = Graphics.width
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start Actor Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def start_actor_selection (*args, &block)
    @status_window.index = 0
    update_actor_selection
  end
end

tehMagus

Quote from: modern algebra on July 05, 2011, 10:46:59 PM
Here:


#==============================================================================
#    tehMagus' One Actor Menu System
#    Version: 1.0
#    Author: modern algebra (rmrk.net)
#    Date: July 5, 2011
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This is a menu, requested by tehMagus, that is designed for a party of one
#   member and as such skips actor selection when choosing the Equip, Skill,
#   commands, etc...
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    Paste this script above Main and below Materials.
#==============================================================================
 
$imported = {} unless $imported
$imported["TehMagusOAMS"] = true

#==============================================================================
# ** Scene_Menu
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - start
#    overwritten method - start_actor_selection
#==============================================================================

class Scene_Menu
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias ma_tem_oams_start_1bv8 start
  def start (*args, &block)
    ma_tem_oams_start_1bv8 (*args, &block) # Run Original Method
    @command_window.x = (Graphics.width - @command_window.width) / 2
    @command_window.y = (Graphics.height - @gold_window.height - @command_window.height) / 2
    @gold_window.x = (Graphics.width - @gold_window.width) / 2
    @status_window.x = Graphics.width
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start Actor Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def start_actor_selection (*args, &block)
    @status_window.index = 0
    update_actor_selection
  end
end

Thanks!