Addresslist class: (Inheritance: Panel->WinControl->Control->Component->Object)
The AddressList class represents the list of memory records (cheat entries) in Cheat Engine.
It provides access to all records, selection, appearance, and event handling for the address list.
Properties[edit]
Property
|
Type
|
Description
|
LoadedTableVersion
|
Integer
|
Returns the tableVersion of the last loaded table.
|
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[]
|
MemoryRecord
|
Array to access the individual memory records.
|
[index]
|
MemoryRecord
|
Default accessor for memory records.
|
CheckboxActiveSelectedColor
|
Color
|
Color for active and selected checkboxes.
|
CheckboxActiveColor
|
Color
|
Color for active checkboxes.
|
CheckboxSelectedColor
|
Color
|
Color for selected checkboxes.
|
CheckboxColor
|
Color
|
Color for checkboxes.
|
SelectedBackgroundColor
|
Color
|
Color for the selected row background.
|
SelectedSecondaryBackgroundColor
|
Color
|
Secondary color for selected row background.
|
ExpandSignColor
|
Color
|
Color for the expand/collapse sign.
|
IncreaseArrowColor
|
Color
|
Color for the increase arrow.
|
DecreaseArrowColor
|
Color
|
Color for the decrease arrow.
|
Methods[edit]
Method
|
Parameters
|
Returns
|
Description
|
getCount
|
None
|
Integer
|
Returns the number of memory records.
|
getMemoryRecord
|
Integer (index)
|
MemoryRecord
|
Returns the memory record at the given index.
|
getMemoryRecordByDescription
|
String (description)
|
MemoryRecord
|
Returns the memory record with the given description.
|
getMemoryRecordByID
|
Integer (ID)
|
MemoryRecord
|
Returns the memory record with the given ID.
|
createMemoryRecord
|
None
|
MemoryRecord
|
Creates a generic cheat table entry and adds it to the list.
|
getSelectedRecords
|
None
|
Table of MemoryRecord
|
Returns a table containing all the selected records.
|
doDescriptionChange
|
None
|
None
|
Shows the GUI window to change the description of the selected entry.
|
doAddressChange
|
None
|
None
|
Shows the GUI window to change the address of the selected entry.
|
doTypeChange
|
None
|
None
|
Shows the GUI window to change the type of the selected entries.
|
doValueChange
|
None
|
None
|
Shows the GUI window to change the value of the selected entries.
|
getSelectedRecord
|
None
|
MemoryRecord
|
Gets the main selected memory record.
|
setSelectedRecord
|
MemoryRecord
|
None
|
Sets the currently selected memory record (unselects all others).
|
disableAllWithoutExecute
|
None
|
None
|
Disables all memory records without executing their [Disable] section.
|
rebuildDescriptionCache
|
None
|
None
|
Rebuilds the description-to-record lookup table.
|
Events / Callbacks[edit]
Event
|
Parameters
|
Description
|
OnDescriptionChange
|
function(addresslist, memrec):boolean
|
Called when the user initiates a description column change on a record. Return true if you handle it, false for normal behaviour.
|
OnAddressChange
|
function(addresslist, memrec):boolean
|
Called when the user initiates an address column change on a record. Return true if you handle it, false for normal behaviour.
|
OnTypeChange
|
function(addresslist, memrec):boolean
|
Called when the user initiates a type column change on a record. Return true if you handle it, false for normal behaviour.
|
OnValueChange
|
function(addresslist, memrec):boolean
|
Called when the user initiates a value column change on a record. Return true if you handle it, false for normal behaviour.
|
OnAutoAssemblerEdit
|
function(addresslist, memrec)
|
Called when the user initiates a memory record AA script edit. This function will be responsible for changing the memory record.
|
Other Functions[edit]
- MouseHighlightedRecord() — Returns the memory record that the mouse points at, or nil if nothing.
Examples[edit]
-- Print all memory record descriptions
for i = 0, AddressList.Count - 1 do
print(AddressList[i].Description)
end
-- Create a new memory record
local newrec = AddressList:createMemoryRecord()
newrec.Description = "My New Entry"
newrec.Address = "00400000"
-- Get all selected records
local selected = AddressList:getSelectedRecords()
for i, rec in ipairs(selected) do
print("Selected:", rec.Description)
end
-- Change the selected record
AddressList:setSelectedRecord(AddressList[0])
See also[edit]
Related Functions[edit]
Related Classes[edit]