| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 6 |
| 经验 | |
| 最后登录 | 2023-9-17 |
| 在线时间 | 2656 小时 |
- 梦石
- 0
- 星屑
- 618
- 在线时间
- 2656 小时
- 注册时间
- 2010-6-28
- 回帖
- 1227

|
发表于 2013-2-11 01:01:19
|
显示全部楼层
等,我了了,你用的是ace是吧?原先我写的那份是vx用的,现在做了个ACE版的,不过因为水平问题目前还没弄出原来VX版的滑动效果,见谅见谅。
- =begin
- #############################################################################
- 单人简易滑动菜单(ACE) v1.0 by 我的米呀
-
- 说明:把本脚本插在Main上方即可。
- #############################################################################
- =end
- class Window_Base < Window
- def draw_actor_simple_status(actor, x, y)
- draw_actor_name(actor, x, y)
- draw_actor_level(actor, x, y + line_height * 1)
- draw_actor_icons(actor, x, y + line_height * 2)
- draw_actor_class(actor, x + 120, y)
- draw_actor_hp(actor, x + 80, y + line_height * 1)
- draw_actor_mp(actor, x + 80, y + line_height * 2)
- end
- end
- class Window_MenuCommand < Window_Command
- def window_width
- return 90
- end
- end
- class Window_MenuStatus < Window_Selectable
- def initialize(x, y)
- super(x, y, 350, 120)
- @pending_index = -1
- refresh
- end
- def draw_item(index)
- actor = $game_party.members[index]
- enabled = $game_party.battle_members.include?(actor)
- rect = item_rect(index)
- draw_item_background(index)
- draw_actor_face(actor, rect.x + 1, rect.y + 1, enabled)
- draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)
- end
- end
- class Window_MenuCommand < Window_Command
- def add_main_commands
- add_command(Vocab::item, :item, main_commands_enabled)
- add_command("读取", :continue, main_commands_enabled)
- end
- def add_save_command
- end
- def add_game_end_command
- end
- def add_formation_command
- end
- end
- 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.set_handler(:item, method(:command_item))
- @command_window.set_handler(:continue, method(:command_continue))
- @command_window.set_handler(:cancel, method(:return_scene))
- @command_window.x = 50
- @command_window.y = 300
- end
- def create_status_window
- @status_window = Window_MenuStatus.new(@command_window.width, 0)
- @status_window.x = 150
- @status_window.y = 280
- end
- def command_continue
- SceneManager.call(Scene_Load)
- end
- end
复制代码 |
评分
-
查看全部评分
|