C# Class PersistentTrails.GUIResources

Afficher le fichier Open project: GrJo/KSPPersistentTrails Class Usage Examples

Méthodes publiques

Свойство Type Description
ButtonStyle UnityEngine.GUIStyle
ButtonToggledRedStyle UnityEngine.GUIStyle
ButtonToggledStyle UnityEngine.GUIStyle
IconNoRecordingPath string
IconRecordingPath string
IconStyle UnityEngine.GUIStyle
LabelStyle UnityEngine.GUIStyle
ScrollareaStyle UnityEngine.GUIStyle
VERSION string
WindowStyle GUIStyle
mainButtonPosition Rect
styleTooltipStyle GUIStyle
txtTooltipBackground Texture2D

Méthodes publiques

Méthode Description
ClampToScreenEdge ( Rect pos ) : Rect
EnsureCompletelyVisible ( Rect pos ) : Rect
EnsureVisible ( Rect pos, float min = 16.0f ) : Rect
GetValue ( ConfigNode config, string name, bool currentValue ) : bool
GetValue ( ConfigNode config, string name, double currentValue ) : double
GetValue ( ConfigNode config, string name, float currentValue ) : float
LoadAssets ( ) : void
LoadImage ( string filename ) : Texture2D
SetStyles ( ) : void
SetupGUI ( ) : void
ShowTextField ( double currentValue, int maxLength, GUIStyle style ) : double

Private Methods

Méthode Description
MakeConstantTexture ( Color fill ) : Texture2D

Method Details

ClampToScreenEdge() public static méthode

public static ClampToScreenEdge ( Rect pos ) : Rect
pos UnityEngine.Rect
Résultat UnityEngine.Rect

EnsureCompletelyVisible() public static méthode

public static EnsureCompletelyVisible ( Rect pos ) : Rect
pos UnityEngine.Rect
Résultat UnityEngine.Rect

EnsureVisible() public static méthode

public static EnsureVisible ( Rect pos, float min = 16.0f ) : Rect
pos UnityEngine.Rect
min float
Résultat UnityEngine.Rect

GetValue() public static méthode

public static GetValue ( ConfigNode config, string name, bool currentValue ) : bool
config System.ConfigNode
name string
currentValue bool
Résultat bool

GetValue() public static méthode

public static GetValue ( ConfigNode config, string name, double currentValue ) : double
config System.ConfigNode
name string
currentValue double
Résultat double

GetValue() public static méthode

public static GetValue ( ConfigNode config, string name, float currentValue ) : float
config System.ConfigNode
name string
currentValue float
Résultat float

LoadAssets() public static méthode

public static LoadAssets ( ) : void
Résultat void

LoadImage() public static méthode

public static LoadImage ( string filename ) : Texture2D
filename string
Résultat UnityEngine.Texture2D

SetStyles() public static méthode

public static SetStyles ( ) : void
Résultat void

SetupGUI() public static méthode

public static SetupGUI ( ) : void
Résultat void

ShowTextField() public static méthode

public static ShowTextField ( double currentValue, int maxLength, GUIStyle style ) : double
currentValue double
maxLength int
style GUIStyle
Résultat double

Property Details

ButtonStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonStyle
Résultat UnityEngine.GUIStyle

ButtonToggledRedStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonToggledRedStyle
Résultat UnityEngine.GUIStyle

ButtonToggledStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonToggledStyle
Résultat UnityEngine.GUIStyle

IconNoRecordingPath public_oe static_oe property

public static string IconNoRecordingPath
Résultat string

IconRecordingPath public_oe static_oe property

public static string IconRecordingPath
Résultat string

IconStyle public_oe static_oe property

public static GUIStyle,UnityEngine IconStyle
Résultat UnityEngine.GUIStyle

LabelStyle public_oe static_oe property

public static GUIStyle,UnityEngine LabelStyle
Résultat UnityEngine.GUIStyle

ScrollareaStyle public_oe static_oe property

public static GUIStyle,UnityEngine ScrollareaStyle
Résultat UnityEngine.GUIStyle

VERSION public_oe static_oe property

public static string VERSION
Résultat string

WindowStyle public_oe static_oe property

public static GUIStyle WindowStyle
Résultat GUIStyle

mainButtonPosition public_oe static_oe property

public static Rect mainButtonPosition
Résultat Rect

styleTooltipStyle public_oe static_oe property

public static GUIStyle styleTooltipStyle
Résultat GUIStyle

txtTooltipBackground public_oe static_oe property

public static Texture2D txtTooltipBackground
Résultat Texture2D