Class: MG::Slider

Inherits:
Widget show all
Defined in:
motion-game

Properties (collapse)

Attributes inherited from Widget

#enabled?, #highlighted?

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Constructors (collapse)

Methods inherited from Widget

#on_touch

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent

Constructor Details

- (Slider) initialize

Creates a new Slider widget.



772
# File 'motion-game', line 772

def initialize; end

Instance Attribute Details

- (Integer) progress

Returns the progress direction of the slider, as a percentage value from 1 to 100.

Returns:

  • (Integer)

    the progress direction of the slider, as a percentage value from 1 to 100.



779
780
781
# File 'motion-game', line 779

def progress
  @progress
end