API:SetGuildStandardScene
From RoR Wiki
UI Lua API · Guild functions
Version: WAR 1.4.8
Sets which banner post the guild standard preview shows.
SetGuildStandardScene(postNumber)
Arguments
- postNumber
number– Banner post number, as chosen in the guild window's banner tab. Stored as an 8-bit value.
Returns
Nothing.
Details
- The call has an effect only while the guild standard preview exists. A
postNumberof 0 is ignored. - The new post is applied to the preview model at once. Nothing is sent to the server.
- To change the heraldry shown on the preview, use SetGuildHeraldryScene.
Errors
None besides the generic Invalid Parameters message when the argument is missing or not a number.
Example
From default/ea_guildwindow/source/guildwindowtabbanner.lua:
function GuildWindowTabBanner.SetRenderPostAndComboBox(postID)
ComboBoxSetSelectedMenuItem("GWRewardsBannerPostCombo", postID )
GuildWindowTabBanner.CurrentPostNumber = postID
SetGuildStandardScene( postID )
BroadcastEvent( SystemData.Events.UPDATE_GUILDSTANDARD )
BroadcastEvent( SystemData.Events.UPDATE_GUILDHERALDRY )
end
