Table of Contents

Namespace MLEM.Ui.Style

Classes

UiStyle

The style settings for a UiSystem. Each Element uses these style settings by default, however you can also change these settings per element using the elements' individual style settings. Additional styles for built-in or custom element types can easily be added using AddCustomStyle<T>(Action<T>, bool).

UntexturedStyle

The default, untextured UiStyle. Note that, as MLEM does not provide any texture or font assets, this default style is made up of single-color textures that were generated using GenerateTexture(SpriteBatch, Color, Color?).

Structs

StyleProp<T>

A struct used by Element to store style properties. This is a helper struct that allows default style settings from UiStyle to be overridden by custom user settings easily. Note that T implicitly converts to StyleProp{T} and vice versa.