RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Chigoo's Sliding DMS

0 Members and 1 Guest are viewing this topic.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Chigoo's Sliding Default Menu System
Version: 1.0
Author: modern algebra
Date: Canada Day, 2011 (July 1)

Version History


  • <Version 1.0> 2011.06.01 - Original Release

Description


This is a menu, requested by chigoo, which is the same as the default menu except instead of the status window always being present, the command window shows up in the middle of the screen and the status window is off-screen. Once you select an option, however, the windows slide back into the places they belong.

Features

  • Simple design
  • Slides into the traditional DMS once you select an option that requires you to select an actor
  • Can configure speed, as well as the SEs that play on sliding

Screenshots



Instructions

This script REQUIRES Sliding Graphics 1.0.

Add this script into its own slot in the Script Editor, above Main but below any other custom scripts you might have.

See the header of the scripts for further instructions.

Script


Code: [Select]
#==============================================================================
#    Chigoo's Sliding DMS
#      Sample use of Sliding Graphics 1.0
#    Version: 1.0
#    Author: modern algebra (rmrk.net)
#    Date: Canada Day, 2011 (July 1)
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#
#    This is a menu, requested by chigoo, which is the same as the default menu
#   except instead of the status window always being present, the command
#   window shows up in the middle of the screen and the status window is off-
#   screen. Once you select an option, however, the windows slide back into the
#   places they belong.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#
#    This script REQUIRES Sliding Graphics 1.0. Simply paste both scripts below
#   Materials and somewhere above Main.
#
#    In the Editable Region at line 26, there are options where you can choose
#   how fast they slide and what SEs play at the start and end of the slide.
#==============================================================================

#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#  EDITABLE REGION
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CHIGOO_SLIDE_FRAMES = 30 # How many frames it takes for the slide to complete
#  For both the Start SE and the Finish SE, they can be either a string and
# it will play that file at 100 volume and 100 pitch, or you can specify the
# volume and pitch by instead using an array in the form of:
#    ["SE file", volume, pitch]
CHIGOO_START_SE = "" # The SE to play when starting the slide
CHIGOO_FINISH_SE = ["Flash1", 100, 80] # The SE to play when ending the slide
#||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#  END EDITABLE REGION
#////////////////////////////////////////////////////////////////////////////
 
$imported = {} unless $imported
$imported["ChigooSlideMenu"] = true

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

class Scene_Menu
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Start
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mal_chig_grphsl_start_2as7 start
  def start (*args, &block)
    mal_chig_grphsl_start_2as7 (*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
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mlgb_chigoo_strtactr_6yk8 start_actor_selection
  def start_actor_selection (*args, &block)
    mlgb_chigoo_strtactr_6yk8 (*args, &block) # Run Original Method
    start_slide (0, @gold_window.y, @gold_window, CHIGOO_SLIDE_FRAMES, CHIGOO_START_SE, CHIGOO_FINISH_SE)
    start_slide (0, 0, @command_window, CHIGOO_SLIDE_FRAMES)
    start_slide (@command_window.width, @status_window.y, @status_window, CHIGOO_SLIDE_FRAMES)
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * End Actor Selection
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mag_chig_slidmen_endactsel_7ik1 end_actor_selection
  def end_actor_selection (*args, &block)
    mag_chig_slidmen_endactsel_7ik1 (*args, &block) # Run Original Method
    x = (Graphics.width - @gold_window.width) / 2
    start_slide (x, @gold_window.y, @gold_window, CHIGOO_SLIDE_FRAMES, [], CHIGOO_FINISH_SE)
    x = (Graphics.width - @command_window.width) / 2
    y = (Graphics.height - @gold_window.height - @command_window.height) / 2
    start_slide (x, y, @command_window, CHIGOO_SLIDE_FRAMES)
    start_slide (Graphics.width, @status_window.y, @status_window, CHIGOO_SLIDE_FRAMES)
  end
end

Credit


  • modern algebra

Thanks


Support


Please post here in this topic for support. Do not PM me.

Known Compatibility Issues

May not work as desired with menu systems other than the DMS.

Demo


See the sample demo of Sliding Graphics 1.0
« Last Edit: July 01, 2011, 05:32:25 PM by modern algebra »

**
Rep: +0/-0Level 66
Open World Guy
this is really awesome! way better than the default menu.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
I'm glad you like it. It is a pretty simple script.