本帖最后由 howhow1314 于 2016-2-22 10:40 编辑
如果只是用於你提到的例子的話…
class Window_Message alias bopomofo_update_show_fast update_show_fast def update_show_fast bopomofo_update_show_fast if !$game_switches[1] end end
class Window_Message
alias bopomofo_update_show_fast update_show_fast
def update_show_fast
bopomofo_update_show_fast if !$game_switches[1]
end
end
如果不是
class << Input alias bopomofo_trigger? trigger? def trigger?(sym) return false if sym == :C && $game_switches[1] bopomofo_trigger?(sym) end end
class << Input
alias bopomofo_trigger? trigger?
def trigger?(sym)
return false if sym == :C && $game_switches[1]
bopomofo_trigger?(sym)
end
end
|