じ☆ve冰风 发表于 2026-8-2 11:51:56

ZS Non-Combat Menu - Gold Window Addon

ZS Non-Combat Menu - Gold Window Addon // An alternate layout to Mjshi's non-combat menu.

Requires:

[*]Mjshi's Non-Combat Menu (https://forums.rpgmakerweb.com/index.php?threads/non-combat-menu.44678/
Customization:

[*]Adjust whether or not the gold window is shown above or below Mjshi's command window.
[*]Adjust the gold window's opacity.
Screenshots:







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

#==============================================================================




本贴来自国际rpgmaker官方论坛作者:tvghost处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/zs-non-combat-menu-gold-window-addon.111984/
页: [1]
查看完整版本: ZS Non-Combat Menu - Gold Window Addon