ZS Non-Combat Menu - Gold Window Addon // An alternate layout to Mjshi's non-combat menu.
Requires:
Setup:
Requires:
- Mjshi's Non-Combat Menu (https://forums.rpgmakerweb.com/index.php?threads/non-combat-menu.44678/
- Adjust whether or not the gold window is shown above or below Mjshi's command window.
- Adjust the gold window's opacity.
Setup:
- Paste under the Materials, and under Mjshi's script.
- None.
- 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
#==============================================================================