Difference between revisions of "Lua:Class:ProgressBar"

From Cheat Engine
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
ProgressBar Class: (Inheritance: WinControl->Control->Component->Object)
+
[[Category:Lua]]
 +
ProgressBar Class: (Inheritance: WinControl->Control->Component->Object)<br />
 
createProgressBar(owner): Creates a ProgressBar class object which belongs to the given owner. Owner can be any object inherited from WinControl
 
createProgressBar(owner): Creates a ProgressBar class object which belongs to the given owner. Owner can be any object inherited from WinControl
  
Properties:
+
===Properties:===
 
*Min: integer - The minimum positionvalue the progressbar can have (default 0)
 
*Min: integer - The minimum positionvalue the progressbar can have (default 0)
 
*Max: integer - The maximum positionvalue the progressbar can have (default 100)
 
*Max: integer - The maximum positionvalue the progressbar can have (default 100)
Line 8: Line 9:
 
*Step: integer- The stepsize to step by when stepIt() is called
 
*Step: integer- The stepsize to step by when stepIt() is called
  
Methods:
+
===Methods:===
 
*stepIt() - Increase position with "Step" size
 
*stepIt() - Increase position with "Step" size
 
*stepBy(integer) - increase the position by the given integer value
 
*stepBy(integer) - increase the position by the given integer value
Line 17: Line 18:
 
*getPosition() - returns the current position
 
*getPosition() - returns the current position
 
*setPosition(integer) - sets the current position
 
*setPosition(integer) - sets the current position
 +
 +
 +
{{LuaSeeAlso}}

Latest revision as of 00:21, 25 January 2018

ProgressBar Class: (Inheritance: WinControl->Control->Component->Object)
createProgressBar(owner): Creates a ProgressBar class object which belongs to the given owner. Owner can be any object inherited from WinControl

Properties:[edit]

  • Min: integer - The minimum positionvalue the progressbar can have (default 0)
  • Max: integer - The maximum positionvalue the progressbar can have (default 100)
  • Position: integer - The position of the progressbar
  • Step: integer- The stepsize to step by when stepIt() is called

Methods:[edit]

  • stepIt() - Increase position with "Step" size
  • stepBy(integer) - increase the position by the given integer value
  • getMax() - returns the Max property
  • setMax(integer) - sets the max property
  • getMin() - returns the min property
  • setMin(integer)- sets the min property
  • getPosition() - returns the current position
  • setPosition(integer) - sets the current position


See also[edit]