FactionStandingTemplate
From Vendetta Lua
Revision as of 00:23, 15 January 2009 by Chefkoch (Talk | contribs) (New page: A container with a list of faction standings of a character. Created with FactionStandingTemplate == Example == <source lang="lua"> -- dialog with p...)
A container with a list of faction standings of a character. Created with FactionStandingTemplate
Contents
Example
-- 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
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