Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
ManeuverToolCBContainer Class Reference

A container that is used to render a CB in the Maneuver Tool visualizer window. More...

Inheritance diagram for ManeuverToolCBContainer:

Public Member Functions

void Hide ()
 Hide the Planet. More...
 
void Setup (GameObject parent, string bodyName, string displayName, GameObject planet, float scale, float container_height, float xOffset)
 Setup the CB container object More...
 
void Show (Vector2 position, float scale)
 Show the Planet. Will set the localPosition and localScale as well. More...
 

Public Attributes

UIRadioButton background
 The background button More...
 
string displayName
 The display name More...
 
PointerEnterExitHandler hoverController
 The mouse hover controller More...
 
LayoutElement layoutElement
 The layout element More...
 
new string name
 The name More...
 
GameObject planet
 The 3D planet object More...
 
RawImage planetRawImage
 The raw image the planet is drawn to More...
 
bool selected
 IF the CB is selected/hovered over or not. More...
 
Camera thumbnailCamera
 
LayerMask thumbnailCameraMask
 
RenderTexture thumbnailRenderTexture
 
int thumbnailSize = 128
 

Detailed Description

A container that is used to render a CB in the Maneuver Tool visualizer window.

Member Function Documentation

void ManeuverToolCBContainer.Hide ( )
inline

Hide the Planet.

void ManeuverToolCBContainer.Setup ( GameObject  parent,
string  bodyName,
string  displayName,
GameObject  planet,
float  scale,
float  container_height,
float  xOffset 
)
inline

Setup the CB container object

Parameters
parentparent object
bodyNameName of the body
displayNameLocalized name of the body
planetThe planet object
scaleThe scale to use
container_heightThe height of the container
xOffsetThe offset from X
void ManeuverToolCBContainer.Show ( Vector2  position,
float  scale 
)
inline

Show the Planet. Will set the localPosition and localScale as well.

Parameters
positionThe localPosition to set.
scaleThe localScale to set.

Member Data Documentation

UIRadioButton ManeuverToolCBContainer.background

The background button

string ManeuverToolCBContainer.displayName

The display name

PointerEnterExitHandler ManeuverToolCBContainer.hoverController

The mouse hover controller

LayoutElement ManeuverToolCBContainer.layoutElement

The layout element

new string ManeuverToolCBContainer.name

The name

GameObject ManeuverToolCBContainer.planet

The 3D planet object

RawImage ManeuverToolCBContainer.planetRawImage

The raw image the planet is drawn to

bool ManeuverToolCBContainer.selected

IF the CB is selected/hovered over or not.

Camera ManeuverToolCBContainer.thumbnailCamera
LayerMask ManeuverToolCBContainer.thumbnailCameraMask
RenderTexture ManeuverToolCBContainer.thumbnailRenderTexture
int ManeuverToolCBContainer.thumbnailSize = 128

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