ZS Non-Combat Menu - Gold Window Addon

ZirconStorms

VX & VX Ace Scripts
Veteran
Joined
Dec 22, 2014
Messages
359
Reaction score
112
First Language
English
Primarily Uses
RMVXA
ZS Non-Combat Menu - Gold Window Addon // An alternate layout to Mjshi's non-combat menu.

Requires:
Customization:
  • Adjust whether or not the gold window is shown above or below Mjshi's command window.
  • Adjust the gold window's opacity.
Screenshots:
mjshi1.png
mjshi2.png


Setup:
  • Paste under the Materials, and under Mjshi's script.
Known issues:
  • None.
Usage Notes:
  • Don't remove the author part of the header.
  • Script is allowed for commercial and non-commercial projects.
  • Users are free to modify the script as they wish for their own projects.
Code:
#==============================================================================
#
# ** Title: ZS Non-Combat Menu - Gold Window Addon 1.0
#    Created: August 2019
#    Creator: ZirconStorms
#    Requires: Mjshi - Non-combat Menu
#
#------------------------------------------------------------------------------
# Description: An alternate layout to Mjshi's non-combat menu.
#------------------------------------------------------------------------------
#
# Script is allowed for commercial and non-commercial games.
# In the game's credits or read.me, credit "ZirconStorms".
#
#==============================================================================
# Customizable Section Begins Here.
#==============================================================================

module ZSMJSHILAYOUT
 
  GOLD_ABOVE_COMMANDS = true
  #If true, the gold window will be shown above the command window.
  #If false, the gold window will be shown below the command window.
 
  GOLD_WINDOW_OPACITY = 255
  #Use a value between 0 and 255.
 
end

#==============================================================================
# Customizable Section Ends Here.
#==============================================================================

class Scene_End
  #--------------------------------------------------------------------------
  alias zircon819_start start
  def start
    super
    zircon819_start
    create_gold_window
  end #start
  #--------------------------------------------------------------------------
  def create_gold_window
    # Makes the gold window (if aligned right) be under any new windows
    @gold_window = Window_Gold.new
    @gold_window.openness = 0
    @gold_window.x = @command_window.x
    if ZSMJSHILAYOUT::GOLD_ABOVE_COMMANDS == true
      @command_window.y += (@gold_window.height / 2)
      @gold_window.y = @command_window.y - @gold_window.height
    else
      @gold_window.y = @command_window.y + @command_window.height
      @gold_window.y -= (@gold_window.height / 2)
      @command_window.y -= (@gold_window.height / 2)
    end
    @gold_window.viewport = @viewport
    @gold_window.open
  end
  #--------------------------------------------------------------------------
  def close_command_window
    @command_window.close
    @gold_window.close
    update until @gold_window.close
    update until @command_window.close?
  end #close_command_window
  #--------------------------------------------------------------------------
end

#==============================================================================
 
Last edited:

Users Who Are Viewing This Thread (Users: 1, Guests: 1)

Latest Threads

Latest Profile Posts

I spent the whole day creating and finishing around 12 skills and fixing 2 others... and 3 of them are still buggy... *sigh* only like 20 more skills to go!
I don't know why you should be reading this, but I doubt you're going to find anything useful here.
so, ive been gone for too long when i log in and see that everything is where is shouldn't be. XD
Steam killing my eyes.. I forgot why I use it only when I have no other choice
Making a map, my brain went "Look, Mjölnir!" as I plotted out a sacrificial entrance.

Actually, it went, "Look, hammer. Wait, Thor's hammer!"

Forum statistics

Threads
95,408
Messages
928,959
Members
125,629
Latest member
nickofspe
Top