Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_Map
- alias_method :cp_02132015_update, :update
- def update
- create_log_window if @log_window.nil? || @log_window.disposed?
- if @log_window && @log_window.visible
- Graphics.update
- Input.update
- @log_window.update
- else
- cp_02132015_update
- end
- end
- def create_log_window
- @log_window = Window_MessageLog.new
- @log_window.set_handler(:cancel, method(:deactivate_log_window))
- @log_window.z = 10000
- @log_window.hide
- end
- def update_call_msg_log
- return unless @log_window
- call_msglog if Input.trigger?(Saba::MessageLog::LOG_BUTTON)
- end
- def deactivate_log_window
- @log_window.hide.deactivate
- end
- def call_msglog
- Sound.play_ok
- @log_window.create_contents
- @log_window.refresh
- @log_window.show.activate
- end
- end
- class Window_MessageLog < Window_Selectable
- alias_method :cp_02132015_update, :update
- def update
- @back_sprite.visible = self.visible
- @back_sprite.z = self.z - 1
- cp_02132015_update
- end
- def dispose
- @back_sprite.dispose
- super
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement