Difference between revisions of "Lua:Class:Stringlist"

From Cheat Engine
Jump to navigation Jump to search
(filled out a proper class template for the StringList class)
 
Line 1: Line 1:
 
[[Category:Lua]]
 
[[Category:Lua]]
Stringlist Class: (Inheritance : Strings->Object)
+
StringList '''class''': ('''Inheritance''': ''[[Lua:Class:Strings|Strings]]''->''[[Lua:Class:Object|Object]]'')
createStringlist() : Creates a stringlist class object (for whatever reason, lua strings are probably easier to use)
 
  
===properties===
+
Basically, a wrapper around the [[Lua:Class:Strings|Strings]] class.
    Duplicates : DuplicatesType - Determines how duplicates should be handled
 
    Sorted : boolean - Determines if the list should be sorted
 
    CaseSensitive: boolean - Determines if the list is case sensitive or not.
 
===methods===
 
    getDuplicates() : returns the duplicates property
 
    setDuplicates(Duplicates) : Sets the duplicates property (dupIgnore, dupAccept, dupError)
 
    getSorted() : returns true if the list has the sorted property
 
    setSorted(boolean) : Sets the sorted property
 
    getCaseSensitive() : Returns true if the case sensitive property is set
 
    setCaseSensitive(boolean): Sets the case sensitive property
 
  
 +
== Related Globals ==
 +
; createStringList() : StringList
 +
: Creates a stringList object.
 +
 +
; DuplicatesType : number
 +
: These are declared globally and their ''type()'' is of ''number''.
 +
: They act like an enum object for the Duplicates property.
 +
: 0 : dupIgnore
 +
: 1 : dupAccept
 +
: 2 : dupError
 +
 +
== Properties ==
 +
; Duplicates : DuplicatesType
 +
: Determines how duplicates should be handled.
 +
: ''Note: Does not seem to work.''
 +
 +
; Sorted : boolean
 +
: Determines if the list should be sorted.
 +
 +
; CaseSensitive : boolean
 +
: Determines if case sensitivity is considered when sorting the list.
 +
: ''Note: This has no effect on the actual cases of the actual strings.
 +
 +
== Methods ==
 +
; getDuplicates() : DuplicatesType
 +
: Returns the Duplicates property.
 +
 +
; setDuplicates(DuplicatesType)
 +
: Sets the Duplicates property (dupIgnore, dupAccept, dupError).
 +
: ''Note: Again, this does not seem to have any actual effect.''
 +
 +
; getSorted() : boolean
 +
: Returns the Sorted property.
 +
 +
; setSorted(boolean)
 +
: Sets the Sorted property.
 +
 +
; getCaseSensitive() : boolean
 +
: Returns the CaseSensitive property.
 +
 +
; setCaseSensitive(boolean)
 +
: Sets the CaseSensitive property.
  
 
{{LuaSeeAlso}}
 
{{LuaSeeAlso}}
 +
 +
=== Related Classes ===
 +
* [[Lua:Class:Object|Object]]
 +
* [[Lua:Class:Strings|Strings]]

Latest revision as of 12:03, 22 March 2020

StringList class: (Inheritance: Strings->Object)

Basically, a wrapper around the Strings class.

Related Globals[edit]

createStringList() : StringList
Creates a stringList object.
DuplicatesType : number
These are declared globally and their type() is of number.
They act like an enum object for the Duplicates property.
0 : dupIgnore
1 : dupAccept
2 : dupError

Properties[edit]

Duplicates : DuplicatesType
Determines how duplicates should be handled.
Note: Does not seem to work.
Sorted : boolean
Determines if the list should be sorted.
CaseSensitive : boolean
Determines if case sensitivity is considered when sorting the list.
Note: This has no effect on the actual cases of the actual strings.

Methods[edit]

getDuplicates() : DuplicatesType
Returns the Duplicates property.
setDuplicates(DuplicatesType)
Sets the Duplicates property (dupIgnore, dupAccept, dupError).
Note: Again, this does not seem to have any actual effect.
getSorted() : boolean
Returns the Sorted property.
setSorted(boolean)
Sets the Sorted property.
getCaseSensitive() : boolean
Returns the CaseSensitive property.
setCaseSensitive(boolean)
Sets the CaseSensitive property.

See also[edit]

Related Classes[edit]