Difference between revisions of "Lua:Class:Component"

From Cheat Engine
Jump to navigation Jump to search
Line 1: Line 1:
'''Component Class''': (Inheritance: [[Object]])
+
Component '''class''': ('''Inheritance''': ''[[Object]]'')
  
Base class for components
+
Base class for components.
  
===Properties===
+
== Properties ==
  ComponentCount: Integer - Number of child components . Readonly
+
; ComponentCount : integer : ''Readonly''
  Component[int]: Component - Array containing the child components. Starts at 0. Readonly
+
: Number of child components.
  ComponentByName[string]: Component - Returns a component based on the name. Readonly
 
  Name: string - The name of the component
 
  Tag: integer - Free to use storage space. (Usefull for id's)
 
  Owner: Component - Returns the owner of this object. Nil if it has none
 
  
===Methods===
+
; Component[int] : Component : ''Readonly''
  getComponentCount() : Returns the number of components attached to his component
+
: Array containing the child components. Starts at 0.
  getComponent(index) : Returns the specific component
 
  findComponentByName(name) : Returns the component with this name
 
  getName() : Return the name
 
  setName(newname) : Changes the name
 
  getTag() : Sets an integer value. You can use this for ID's
 
  setTag(tagvalue) : Get the tag value
 
  getOwner() : Returns the owner of this component
 
  
----
+
; ComponentByName[string] : Component : ''Readonly''
 +
: Returns a component based on the name.
  
* [[Lua|Lua Functions and Classes]]
+
; Name : string
 +
: The name of the component.
 +
 
 +
; Tag : integer
 +
: Free to use storage space. (Usefull for id's)
 +
 
 +
; Owner : Component
 +
: Returns the owner of this object. Nil if it has none.
 +
 
 +
== Methods ==
 +
; getComponentCount() : integer
 +
: Returns the number of components attached to his component.
 +
 
 +
; getComponent(index) : Component
 +
: Returns the specific component.
 +
 
 +
; findComponentByName(name) : Component
 +
: Returns the component with this name.
 +
 
 +
; getName() : string
 +
: Return the name.
 +
 
 +
; setName(newname)
 +
: Changes the name.
 +
 
 +
; getTag() : integer
 +
: Get the tag value.
 +
 
 +
; setTag(tagvalue)
 +
: Sets an integer value. You can use this for ID's.
 +
 
 +
; getOwner() : Component
 +
: Returns the owner of this component
 +
 
 +
== See also ==
 +
* [[Lua]]
 +
* [[Help_File:Script engine|Script engine]]
 +
 
 +
=== Related Functions ===
 +
* [[createClass]]
 +
* [[inheritsFromObject]]
 +
* [[inheritsFromComponent]]
 +
* [[inheritsFromControl]]
 +
* [[inheritsFromWinControl]]
 +
 
 +
=== Related Classes ===
 +
* [[Object]]
 +
* [[Control]]
 +
* [[WinControl]]
 +
* [[Application]]
 +
* [[Form]]

Revision as of 22:47, 10 March 2017

Component class: (Inheritance: Object)

Base class for components.

Properties

ComponentCount : integer : Readonly
Number of child components.
Component[int] : Component : Readonly
Array containing the child components. Starts at 0.
ComponentByName[string] : Component : Readonly
Returns a component based on the name.
Name : string
The name of the component.
Tag : integer
Free to use storage space. (Usefull for id's)
Owner : Component
Returns the owner of this object. Nil if it has none.

Methods

getComponentCount() : integer
Returns the number of components attached to his component.
getComponent(index) : Component
Returns the specific component.
findComponentByName(name) : Component
Returns the component with this name.
getName() : string
Return the name.
setName(newname)
Changes the name.
getTag() : integer
Get the tag value.
setTag(tagvalue)
Sets an integer value. You can use this for ID's.
getOwner() : Component
Returns the owner of this component

See also

Related Functions

Related Classes