C# Class PersistentTrails.GUIResources

Mostrar archivo Open project: GrJo/KSPPersistentTrails Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

Method Description
MakeConstantTexture ( Color fill ) : Texture2D

Method Details

ClampToScreenEdge() public static method

public static ClampToScreenEdge ( Rect pos ) : Rect
pos UnityEngine.Rect
return UnityEngine.Rect

EnsureCompletelyVisible() public static method

public static EnsureCompletelyVisible ( Rect pos ) : Rect
pos UnityEngine.Rect
return UnityEngine.Rect

EnsureVisible() public static method

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

GetValue() public static method

public static GetValue ( ConfigNode config, string name, bool currentValue ) : bool
config System.ConfigNode
name string
currentValue bool
return bool

GetValue() public static method

public static GetValue ( ConfigNode config, string name, double currentValue ) : double
config System.ConfigNode
name string
currentValue double
return double

GetValue() public static method

public static GetValue ( ConfigNode config, string name, float currentValue ) : float
config System.ConfigNode
name string
currentValue float
return float

LoadAssets() public static method

public static LoadAssets ( ) : void
return void

LoadImage() public static method

public static LoadImage ( string filename ) : Texture2D
filename string
return UnityEngine.Texture2D

SetStyles() public static method

public static SetStyles ( ) : void
return void

SetupGUI() public static method

public static SetupGUI ( ) : void
return void

ShowTextField() public static method

public static ShowTextField ( double currentValue, int maxLength, GUIStyle style ) : double
currentValue double
maxLength int
style GUIStyle
return double

Property Details

ButtonStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonStyle
return UnityEngine.GUIStyle

ButtonToggledRedStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonToggledRedStyle
return UnityEngine.GUIStyle

ButtonToggledStyle public_oe static_oe property

public static GUIStyle,UnityEngine ButtonToggledStyle
return UnityEngine.GUIStyle

IconNoRecordingPath public_oe static_oe property

public static string IconNoRecordingPath
return string

IconRecordingPath public_oe static_oe property

public static string IconRecordingPath
return string

IconStyle public_oe static_oe property

public static GUIStyle,UnityEngine IconStyle
return UnityEngine.GUIStyle

LabelStyle public_oe static_oe property

public static GUIStyle,UnityEngine LabelStyle
return UnityEngine.GUIStyle

ScrollareaStyle public_oe static_oe property

public static GUIStyle,UnityEngine ScrollareaStyle
return UnityEngine.GUIStyle

VERSION public_oe static_oe property

public static string VERSION
return string

WindowStyle public_oe static_oe property

public static GUIStyle WindowStyle
return GUIStyle

mainButtonPosition public_oe static_oe property

public static Rect mainButtonPosition
return Rect

styleTooltipStyle public_oe static_oe property

public static GUIStyle styleTooltipStyle
return GUIStyle

txtTooltipBackground public_oe static_oe property

public static Texture2D txtTooltipBackground
return Texture2D