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
AnimationToPlayOnBegin
[Editor(false)]
public string AnimationToPlayOnBegin { get; set; }
Property Value
DefaultLayer
public StyleLayer DefaultLayer { get; }
Property Value
DefaultStyle
public Style DefaultStyle { get; set; }
Property Value
Font
[Editor(false)]
public Font Font { get; set; }
Property Value
FontColor
[Editor(false)]
public Color FontColor { get; set; }
Property Value
FontSize
[Editor(false)]
public int FontSize { get; set; }
Property Value
FontStyle
[Editor(false)]
public FontStyle FontStyle { get; set; }
Property Value
LayerCount
public int LayerCount { get; }
Property Value
Name
[Editor(false)]
public string Name { get; set; }
Property Value
TextAlphaFactor
[Editor(false)]
public float TextAlphaFactor { get; set; }
Property Value
TextBlur
[Editor(false)]
public float TextBlur { get; set; }
Property Value
TextColorFactor
[Editor(false)]
public float TextColorFactor { get; set; }
Property Value
TextGlowColor
[Editor(false)]
public Color TextGlowColor { get; set; }
Property Value
TextGlowRadius
[Editor(false)]
public float TextGlowRadius { get; set; }
Property Value
TextHueFactor
[Editor(false)]
public float TextHueFactor { get; set; }
Property Value
TextOutlineAmount
[Editor(false)]
public float TextOutlineAmount { get; set; }
Property Value
TextOutlineColor
[Editor(false)]
public Color TextOutlineColor { get; set; }
Property Value
TextSaturationFactor
[Editor(false)]
public float TextSaturationFactor { get; set; }
Property Value
TextShadowAngle
[Editor(false)]
public float TextShadowAngle { get; set; }
Property Value
TextShadowOffset
[Editor(false)]
public float TextShadowOffset { get; set; }
Property Value
TextValueFactor
[Editor(false)]
public float TextValueFactor { get; set; }
Property Value
Version
public long Version { get; }
Property Value
Methods
AddLayer(StyleLayer)
public void AddLayer(StyleLayer layer)
Parameters
layer
StyleLayer
CreateTextMaterial(TwoDimensionDrawContext)
public TextMaterial CreateTextMaterial(TwoDimensionDrawContext drawContext)
Parameters
drawContext
TwoDimensionDrawContext
Returns
FillFrom(Style)
public void FillFrom(Style style)
Parameters
style
Style
GetLayer(int)
public StyleLayer GetLayer(int index)
Parameters
index
int
Returns
GetLayer(string)
public StyleLayer GetLayer(string name)
Parameters
name
string
Returns
GetLayers()
public StyleLayer[] GetLayers()
Returns
GetValueAsColor(BrushAnimationPropertyType)
public Color GetValueAsColor(BrushAnimationProperty.BrushAnimationPropertyType propertyType)
Parameters
propertyType
BrushAnimationProperty.BrushAnimationPropertyType
Returns
GetValueAsFloat(BrushAnimationPropertyType)
public float GetValueAsFloat(BrushAnimationProperty.BrushAnimationPropertyType propertyType)
Parameters
propertyType
BrushAnimationProperty.BrushAnimationPropertyType
Returns
GetValueAsSprite(BrushAnimationPropertyType)
public Sprite GetValueAsSprite(BrushAnimationProperty.BrushAnimationPropertyType propertyType)
Parameters
propertyType
BrushAnimationProperty.BrushAnimationPropertyType
Returns
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).