FactionStandingTemplate
From Vendetta Lua
Jump to navigationJump to search
A container with a list of faction standings of a character. Created with FactionStandingTemplate
Example
<source lang="lua"> -- dialog with players faction standings
-- print faction name on click -- this function is called on button press and release local function faction_cb(facid)
print("clicked on" ..tostring(FactionName[facid]))
end
local f = FactionStandingTemplate(faction_cb, iup.stationsubframe, iup.stationsubframebgfiller) local d = iup.dialog{f, topmost="yes"} d:show() f:Setup(GetCharacterID()) -- show players faction info </source>
Functions
HideAll
Definition:
HideAll(userdata self) -> nil
Description:
Clear the list
Arguments:
self this box
Setup
Definition:
Setup(userdata self, in charid) -> nil
Description:
Set character whose faction standings to show
Arguments:
self this box
charid charid