API:TomeGetOldWorldArmoryTOC
From RoR Wiki
UI Lua API · Tome functions
Version: WAR 1.4.8
Returns the list of armor sets in the Tome of Knowledge Old World Armory.
sets = TomeGetOldWorldArmoryTOC()
Arguments
None.
Returns
- sets
table– Array of armor set tables, indexed from 1.
Each armor set table:
| Key | Type | Meaning |
|---|---|---|
id |
number |
Armor set id, as used by TomeGetOldWorldArmoryArmorSet. |
name |
wstring |
Name of the set; empty if the name table is not loaded. |
isComplete |
boolean |
Whether the set is complete. The stock UI shows it as a check box. |
Details
- The client filters its armory data while building the list, so not every armor set in the data is necessarily listed.
Errors
None.
Example
From default/ea_tomeofknowledge/source/tomewindow_oldworldarmory.lua:
tocData = TomeGetOldWorldArmoryTOC()
...
for index, setData in ipairs( tocData )
do
...
ButtonSetPressedFlag( setEntryWindowName..index.."CompletedBtn", setData.isComplete )
ButtonSetText( setEntryWindowName..index.."Text", setData.name )
WindowSetId( setEntryWindowName..index, setData.id )
end
