Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_Base
- alias circular_post_start post_start
- def post_start
- refresh_all_circular_info
- circular_post_start
- end
- def refresh_all_circular_info
- instance_variables.each do |varname|
- ivar = instance_variable_get(varname)
- ox = Graphics.width / 2
- oy = Graphics.height / 2
- ivar.center_coordinate(ox,oy) if ivar.is_a?(Window)
- end
- end
- alias test_circular update
- def update
- test_circular
- if Input.trigger?(:ALT)
- instance_variables.each do |varname|
- ivar = instance_variable_get(varname)
- ivar.circle_move(360) if ivar.is_a?(Window)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment