查看: 2534|回复: 4

[已经解决] 请问怎么才可以把菜单改成这样?

[复制链接]
梦石
0
星屑
50
在线时间
4 小时
注册时间
2014-8-2
回帖
12
发表于 2014-8-4 07:26:37 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
本帖最后由 YS4RWQEYTEF 于 2014-8-4 09:00 编辑

我用的是这个脚本,请问怎么把读档改成存档?
[pre lang="ruby" line="1"]#encoding:utf-8
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
#  菜单画面中,显示队伍成员状态的窗口
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对象
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, window_width, window_height)
    self.y = Graphics.height - self.height
    @pending_index = -1
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 获取窗口的高度
  #--------------------------------------------------------------------------
  def window_height
    112
  end
  #--------------------------------------------------------------------------
  # ● 获取项目数
  #--------------------------------------------------------------------------
  def item_max
    return 1 #$game_party.members.size
  end
  #--------------------------------------------------------------------------
  # ● 绘制简单的状态
  #--------------------------------------------------------------------------
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 1 + 10)
    draw_actor_icons(actor, x, y + line_height * 2)
    draw_actor_class(actor, x + 120, y)
  end
  #--------------------------------------------------------------------------
  # ● 绘制等级
  #--------------------------------------------------------------------------
  def draw_actor_level(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 64, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 64, y, 24, line_height, actor.level, 2)
  end
end
#==============================================================================
# ■ Window_MenuCommand
#------------------------------------------------------------------------------
#  菜单画面中显示指令的窗口
#==============================================================================
VOCAB_LOAD = "读档"

class Window_MenuCommand < Window_Command
  #--------------------------------------------------------------------------
  # ● 生成指令列表
  #--------------------------------------------------------------------------
  def make_command_list
    add_main_commands
    add_original_commands
    add_load_command
    add_game_end_command
  end
  #--------------------------------------------------------------------------
  # ● 向指令列表添加主要的指令
  #--------------------------------------------------------------------------
  def add_main_commands
    add_command(Vocab::item,   :item,   main_commands_enabled)
  end
  #--------------------------------------------------------------------------
  # ● 添加读档指令
  #--------------------------------------------------------------------------
  def add_load_command
    add_command(VOCAB_LOAD, :load, continue_enabled)
  end
  #--------------------------------------------------------------------------
  # ● 获取“继续游戏”选项是否有效
  #--------------------------------------------------------------------------
  def continue_enabled
    DataManager.save_file_exists?
  end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
#  菜单画面
#==============================================================================
class Scene_Menu < Scene_MenuBase
  #--------------------------------------------------------------------------
  # ● 开始处理
  #--------------------------------------------------------------------------
  def start
    super
    create_command_window
    create_status_window
  end
  #--------------------------------------------------------------------------
  # ● 生成指令窗口
  #--------------------------------------------------------------------------
  def create_command_window
    @command_window = Window_MenuCommand.new
    @command_window.x = 0 #(Graphics.width - @command_window.width) / 2
    @command_window.y = (Graphics.height - @command_window.height) #/ 2
    @command_window.set_handler(:item,      method(:command_item))
    @command_window.set_handler(:load,      method(:command_load))
    @command_window.set_handler(:game_end,  method(:command_game_end))
    @command_window.set_handler(:cancel,    method(:return_scene))
  end  
  #--------------------------------------------------------------------------
  # ● 指令“读档”
  #--------------------------------------------------------------------------
  def command_load
    SceneManager.call(Scene_Load)
  end
end
[/pre]


改成了这样但是是灰色的

[pre lang="ruby" line="1"]#encoding:utf-8
#==============================================================================
# ■ Window_MenuStatus
#------------------------------------------------------------------------------
#  菜单画面中,显示队伍成员状态的窗口
#==============================================================================

class Window_MenuStatus < Window_Selectable
  #--------------------------------------------------------------------------
  # ● 初始化对象
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, window_width, window_height)
    self.y = Graphics.height - self.height
    @pending_index = -1
    refresh
  end
  #--------------------------------------------------------------------------
  # ● 获取窗口的高度
  #--------------------------------------------------------------------------
  def window_height
    112
  end
  #--------------------------------------------------------------------------
  # ● 获取项目数
  #--------------------------------------------------------------------------
  def item_max
    return 1 #$game_party.members.size
  end
  #--------------------------------------------------------------------------
  # ● 绘制简单的状态
  #--------------------------------------------------------------------------
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 1 + 10)
    draw_actor_icons(actor, x, y + line_height * 2)
    draw_actor_class(actor, x + 120, y)
  end
  #--------------------------------------------------------------------------
  # ● 绘制等级
  #--------------------------------------------------------------------------
  def draw_actor_level(actor, x, y)
    change_color(system_color)
    draw_text(x, y, 64, line_height, Vocab::level_a)
    change_color(normal_color)
    draw_text(x + 64, y, 24, line_height, actor.level, 2)
  end
end
#==============================================================================
# ■ Window_MenuCommand
#------------------------------------------------------------------------------
#  菜单画面中显示指令的窗口
#==============================================================================
VOCAB_SAVE = "存档"

class Window_MenuCommand < Window_Command
  #--------------------------------------------------------------------------
  # ● 生成指令列表
  #--------------------------------------------------------------------------
  def make_command_list
    add_main_commands
    add_original_commands
    add_save_command
    add_game_end_command
  end
  #--------------------------------------------------------------------------
  # ● 向指令列表添加主要的指令
  #--------------------------------------------------------------------------
  def add_main_commands
    add_command(Vocab::item,   :item,   main_commands_enabled)
  end
  #--------------------------------------------------------------------------
  # ● 添加存档指令
  #--------------------------------------------------------------------------
  def add_save_command
    add_command(VOCAB_SAVE, :save, continue_enabled)
  end
  #--------------------------------------------------------------------------
  # ● 获取“继续游戏”选项是否有效
  #--------------------------------------------------------------------------
  def continue_enabled
    DataManager.save_file_exists?
  end
end
#==============================================================================
# ■ Scene_Menu
#------------------------------------------------------------------------------
#  菜单画面
#==============================================================================
class Scene_Menu < Scene_MenuBase
  #--------------------------------------------------------------------------
  # ● 开始处理
  #--------------------------------------------------------------------------
  def start
    super
    create_command_window
    create_status_window
  end
  #--------------------------------------------------------------------------
  # ● 生成指令窗口
  #--------------------------------------------------------------------------
  def create_command_window
    @command_window = Window_MenuCommand.new
    @command_window.x = 0 #(Graphics.width - @command_window.width) / 2
    @command_window.y = (Graphics.height - @command_window.height) #/ 2
    @command_window.set_handler(:item,      method(:command_item))
    @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 command_save
    SceneManager.call(Scene_Save)
  end
end[/pre]
捕获.JPG
梦石
0
星屑
48
在线时间
312 小时
注册时间
2014-2-28
回帖
861
发表于 2014-8-4 07:54:32 | 显示全部楼层
这么简单用图片

点评

哦?当时你发的时候还没有脚本呢。 脚本党的世界我这就退出  发表于 2014-8-4 10:01
请看一下1L  发表于 2014-8-4 08:34

↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
由于我不服H·H·Y大触事件满于是他让我的事件也调满于是我照着做了结果那货居然把事件调低了……结果我现在原稿找不回来了只好保持着事件满的状态在大家面前闹笑话擦擦擦擦擦擦擦擦擦擦擦擦擦擦擦擦
回复

使用道具 举报

…あたしは天

梦石
0
星屑
2308
在线时间
4033 小时
注册时间
2010-10-4
回帖
10548

开拓者贵宾

发表于 2014-8-4 08:19:13 | 显示全部楼层
修改Graphics/System文件夹下的Window.png

点评

好吧= =那就结贴吧- -  发表于 2014-8-4 17:15
懒得改- - 自己学一下或者找VIP版主或者悬赏啥的?  发表于 2014-8-4 17:14
请问什么时候有时间能帮忙改一下,晚上或者明天什么的?后天也行(┳◇┳)  发表于 2014-8-4 17:05
懒得改- -现在没什么空  发表于 2014-8-4 16:58
请问要怎么修改,我在生成指令窗口加上了金币,但是完全不对,我还是不要瞎改脚本了- -  发表于 2014-8-4 16:53

评分

参与人数 1星屑 +132 收起 理由
VIPArcher + 132 认可答案~。~

查看全部评分

回复

使用道具 举报

梦石
0
星屑
124
在线时间
900 小时
注册时间
2012-11-13
回帖
845
发表于 2014-8-4 08:29:35 | 显示全部楼层
你的意思是不是修改菜单选项?如果是,
https://rpg.blue/home.php?mod=sp ... o=blog&id=12246

点评

请问要怎么修改,我把我能找到的Load都改成了Save,但是没有用  发表于 2014-8-4 08:45
把读档指令改为存档指令即可  发表于 2014-8-4 08:39
在我发帖4分钟后改主楼……  发表于 2014-8-4 08:37
请看一下1L  发表于 2014-8-4 08:36
废弃
回复

使用道具 举报

梦石
0
星屑
50
在线时间
74 小时
注册时间
2014-6-15
回帖
23
发表于 2014-8-4 09:14:05 | 显示全部楼层
本帖最后由 南城萌夏 于 2014-8-4 09:18 编辑

修改一下这里
#--------------------------------------------------------------------------
  # ● 添加存档指令
  #--------------------------------------------------------------------------
  def add_save_command
    add_command(VOCAB_SAVE, :save, save_enabled)
  end

评分

参与人数 1星屑 +100 收起 理由
VIPArcher + 100 我很赞同

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部