Difference between revisions of "Lua:Class:Addresslist"
Jump to navigation
Jump to search
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | [[Category: | + | [[Category:Lua]] |
− | Addresslist '''class''': ('''Inheritance''': ''[[Panel]]''->''[[WinControl]]''->''[[Control]]''->''[[Component]]''->''[[Object]]'') | + | Addresslist '''class''': ('''Inheritance''': ''[[Lua:Class:Panel|Panel]]''->''[[Lua:Class:WinControl|WinControl]]''->''[[Lua:Class:Control|Control]]''->''[[Lua:Class:Component|Component]]''->''[[Lua:Class:Object|Object]]'') |
Class for manipulating the Cheat Engine form's address list. | Class for manipulating the Cheat Engine form's address list. | ||
Line 11: | Line 11: | ||
: The number of records that are selected. | : The number of records that are selected. | ||
− | ; SelectedRecord : [[MemoryRecord]] | + | ; SelectedRecord : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: The main selected record. | : The main selected record. | ||
− | ; MemoryRecord[''index''] : [[MemoryRecord]] | + | ; MemoryRecord[''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: Array to access the individual memory records. | : Array to access the individual memory records. | ||
− | ; [''index''] : [[MemoryRecord]] | + | ; [''index''] : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: Default accessor. | : Default accessor. | ||
Line 24: | Line 24: | ||
: Returns the number of memory records in the address list. | : Returns the number of memory records in the address list. | ||
− | ; getMemoryRecord(''index'') : [[MemoryRecord]] | + | ; getMemoryRecord(''index'') : [[Lua:Class:MemoryRecord|MemoryRecord]] |
− | : returns a [[MemoryRecord]] object based on it's index. | + | : returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's index. |
− | ; getMemoryRecordByDescription(''description'') : [[MemoryRecord]] | + | ; getMemoryRecordByDescription(''description'') : [[Lua:Class:MemoryRecord|MemoryRecord]] |
− | : returns a [[MemoryRecord]] object based on it's description. | + | : returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's description. |
− | ; getMemoryRecordByID(''ID'') : [[MemoryRecord]] | + | ; getMemoryRecordByID(''ID'') : [[Lua:Class:MemoryRecord|MemoryRecord]] |
− | : returns a [[MemoryRecord]] object based on it's ID. | + | : returns a [[Lua:Class:MemoryRecord|MemoryRecord]] object based on it's ID. |
− | ; createMemoryRecord() : [[MemoryRecord]] | + | ; createMemoryRecord() : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: creates an generic cheat table entry and add it to the list | : creates an generic cheat table entry and add it to the list | ||
− | ; getSelectedRecords() : [[MemoryRecord]] | + | ; getSelectedRecords() : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: Returns a table containing all the selected records | : Returns a table containing all the selected records | ||
Line 51: | Line 51: | ||
: Will show the GUI window to change the value of the selected entries | : Will show the GUI window to change the value of the selected entries | ||
− | ; getSelectedRecord() : [[MemoryRecord]] | + | ; getSelectedRecord() : [[Lua:Class:MemoryRecord|MemoryRecord]] |
: Gets the main selected memory record. | : Gets the main selected memory record. | ||
Line 64: | Line 64: | ||
local mrMana = addressList.createMemoryRecord() | local mrMana = addressList.createMemoryRecord() | ||
− | + | {{LuaSeeAlso}} | |
− | |||
− | |||
=== Related Functions === | === Related Functions === | ||
− | * [[getMainForm]] | + | * [[Lua:getMainForm|getMainForm]] |
− | * [[getAddressList]] | + | * [[Lua:getAddressList|getAddressList]] |
=== Related Classes === | === Related Classes === | ||
− | * [[MemoryRecord]] | + | * [[Lua:Class:MemoryRecord|MemoryRecord]] |
Latest revision as of 19:08, 18 March 2019
Addresslist class: (Inheritance: Panel->WinControl->Control->Component->Object)
Class for manipulating the Cheat Engine form's address list.
Properties[edit]
- Count : integer
- The number of records in the table.
- SelCount : integer
- The number of records that are selected.
- SelectedRecord : MemoryRecord
- The main selected record.
- MemoryRecord[index] : MemoryRecord
- Array to access the individual memory records.
- [index] : MemoryRecord
- Default accessor.
Methods[edit]
- getCount() : integer
- Returns the number of memory records in the address list.
- getMemoryRecord(index) : MemoryRecord
- returns a MemoryRecord object based on it's index.
- getMemoryRecordByDescription(description) : MemoryRecord
- returns a MemoryRecord object based on it's description.
- getMemoryRecordByID(ID) : MemoryRecord
- returns a MemoryRecord object based on it's ID.
- createMemoryRecord() : MemoryRecord
- creates an generic cheat table entry and add it to the list
- getSelectedRecords() : MemoryRecord
- Returns a table containing all the selected records
- doDescriptionChange()
- Will show the GUI window to change the description of the selected entry
- doAddressChange()
- Will show the GUI window to change the address of the selected entry
- doTypeChange()
- Will show the GUI window to change the type of the selected entries
- doValueChange()
- Will show the GUI window to change the value of the selected entries
- getSelectedRecord() : MemoryRecord
- Gets the main selected memory record.
- setSelectedRecord(memrec)
- Sets the currently selected memory record. This will unselect all other entries.
Examples[edit]
local addressList = getAddressList() if addressList.Count >= 1 then local mrHealth = addressList.getMemoryRecordByDescription('Health') end local mrMana = addressList.createMemoryRecord()