Project1
标题:
请问脚本Scene_Title如何将那个选择的那个方框去掉?
[打印本页]
作者:
897727980
时间:
2012-4-23 13:36
标题:
请问脚本Scene_Title如何将那个选择的那个方框去掉?
本帖最后由 897727980 于 2012-4-23 13:38 编辑
dsu_plus_rewardpost_czw
阿大使大赛的.png
(6.87 KB, 下载次数: 6)
下载附件
保存到相册
2012-4-23 13:37 上传
作者:
kangxi0109
时间:
2012-4-23 14:05
本帖最后由 kangxi0109 于 2012-4-23 14:06 编辑
添加脚本将窗口透明度改为零:
# 生成命令窗口
s1 = "新游戏"
s2 = "继续"
s3 = "退出"
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
#========================
@command_window.opacity = 0#窗口透明度
复制代码
作者:
hys111111
时间:
2012-4-23 14:05
本帖最后由 hys111111 于 2012-4-23 14:06 编辑
在Scene_Title这段的下面加两句:
#==============================================================================
# ■ Scene_Title
#------------------------------------------------------------------------------
# 处理标题画面的类。
#==============================================================================
class Scene_Title
#--------------------------------------------------------------------------
# ● 住处理
#--------------------------------------------------------------------------
def main
# 战斗测试的情况下
if $BTEST
battle_test
return
end
# 载入数据库
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
# 生成系统对像
$game_system = Game_System.new
# 生成标题图形
@sprite = Sprite.new
@sprite.bitmap = RPG::Cache.title($data_system.title_name)
# 生成命令窗口
s1 = "新游戏"
s2 = "继续"
s3 = "退出"
@command_window = Window_Command.new(192, [s1, s2, s3])
@command_window.back_opacity = 160
@command_window.x = 320 - @command_window.width / 2
@command_window.y = 288
复制代码
下面是添加的:
@command_window.back_opacity = 0
@command_window.opacity = 0
复制代码
即可
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1