Class UserStyle
Base class for a user-themeable style for any widget in Socially Distant.
Inherited Members
Namespace: SociallyDistant.Core.UI.VisualStyles
Assembly: SociallyDistant.Framework.dll
Syntax
public abstract class UserStyle
Methods
GetDirtyState()
Returns the current "dirty" state of the style, and resets it to clean.
Declaration
protected bool GetDirtyState()
Returns
Type | Description |
---|---|
bool | True if the style or its owning theme was marked as dirty. |
Remarks
When implementing the IGetThemeProperties<TThemeProperties> interface, you should use this method to indicate to the game's UI system that those properties have changed.
public bool GetThemeProperties(ref MyThemeProperties themeProperties)
{
themeProperties.ContentPadding = 6;
return GetDirtyState();
}
SetDirty()
Marks this style as dirty. Call this function when modifying any properties associated with the style.
Declaration
protected void SetDirty()