目前是按“Q”关闭,按“W”打开该提示面板,但每次一打开游戏测试就自动弹出面板,必须再按一下“Q”键才能关闭,求各位懂脚本的大佬帮忙调整一下,把它变成默认关闭的。萌新在此感激不尽。
脚本:
class Window_MapStatus < Window_Base
def initialize
super(0, 0, Graphics.width/2, fitting_height(9))
refresh
end
def refresh
contents.clear
$game_party.members.each_with_index do |actor,i|
draw_actor_simple_status(actor,x,fitting_height(2)*i)
end
end
end
class Scene_Map < Scene_Base
alias hawkeye_start start
def start
hawkeye_start
@status_window = Window_MapStatus.new
end
alias hawkeye_update update
def update
hawkeye_update
@status_window.close if Input.press?(:L)
@status_window.open if Input.press?(:R)
end
end