M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Core.Banner Class Reference

Public Member Functions

 Banner ()
 
 Banner (Banner banner)
 
 Banner (string bannerKey)
 
 Banner (string bannerKey, uint color1, uint color2)
 
void SetBannerVisual (IBannerVisual visual)
 
void ChangePrimaryColor (UInt32 mainColor)
 
void ChangeBackgroundColor (UInt32 primaryColor, UInt32 secondaryColor)
 
void ChangeIconColors (UInt32 color)
 
void RotateBackgroundToRight ()
 
void RotateBackgroundToLeft ()
 
void SetBackgroundMeshId (int meshId)
 
string Serialize ()
 
void Deserialize (string message)
 
void ClearAllIcons ()
 
void AddIconData (BannerData iconData)
 
void AddIconData (BannerData iconData, int index)
 
void RemoveIconDataAtIndex (int index)
 
uint GetPrimaryColor ()
 
uint GetSecondaryColor ()
 
uint GetFirstIconColor ()
 
int GetVersionNo ()
 

Static Public Member Functions

static Banner CreateRandomClanBanner (int seed=-1)
 
static Banner CreateRandomBanner ()
 
static Banner CreateOneColoredEmptyBanner (int colorIndex)
 
static Banner CreateOneColoredBannerWithOneIcon (uint backgroundColor, uint iconColor, int iconMeshId)
 
static string GetBannerCodeFromBannerDataList (MBList< BannerData > bannerDataList)
 
static List< BannerDataGetBannerDataFromBannerCode (string bannerCode)
 

Static Public Attributes

const int MaxSize = 8000
 
const int BannerFullSize = 1528
 
const int BannerEditableAreaSize = 512
 
const int MaxIconCount = 32
 
const int BackgroundDataIndex = 0
 
const int BannerIconDataIndex = 1
 

Properties

MBReadOnlyList< BannerDataBannerDataList [get]
 
IBannerVisual BannerVisual [get]
 

Constructor & Destructor Documentation

◆ Banner() [1/4]

TaleWorlds.Core.Banner.Banner ( )

◆ Banner() [2/4]

TaleWorlds.Core.Banner.Banner ( Banner  banner)

◆ Banner() [3/4]

TaleWorlds.Core.Banner.Banner ( string  bannerKey)

◆ Banner() [4/4]

TaleWorlds.Core.Banner.Banner ( string  bannerKey,
uint  color1,
uint  color2 
)

Member Function Documentation

◆ SetBannerVisual()

void TaleWorlds.Core.Banner.SetBannerVisual ( IBannerVisual  visual)

◆ ChangePrimaryColor()

void TaleWorlds.Core.Banner.ChangePrimaryColor ( UInt32  mainColor)

◆ ChangeBackgroundColor()

void TaleWorlds.Core.Banner.ChangeBackgroundColor ( UInt32  primaryColor,
UInt32  secondaryColor 
)

◆ ChangeIconColors()

void TaleWorlds.Core.Banner.ChangeIconColors ( UInt32  color)

◆ RotateBackgroundToRight()

void TaleWorlds.Core.Banner.RotateBackgroundToRight ( )

◆ RotateBackgroundToLeft()

void TaleWorlds.Core.Banner.RotateBackgroundToLeft ( )

◆ SetBackgroundMeshId()

void TaleWorlds.Core.Banner.SetBackgroundMeshId ( int  meshId)

◆ Serialize()

string TaleWorlds.Core.Banner.Serialize ( )

◆ Deserialize()

void TaleWorlds.Core.Banner.Deserialize ( string  message)

◆ ClearAllIcons()

void TaleWorlds.Core.Banner.ClearAllIcons ( )

◆ AddIconData() [1/2]

void TaleWorlds.Core.Banner.AddIconData ( BannerData  iconData)

◆ AddIconData() [2/2]

void TaleWorlds.Core.Banner.AddIconData ( BannerData  iconData,
int  index 
)

◆ RemoveIconDataAtIndex()

void TaleWorlds.Core.Banner.RemoveIconDataAtIndex ( int  index)

◆ CreateRandomClanBanner()

static Banner TaleWorlds.Core.Banner.CreateRandomClanBanner ( int  seed = -1)
static

◆ CreateRandomBanner()

static Banner TaleWorlds.Core.Banner.CreateRandomBanner ( )
static

◆ CreateOneColoredEmptyBanner()

static Banner TaleWorlds.Core.Banner.CreateOneColoredEmptyBanner ( int  colorIndex)
static

◆ CreateOneColoredBannerWithOneIcon()

static Banner TaleWorlds.Core.Banner.CreateOneColoredBannerWithOneIcon ( uint  backgroundColor,
uint  iconColor,
int  iconMeshId 
)
static

◆ GetPrimaryColor()

uint TaleWorlds.Core.Banner.GetPrimaryColor ( )

◆ GetSecondaryColor()

uint TaleWorlds.Core.Banner.GetSecondaryColor ( )

◆ GetFirstIconColor()

uint TaleWorlds.Core.Banner.GetFirstIconColor ( )

◆ GetVersionNo()

int TaleWorlds.Core.Banner.GetVersionNo ( )

◆ GetBannerCodeFromBannerDataList()

static string TaleWorlds.Core.Banner.GetBannerCodeFromBannerDataList ( MBList< BannerData bannerDataList)
static

◆ GetBannerDataFromBannerCode()

static List< BannerData > TaleWorlds.Core.Banner.GetBannerDataFromBannerCode ( string  bannerCode)
static

Member Data Documentation

◆ MaxSize

const int TaleWorlds.Core.Banner.MaxSize = 8000
static

◆ BannerFullSize

const int TaleWorlds.Core.Banner.BannerFullSize = 1528
static

◆ BannerEditableAreaSize

const int TaleWorlds.Core.Banner.BannerEditableAreaSize = 512
static

◆ MaxIconCount

const int TaleWorlds.Core.Banner.MaxIconCount = 32
static

◆ BackgroundDataIndex

const int TaleWorlds.Core.Banner.BackgroundDataIndex = 0
static

◆ BannerIconDataIndex

const int TaleWorlds.Core.Banner.BannerIconDataIndex = 1
static

Property Documentation

◆ BannerDataList

MBReadOnlyList<BannerData> TaleWorlds.Core.Banner.BannerDataList
get

◆ BannerVisual

IBannerVisual TaleWorlds.Core.Banner.BannerVisual
get