Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | Properties | List of all members
CommNet.CommNetUI Class Reference
Inheritance diagram for CommNet.CommNetUI:

Public Types

enum  DisplayMode {
  DisplayMode.None, DisplayMode.FirstHop, DisplayMode.Path, DisplayMode.VesselLinks,
  DisplayMode.Network
}
 

Public Member Functions

virtual void ClampAndSetMode (ref DisplayMode curMode, DisplayMode newMode)
 
virtual void Hide ()
 
virtual void NextMode ()
 
virtual void PreviousMode ()
 
virtual void ResetMode ()
 
virtual void SetDisplayVessel (Vessel v=null)
 
virtual void Show ()
 
virtual void SwitchMode (int step)
 
virtual void UpdateLine ()
 

Public Attributes

Color colorHigh = new Color(0f, 1f, 0f, 1f)
 
float colorLerpPower = 1.5f
 
Color colorLow = new Color(0.5f, 0f, 0f, 1f)
 
Color colorWhole = XKCDColors.BabyBlue
 
float lineWidth2D = 4f
 
float lineWidth3D = 1f
 
bool smoothColor = false
 
bool swapHighLow = false
 

Static Public Attributes

static DisplayMode Mode = DisplayMode.Path
 The mode that is currently used for display More...
 
static DisplayMode ModeFlightMap = DisplayMode.Path
 The last mode used in the inflight map More...
 
static DisplayMode ModeTrackingStation = DisplayMode.Network
 The last mode used in the tracking station More...
 

Protected Member Functions

virtual void Awake ()
 This is a modified singleton. We always destroy our old instance instead of destorying ourselves if it's nonnull. More...
 
virtual void CreateLine (ref VectorLine l, List< Vector3 > points)
 
virtual void OnDestroy ()
 
virtual void OnMapFocusChange (MapObject obj)
 
virtual void Start ()
 
virtual void UpdateDisplay ()
 

Protected Attributes

bool draw3dLines
 
bool isShown
 
VectorLine line
 
Material lineMaterial
 
Texture lineTexture
 
MapObject obj
 
List< Vector3 > points
 
bool refreshLines
 
bool useTSBehavior
 
Vessel vessel
 

Static Protected Attributes

static Material telemetryMaterial
 
static Texture telemetryTexture
 

Properties

static CommNetUI Instance [get, set]
 
virtual VectorLine Line [get]
 
static float LowColorBrightnessFactor [get, set]
 
static Material TelemetryMaterial [get]
 
static Texture TelemetryTexture [get]
 

Member Enumeration Documentation

Enumerator
None 
FirstHop 
Path 
VesselLinks 
Network 

Member Function Documentation

virtual void CommNet.CommNetUI.Awake ( )
inlineprotectedvirtual

This is a modified singleton. We always destroy our old instance instead of destorying ourselves if it's nonnull.

virtual void CommNet.CommNetUI.ClampAndSetMode ( ref DisplayMode  curMode,
DisplayMode  newMode 
)
inlinevirtual
virtual void CommNet.CommNetUI.CreateLine ( ref VectorLine  l,
List< Vector3 >  points 
)
inlineprotectedvirtual
virtual void CommNet.CommNetUI.Hide ( )
inlinevirtual
virtual void CommNet.CommNetUI.NextMode ( )
inlinevirtual
virtual void CommNet.CommNetUI.OnDestroy ( )
inlineprotectedvirtual

< remove anyway, not just in TS, or in Flight if (isShown)

virtual void CommNet.CommNetUI.OnMapFocusChange ( MapObject  obj)
inlineprotectedvirtual
virtual void CommNet.CommNetUI.PreviousMode ( )
inlinevirtual
virtual void CommNet.CommNetUI.ResetMode ( )
inlinevirtual
virtual void CommNet.CommNetUI.SetDisplayVessel ( Vessel  v = null)
inlinevirtual
virtual void CommNet.CommNetUI.Show ( )
inlinevirtual
virtual void CommNet.CommNetUI.Start ( )
inlineprotectedvirtual
virtual void CommNet.CommNetUI.SwitchMode ( int  step)
inlinevirtual
virtual void CommNet.CommNetUI.UpdateDisplay ( )
inlineprotectedvirtual
virtual void CommNet.CommNetUI.UpdateLine ( )
inlinevirtual

Member Data Documentation

Color CommNet.CommNetUI.colorHigh = new Color(0f, 1f, 0f, 1f)
float CommNet.CommNetUI.colorLerpPower = 1.5f
Color CommNet.CommNetUI.colorLow = new Color(0.5f, 0f, 0f, 1f)
Color CommNet.CommNetUI.colorWhole = XKCDColors.BabyBlue
bool CommNet.CommNetUI.draw3dLines
protected
bool CommNet.CommNetUI.isShown
protected
VectorLine CommNet.CommNetUI.line
protected
Material CommNet.CommNetUI.lineMaterial
protected
Texture CommNet.CommNetUI.lineTexture
protected
float CommNet.CommNetUI.lineWidth2D = 4f
float CommNet.CommNetUI.lineWidth3D = 1f
DisplayMode CommNet.CommNetUI.Mode = DisplayMode.Path
static

The mode that is currently used for display

DisplayMode CommNet.CommNetUI.ModeFlightMap = DisplayMode.Path
static

The last mode used in the inflight map

DisplayMode CommNet.CommNetUI.ModeTrackingStation = DisplayMode.Network
static

The last mode used in the tracking station

MapObject CommNet.CommNetUI.obj
protected
List<Vector3> CommNet.CommNetUI.points
protected
bool CommNet.CommNetUI.refreshLines
protected
bool CommNet.CommNetUI.smoothColor = false
bool CommNet.CommNetUI.swapHighLow = false
Material CommNet.CommNetUI.telemetryMaterial
staticprotected
Texture CommNet.CommNetUI.telemetryTexture
staticprotected
bool CommNet.CommNetUI.useTSBehavior
protected
Vessel CommNet.CommNetUI.vessel
protected

Property Documentation

CommNetUI CommNet.CommNetUI.Instance
staticgetset
virtual VectorLine CommNet.CommNetUI.Line
get
float CommNet.CommNetUI.LowColorBrightnessFactor
staticgetset
Material CommNet.CommNetUI.TelemetryMaterial
staticget
Texture CommNet.CommNetUI.TelemetryTexture
staticget

The documentation for this class was generated from the following file: