Class: MG::LoadingBar

Inherits:
Widget show all
Defined in:
doc/API_reference.rb

Overview

A loading bar widget.

Instance Attribute Summary collapse

Attributes inherited from Node

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

Instance Method Summary collapse

Methods inherited from Widget

#enabled=, #enabled?, #highlighted=, #highlighted?, #on_touch, #touch_enabled=, #touch_enabled?

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?

Instance Attribute Details

#progressInteger

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.



1618
1619
1620
# File 'doc/API_reference.rb', line 1618

def progress
  @progress
end

Instance Method Details

#load_texture(value) ⇒ self

Load texture for loading bar.

Parameters:

  • value (String)

    a texture name.

Returns:

  • (self)

    the receiver.



1623
# File 'doc/API_reference.rb', line 1623

def load_texture(value); end