赞 | 0 |
VIP | 0 |
好人卡 | 1 |
积分 | 1 |
经验 | 1753 |
最后登录 | 2014-1-19 |
在线时间 | 228 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 228 小时
- 注册时间
- 2012-2-27
- 帖子
- 30
|
在Scene_Menu中修改成如下- #--------------------------------------------------------------------------
- # ● 开始处理
- #--------------------------------------------------------------------------
- def start
- super
- create_command_window
- #~ create_gold_window
- create_status_window
- ##########
- create_menugold_window
- end
- #--------------------------------------------------------------------------
- # ● 生成指令窗口
- #--------------------------------------------------------------------------
- def create_command_window
- @command_window = Window_MenuCommand.new
- @command_window.set_handler(:item, method(:command_item))
- @command_window.set_handler(:skill, method(:command_personal))
- @command_window.set_handler(:equip, method(:command_personal))
- @command_window.set_handler(:status, method(:command_personal))
- @command_window.set_handler(:formation, method(:command_formation))
- @command_window.set_handler(:save, method(:command_save))
- @command_window.set_handler(:game_end, method(:command_game_end))
- @command_window.set_handler(:cancel, method(:return_scene))
-
- end
- #--------------------------------------------------------------------------
- # ● 生成金钱窗口
- #--------------------------------------------------------------------------
- def create_menugold_window
- @menugold_window = Window_MenuGold.new
- @menugold_window.x = 0
- @menugold_window.y = Graphics.height - @menugold_window.height
-
- end
- #~ #--------------------------------------------------------------------------
- #~ # ● 生成金钱窗口
- #~ #--------------------------------------------------------------------------
- #~ def create_gold_window
- #~ @gold_window = Window_Gold.new
- #~ @gold_window.x = 0
- #~ @gold_window.y = Graphics.height - @gold_window.height
- #~ end
复制代码 在将Window_Gold复制一份在main前 在做如下修改,- #==============================================================================
- # ■ Window_MenuGold
- #------------------------------------------------------------------------------
- # 显示持有金钱的窗口
- #==============================================================================
- class Window_MenuGold < Window_Base
- #--------------------------------------------------------------------------
- # ● 初始化对象
- #--------------------------------------------------------------------------
- def initialize
- super(0, 0, window_width, fitting_height(1)) #金钱窗口高度
- self.opacity = 0
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 获取窗口的宽度
- #--------------------------------------------------------------------------
- def window_width
- return 160
- end
复制代码 |
|