Class: UI::Casino::NumberDisplay
- Inherits:
-
SpriteStack
- Object
- SpriteStack
- UI::Casino::NumberDisplay
- Defined in:
- docs/4_Systems_900_Games.rb
Overview
Object showing images of credit / payout element in casino UI
Constant Summary collapse
- FILES =
List of files that shows the number
['casino/n0', 'casino/n1', 'casino/n2', 'casino/n3', 'casino/n4', 'casino/n5', 'casino/n6', 'casino/n7', 'casino/n8', 'casino/n9']
- DELTA =
Delta of number between each frame
3
Constants inherited from SpriteStack
Instance Attribute Summary collapse
-
#number ⇒ Integer
Number that is currently displayed.
-
#target ⇒ Integer
Target that the UI element should animatedly aim.
Attributes inherited from SpriteStack
#animated, #data, #moving, #stack, #viewport, #x, #y
Instance Method Summary collapse
-
#done? ⇒ Boolean
Tell if the animation is done.
-
#initialize(viewport, x, y, max_numbers) ⇒ NumberDisplay
constructor
Create a new NumberDipslay.
-
#update
Update the animation.
Methods inherited from SpriteStack
#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update_animation, #update_position, #visible, #visible=, #with_cache, #with_font, #with_surface, #z, #z=
Constructor Details
#initialize(viewport, x, y, max_numbers) ⇒ NumberDisplay
Create a new NumberDipslay
21 22 |
# File 'docs/4_Systems_900_Games.rb', line 21 def initialize(, x, y, max_numbers) end |
Instance Attribute Details
#number ⇒ Integer
Number that is currently displayed
12 13 14 |
# File 'docs/4_Systems_900_Games.rb', line 12 def number @number end |
#target ⇒ Integer
Target that the UI element should animatedly aim
15 16 17 |
# File 'docs/4_Systems_900_Games.rb', line 15 def target @target end |
Instance Method Details
#done? ⇒ Boolean
Tell if the animation is done
32 33 |
# File 'docs/4_Systems_900_Games.rb', line 32 def done? end |
#update
Update the animation
28 29 |
# File 'docs/4_Systems_900_Games.rb', line 28 def update end |