C# Класс KSPPluginFramework.SkinsLibrary

Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddSkin void
AddStyle void
AddStyle void
AddStyle void
AddStyle void
AddStyle void
AddStyle void
CopySkin UnityEngine.GUISkin
CopySkin UnityEngine.GUISkin
GenDefKSPTooltip UnityEngine.GUIStyle
GetStyle UnityEngine.GUIStyle
InitSkinList void
RemoveSkin System.Boolean
RemoveStyle void
RemoveStyle void
RemoveStyle void
SetCurrent void
SetCurrent void
SetCurrentTooltip void
SkinExists System.Boolean
SkinsLibrary System
StyleExists System.Boolean
StyleExists System.Boolean
StyleExists System.Boolean

Приватные методы

Метод Описание
AddSkin ( String SkinID, GUISkin NewSkin, System.Boolean SetAsCurrent = false ) : void

Add a new GUISkin to the list of Skins

AddStyle ( DefSkinType DefaultSkin, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

AddStyle ( DefSkinType DefaultSkin, String StyleID, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

AddStyle ( GUISkin &SkinToAction, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

AddStyle ( GUISkin &SkinToAction, String StyleID, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

AddStyle ( String SkinId, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

AddStyle ( String SkinId, String StyleID, GUIStyle NewStyle ) : void

Add a style to a skin, if the styleID already exists it will update the style

CopySkin ( DefSkinType DefaultSkin ) : GUISkin

Copies a skin so you can make a new custom skin from an already defined one

CopySkin ( String SkinID ) : GUISkin

Copies a skin so you can make a new custom skin from an already defined one

GenDefKSPTooltip ( ) : GUIStyle

private function that creates a tooltip style for KSP

GetStyle ( GUISkin SkinToAction, String StyleID ) : GUIStyle

Get a GUIStyle from a GUISkin custom list

InitSkinList ( ) : void

Sets up the default skins and associated bits - only needs to run once in OnGUI code

RemoveSkin ( String SkinID ) : System.Boolean

Remove the GUISkin with the specified ID from the Skins List

RemoveStyle ( DefSkinType DefaultSkin, String StyleID ) : void

Remove a style from a skins CustomStyles list

RemoveStyle ( GUISkin &SkinToAction, String StyleID ) : void

Remove a style from a skins CustomStyles list

RemoveStyle ( String SkinID, String StyleID ) : void

Remove a style from a skins CustomStyles list

SetCurrent ( DefSkinType DefaultSkin ) : void

Sets the current Skin to one of the Pre-Defined types

SetCurrent ( String SkinID ) : void

Sets the current skin to one of the custom skins

SetCurrentTooltip ( ) : void

Private routine that sets the tooltip based on the Current skin

SkinExists ( String SkinID ) : System.Boolean

Check whether a skin exists

SkinsLibrary ( ) : System
StyleExists ( DefSkinType DefaultSkin, String StyleID ) : System.Boolean

Check whether a custom style exists in one of the default skins customstyles list

StyleExists ( GUISkin SkinToAction, String StyleID ) : System.Boolean

Check whether a custom style exists in one of the custom skins customstyles list

StyleExists ( String SkinID, String StyleID ) : System.Boolean

Check whether a custom style exists in one of the custom skins customstyles list