Table of Contents

Class Style

Namespace
TaleWorlds.GauntletUI
Assembly
TaleWorlds.GauntletUI.dll
public class Style : IDataSource
Inheritance
Style
Implements
Inherited Members

Constructors

Style(IEnumerable<BrushLayer>)

public Style(IEnumerable<BrushLayer> layers)

Parameters

layers IEnumerable<BrushLayer>

Properties

AnimationMode

[Editor(false)]
public StyleAnimationMode AnimationMode { get; set; }

Property Value

StyleAnimationMode

AnimationToPlayOnBegin

[Editor(false)]
public string AnimationToPlayOnBegin { get; set; }

Property Value

string

DefaultLayer

public StyleLayer DefaultLayer { get; }

Property Value

StyleLayer

DefaultStyle

public Style DefaultStyle { get; set; }

Property Value

Style

Font

[Editor(false)]
public Font Font { get; set; }

Property Value

Font

FontColor

[Editor(false)]
public Color FontColor { get; set; }

Property Value

Color

FontSize

[Editor(false)]
public int FontSize { get; set; }

Property Value

int

FontStyle

[Editor(false)]
public FontStyle FontStyle { get; set; }

Property Value

FontStyle

LayerCount

public int LayerCount { get; }

Property Value

int

Name

[Editor(false)]
public string Name { get; set; }

Property Value

string

TextAlphaFactor

[Editor(false)]
public float TextAlphaFactor { get; set; }

Property Value

float

TextBlur

[Editor(false)]
public float TextBlur { get; set; }

Property Value

float

TextColorFactor

[Editor(false)]
public float TextColorFactor { get; set; }

Property Value

float

TextGlowColor

[Editor(false)]
public Color TextGlowColor { get; set; }

Property Value

Color

TextGlowRadius

[Editor(false)]
public float TextGlowRadius { get; set; }

Property Value

float

TextHueFactor

[Editor(false)]
public float TextHueFactor { get; set; }

Property Value

float

TextOutlineAmount

[Editor(false)]
public float TextOutlineAmount { get; set; }

Property Value

float

TextOutlineColor

[Editor(false)]
public Color TextOutlineColor { get; set; }

Property Value

Color

TextSaturationFactor

[Editor(false)]
public float TextSaturationFactor { get; set; }

Property Value

float

TextShadowAngle

[Editor(false)]
public float TextShadowAngle { get; set; }

Property Value

float

TextShadowOffset

[Editor(false)]
public float TextShadowOffset { get; set; }

Property Value

float

TextValueFactor

[Editor(false)]
public float TextValueFactor { get; set; }

Property Value

float

Version

public long Version { get; }

Property Value

long

Methods

AddLayer(StyleLayer)

public void AddLayer(StyleLayer layer)

Parameters

layer StyleLayer

CreateTextMaterial(TwoDimensionDrawContext)

public TextMaterial CreateTextMaterial(TwoDimensionDrawContext drawContext)

Parameters

drawContext TwoDimensionDrawContext

Returns

TextMaterial

FillFrom(Style)

public void FillFrom(Style style)

Parameters

style Style

GetLayer(int)

public StyleLayer GetLayer(int index)

Parameters

index int

Returns

StyleLayer

GetLayer(string)

public StyleLayer GetLayer(string name)

Parameters

name string

Returns

StyleLayer

GetLayers()

public StyleLayer[] GetLayers()

Returns

StyleLayer[]

GetValueAsColor(BrushAnimationPropertyType)

public Color GetValueAsColor(BrushAnimationProperty.BrushAnimationPropertyType propertyType)

Parameters

propertyType BrushAnimationProperty.BrushAnimationPropertyType

Returns

Color

GetValueAsFloat(BrushAnimationPropertyType)

public float GetValueAsFloat(BrushAnimationProperty.BrushAnimationPropertyType propertyType)

Parameters

propertyType BrushAnimationProperty.BrushAnimationPropertyType

Returns

float

GetValueAsSprite(BrushAnimationPropertyType)

public Sprite GetValueAsSprite(BrushAnimationProperty.BrushAnimationPropertyType propertyType)

Parameters

propertyType BrushAnimationProperty.BrushAnimationPropertyType

Returns

Sprite

RemoveLayer(string)

public void RemoveLayer(string layerName)

Parameters

layerName string

SetAsDefaultStyle()

public void SetAsDefaultStyle()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).