Project1
标题:
第一锅标题附加
[打印本页]
作者:
A.S.002
时间:
2013-2-7 20:54
标题:
第一锅标题附加
最近时间太少,亲各位见谅
直接上脚本
#encoding:utf-8
#==============================================================================
# ■ Window_TitleCommand
#------------------------------------------------------------------------------
# 标题画面中,选择“开始游戏/继续游戏”的窗口。
#==============================================================================
class Window_TitleCommand < Window_Command
#--------------------------------------------------------------------------
# ● 初始化对象
#--------------------------------------------------------------------------
def initialize
super(0, 0)
update_placement
select_symbol(:continue) if continue_enabled
self.openness = 0
open
end
#--------------------------------------------------------------------------
# ● 获取窗口的宽度
#--------------------------------------------------------------------------
def window_width
return 120
end
#--------------------------------------------------------------------------
# ● 获取窗口的高度
#--------------------------------------------------------------------------
def window_height
return 48
end
#--------------------------------------------------------------------------
# ● 更新窗口的位置
#--------------------------------------------------------------------------
def update_placement
self.x = (Graphics.width - width) / 2
self.y = (Graphics.height * 1.6 - height) / 2
end
#--------------------------------------------------------------------------
# ● 生成指令列表
#--------------------------------------------------------------------------
def make_command_list
add_command(Vocab::new_game, :new_game)
add_command(Vocab::continue, :continue, continue_enabled)
add_command(Vocab::shutdown, :shutdown)
end
#--------------------------------------------------------------------------
# ● 获取“继续游戏”选项是否有效
#--------------------------------------------------------------------------
def continue_enabled
DataManager.save_file_exists?
end
end
复制代码
效果自见(怪)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1