AccomplishmentTemplate
A box displayed in the target info dialog with accomplishment icons. It is created with API_Index#AccomplishmentTemplate. API_Index#AccomplishmentTemplate2 creates the accomplishment list in the character info PDA tab, which behaves similar.
Functions
UpdateAccomplishments
Definition:
UpdateAccomplishments(userdata handle, int charid) -> nil
Description:
Update accomplishment box
Arguments:
handle accomplishment box to fill
charid charid of character for which to get accomplishments
ClearAccomplishments
Definition:
ClearAccomplishments(userdata handle) -> nil
Description:
Clear accomplishment box
Arguments:
handle accomplishment box to clear
Example
<source lang="lua"> -- displays players accomplishments in a dialog local function cb(desc)
print(desc)
end
local box = AccomplishmentTemplate(cb) local dialog = iup.dialog{box, TOPMOST="YES"} dialog:show() box:ClearAccomplishments()) box:UpdateAccomplishments(GetCharacterID()) </source>