Class UiSprites

Namespace
SurvivorsMaker.Presentation
Assembly
SurvivorsMaker.Presentation.dll

The default UI look needs no art: anti-aliased rounded rectangles drawn once at runtime and used as 9-slice sprites (white, so images tint them). Assign theme sprites to replace them.

public static class UiSprites
Inheritance
UiSprites
Inherited Members

Fields

PixelsPerUnit

Generated sprites use 100 pixels per unit, the canvas default, so slices map 1:1 to UI units.

public const float PixelsPerUnit = 100

Field Value

float

Methods

Fill(float)

Solid rounded rectangle.

public static Sprite Fill(float radius)

Parameters

radius float

Returns

Sprite

Outline(float, float)

Rounded outline of thickness pixels, drawn just inside the edge.

public static Sprite Outline(float radius, float thickness)

Parameters

radius float
thickness float

Returns

Sprite