Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
KSP.UI.Screens.UIGridArea Class Reference
Inheritance diagram for KSP.UI.Screens.UIGridArea:
KSP.UI.Screens.RDGridArea

Public Member Functions

void OnScroll (PointerEventData eventData)
 
void SnapToNode (RDNode node, Vector2 offset)
 

Public Attributes

RectTransform gridBackground
 
float gridHeight = 2303
 
float gridWidth = 3071
 
float height
 
int lineCornerSegments = 3
 
Material LineMaterial
 
Material LineMaterialGray
 
float lineThickness = 2f
 
float roundedCornerRadius = 15f
 
ScrollRect scrollRect
 
float width
 
Button zoom_down
 
TMPro.TextMeshProUGUI zoom_level
 
Button zoom_up
 
float zoomMax = 1f
 
float zoomMin = 0.6f
 
float zoomSpeed = 0.1f
 

Protected Member Functions

virtual void Awake ()
 
virtual void CalculateSnapBounds ()
 
virtual Vector2 CenterOfGrid ()
 
void InputZoomDown ()
 
void InputZoomUp ()
 
virtual Vector2 MousePointOnGrid ()
 Distance between the mouse pointer and the origin (bottom right) corner of the grid. The pixel distance on the texture if you will. The coordinate space is positive going left and up. More...
 
void SetZoomButtonState ()
 
void SetZoomLevelText (float level)
 
virtual void Snap ()
 
virtual void Start ()
 
virtual void Zoom (float amount)
 
virtual void ZoomTo (float level, bool center)
 

Protected Attributes

Rect snapBounds
 

Member Function Documentation

virtual void KSP.UI.Screens.UIGridArea.Awake ( )
inlineprotectedvirtual
virtual void KSP.UI.Screens.UIGridArea.CalculateSnapBounds ( )
inlineprotectedvirtual
virtual Vector2 KSP.UI.Screens.UIGridArea.CenterOfGrid ( )
inlineprotectedvirtual
void KSP.UI.Screens.UIGridArea.InputZoomDown ( )
inlineprotected
void KSP.UI.Screens.UIGridArea.InputZoomUp ( )
inlineprotected
virtual Vector2 KSP.UI.Screens.UIGridArea.MousePointOnGrid ( )
inlineprotectedvirtual

Distance between the mouse pointer and the origin (bottom right) corner of the grid. The pixel distance on the texture if you will. The coordinate space is positive going left and up.

Returns
void KSP.UI.Screens.UIGridArea.OnScroll ( PointerEventData  eventData)
inline
void KSP.UI.Screens.UIGridArea.SetZoomButtonState ( )
inlineprotected
void KSP.UI.Screens.UIGridArea.SetZoomLevelText ( float  level)
inlineprotected
virtual void KSP.UI.Screens.UIGridArea.Snap ( )
inlineprotectedvirtual
void KSP.UI.Screens.UIGridArea.SnapToNode ( RDNode  node,
Vector2  offset 
)
inline
virtual void KSP.UI.Screens.UIGridArea.Start ( )
inlineprotectedvirtual
virtual void KSP.UI.Screens.UIGridArea.Zoom ( float  amount)
inlineprotectedvirtual
virtual void KSP.UI.Screens.UIGridArea.ZoomTo ( float  level,
bool  center 
)
inlineprotectedvirtual

Member Data Documentation

RectTransform KSP.UI.Screens.UIGridArea.gridBackground
float KSP.UI.Screens.UIGridArea.gridHeight = 2303
float KSP.UI.Screens.UIGridArea.gridWidth = 3071
float KSP.UI.Screens.UIGridArea.height
int KSP.UI.Screens.UIGridArea.lineCornerSegments = 3
Material KSP.UI.Screens.UIGridArea.LineMaterial
Material KSP.UI.Screens.UIGridArea.LineMaterialGray
float KSP.UI.Screens.UIGridArea.lineThickness = 2f
float KSP.UI.Screens.UIGridArea.roundedCornerRadius = 15f
ScrollRect KSP.UI.Screens.UIGridArea.scrollRect
Rect KSP.UI.Screens.UIGridArea.snapBounds
protected
float KSP.UI.Screens.UIGridArea.width
Button KSP.UI.Screens.UIGridArea.zoom_down
TMPro.TextMeshProUGUI KSP.UI.Screens.UIGridArea.zoom_level
Button KSP.UI.Screens.UIGridArea.zoom_up
float KSP.UI.Screens.UIGridArea.zoomMax = 1f
float KSP.UI.Screens.UIGridArea.zoomMin = 0.6f
float KSP.UI.Screens.UIGridArea.zoomSpeed = 0.1f

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