赞 | 0 |
VIP | 46 |
好人卡 | 26 |
积分 | 7 |
经验 | 76056 |
最后登录 | 2024-11-23 |
在线时间 | 2658 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 653
- 在线时间
- 2658 小时
- 注册时间
- 2010-6-28
- 帖子
- 1361
|
等,我了了,你用的是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
=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
|
评分
-
查看全部评分
|