Class: Metro::TransitionScene
- Defined in:
- lib/metro/transitions/transition_scene.rb
Direct Known Subclasses
Constant Summary
Constants included from Units
Instance Attribute Summary collapse
-
#next_scene ⇒ Object
Returns the value of attribute next_scene.
-
#options ⇒ Object
Returns the value of attribute options.
-
#previous_scene ⇒ Object
Returns the value of attribute previous_scene.
Attributes inherited from Scene
Instance Method Summary collapse
Methods inherited from Scene
#_prepare_transition, #actor, #add_actors_to_scene, #after, after, #after_initialize, after_intervals, #base_draw, #base_update, #draw, #drawers, #enqueue, hierarchy, inherited, #initialize, metro_name, #notification, #register_actor, #register_actors!, #register_after_intervals!, #register_animations!, #register_events!, #register_events_for_target, #scene_name, scene_name, scenes, #show, #state, #to_hash, #to_s, #transition_to, #update, #updaters
Methods included from SceneView
included, #save_view, #view, #view_content, #view_name
Methods included from HasAnimations
Methods included from HasEvents
Methods included from Draws
Constructor Details
This class inherits a constructor from Metro::Scene
Instance Attribute Details
#next_scene ⇒ Object
Returns the value of attribute next_scene.
4 5 6 |
# File 'lib/metro/transitions/transition_scene.rb', line 4 def next_scene @next_scene end |
#options ⇒ Object
Returns the value of attribute options.
4 5 6 |
# File 'lib/metro/transitions/transition_scene.rb', line 4 def @options end |
#previous_scene ⇒ Object
Returns the value of attribute previous_scene.
4 5 6 |
# File 'lib/metro/transitions/transition_scene.rb', line 4 def previous_scene @previous_scene end |
Instance Method Details
#prepare_transition_from(old_scene) ⇒ Object
6 7 8 9 |
# File 'lib/metro/transitions/transition_scene.rb', line 6 def prepare_transition_from(old_scene) next_scene.prepare_transition_from(old_scene) @previous_scene = old_scene end |
#prepare_transition_to(new_scene) ⇒ Object
11 12 13 |
# File 'lib/metro/transitions/transition_scene.rb', line 11 def prepare_transition_to(new_scene) previous_scene.prepare_transition_to(new_scene) end |