Click or drag to resize

GuiSkinScope Class

A utility class to render windows with an alternative skin.
Inheritance Hierarchy
SystemObject
  KSPDev.GUIUtilsGuiSkinScope

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.2.6 (in KSPDev_Utils.2.6.dll) Version: 2.6 for KSP v1
Syntax
C#
public class GuiSkinScope : IDisposable
Request Example View Source

The GuiSkinScope type exposes the following members.

Constructors
  NameDescription
Public methodGuiSkinScope
Stores the old skin and sets a new one.
Top
Methods
  NameDescription
Public methodDispose
Restores the skin that was set before the scope started.
Top
Remarks
When the scope starts, it changes global setting GUI.skin. On the scope end, the original value is restored. It can be used from OnGUI method to replace skin for the entire window.
See Also