Click or drag to resize

GuiScaledSkin Constructor

Creates a scaled skin instance.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.2.6 (in KSPDev_Utils.2.6.dll) Version: 2.6 for KSP v1
Syntax
C#
public GuiScaledSkin(
	Func<GUISkin> sourceSkinProvider,
	Action<GUISkin> onSkinUpdatedFn = null
)
Request Example View Source

Parameters

sourceSkinProvider
Type: SystemFuncGUISkin
A getter function that returns the base skin. This skin must not be affected by the game's GUI scale!
onSkinUpdatedFn (Optional)
Type: SystemActionGUISkin

A callback which will be called every time the scaledSkin is updated. The mods can react on it to update their internal cached styles. This callback is processed from the scaledSkin property getter.

The very first call will be made in scope of the constructor.

See Also