本帖最后由 杂兵天下 于 2012-2-25 16:59 编辑
恩,不知什么事情把我拉过来了,先占位。
角色战斗图的话,@后知后觉
菜单一字排开?干脆试试把XP默认脚本移植吧。。。���
#encoding:utf-8 class Scene_Battle < Scene_Base def create_info_viewport @info_viewport = Viewport.new @info_viewport.rect.y = 0#Graphics.height - @status_window.height @info_viewport.rect.height = Graphics.height @info_viewport.z = 100 @info_viewport.ox = 64 @status_window.viewport = @info_viewport end def create_actor_command_window @actor_command_window = Window_ActorCommand.new @actor_command_window.viewport = @info_viewport @actor_command_window.set_handler(:attack, method(:command_attack)) @actor_command_window.set_handler(:skill, method(:command_skill)) @actor_command_window.set_handler(:guard, method(:command_guard)) @actor_command_window.set_handler(:item, method(:command_item)) @actor_command_window.set_handler(:cancel, method(:prior_command)) @actor_command_window.x = Graphics.width @actor_command_window.y = 0 end end class Window_BattleStatus < Window_Selectable def initialize super(0, Graphics.height - 120, window_width, window_height) refresh self.openness = 0 end end class Window_PartyCommand < Window_Command def initialize super(0, Graphics.height - 120) self.openness = 0 deactivate end end
#encoding:utf-8
class Scene_Battle < Scene_Base
def create_info_viewport
@info_viewport = Viewport.new
@info_viewport.rect.y = 0#Graphics.height - @status_window.height
@info_viewport.rect.height = Graphics.height
@info_viewport.z = 100
@info_viewport.ox = 64
@status_window.viewport = @info_viewport
end
def create_actor_command_window
@actor_command_window = Window_ActorCommand.new
@actor_command_window.viewport = @info_viewport
@actor_command_window.set_handler(:attack, method(:command_attack))
@actor_command_window.set_handler(:skill, method(:command_skill))
@actor_command_window.set_handler(:guard, method(:command_guard))
@actor_command_window.set_handler(:item, method(:command_item))
@actor_command_window.set_handler(:cancel, method(:prior_command))
@actor_command_window.x = Graphics.width
@actor_command_window.y = 0
end
end
class Window_BattleStatus < Window_Selectable
def initialize
super(0, Graphics.height - 120, window_width, window_height)
refresh
self.openness = 0
end
end
class Window_PartyCommand < Window_Command
def initialize
super(0, Graphics.height - 120)
self.openness = 0
deactivate
end
end
这只是半成品。希望LZ能从中了解些什么 |