|
void | Create (EditorPartList partList, AvailablePart part, float iconSize, float iconOverScale, float iconOverSpin) |
| Creates a part icon with the specified parameters More...
|
|
void | Create (EditorPartList partList, AvailablePart part, float iconSize, float iconOverScale, float iconOverSpin, Callback< EditorPartIcon > placePartCallback, bool btnPlacePartActive) |
| Creates a part icon with the specified parameters More...
|
|
void | Create (EditorPartList partList, AvailablePart part, StoredPart sPart, float iconSize, float iconOverScale, float iconOverSpin, Callback< EditorPartIcon > placePartCallback, bool btnPlacePartActive, bool skipVariants, PartVariant variant, bool useImageThumbnail, bool inInventory) |
| Creates a part icon with the specified parameters More...
|
|
void | DisableAddButton () |
|
void | DisableDeleteButton () |
|
void | EnableAddButton () |
|
void | EnableDeleteButton () |
|
PartVariant | GetCurrentVariant () |
| Return the current variant that is applied to the availablePart. More...
|
|
void | Highlight () |
|
void | MouseInput_PointerEnter (PointerEventData data) |
|
void | MouseInput_PointerExit (PointerEventData data) |
|
void | MouseInput_SpawnPart () |
|
void | SetEmptySlot () |
| Sets this as an empty slot when there is no part icon to show. More...
|
|
void | SetGrey (string why) |
|
void | ToggleVariant () |
| Will toggle More...
|
|
void | Unhighlight () |
|
void | UnsetGrey () |
|
bool | VariantsAvailable () |
| Will return true if the availablePart has Variants More...
|
|
|
static void | CleanUpMaterials (GameObject gameObject) |
|
static Material[] | CreateMaterialArray (GameObject gameObject) |
|
static Material[] | CreateMaterialArray (GameObject gameObject, bool includeInactiveRenderers) |
|
static void | SetPartColor (GameObject partIcon, Color color, AvailablePart part=null) |
| Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
|
|
static void | SetPartColor (GameObject partIcon, Color color, bool isFlag, AvailablePart part=null) |
| Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
|
|
static void | SetPartColor (GameObject partIcon, Color color, bool processUnlit, bool isFlag, AvailablePart part=null) |
| Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1. More...
|
|
static void KSP.UI.Screens.EditorPartIcon.CleanUpMaterials |
( |
GameObject |
gameObject | ) |
|
|
inlinestatic |
void KSP.UI.Screens.EditorPartIcon.Create |
( |
EditorPartList |
partList, |
|
|
AvailablePart |
part, |
|
|
float |
iconSize, |
|
|
float |
iconOverScale, |
|
|
float |
iconOverSpin |
|
) |
| |
|
inline |
Creates a part icon with the specified parameters
///
- Parameters
-
partList | The EditorPartList the icon belongs to. |
part | The AvailablePart this icon represents. |
iconSize | The size of the icon. |
iconOverScale | The multiplier for the over state. |
iconOverSpin | The part spin animation speed. |
Creates a part icon with the specified parameters
///
- Parameters
-
partList | The EditorPartList the icon belongs to. |
part | The AvailablePart this icon represents. |
iconSize | The size of the icon. |
iconOverScale | The multiplier for the over state. |
iconOverSpin | The part spin animation speed. |
placePartCallback | Callback for part place event. |
btnPlacePartActive | Whether this icon will have a deploy part icon visible. |
void KSP.UI.Screens.EditorPartIcon.Create |
( |
EditorPartList |
partList, |
|
|
AvailablePart |
part, |
|
|
StoredPart |
sPart, |
|
|
float |
iconSize, |
|
|
float |
iconOverScale, |
|
|
float |
iconOverSpin, |
|
|
Callback< EditorPartIcon > |
placePartCallback, |
|
|
bool |
btnPlacePartActive, |
|
|
bool |
skipVariants, |
|
|
PartVariant |
variant, |
|
|
bool |
useImageThumbnail, |
|
|
bool |
inInventory |
|
) |
| |
|
inline |
Creates a part icon with the specified parameters
///
- Parameters
-
partList | The EditorPartList the icon belongs to. |
part | The AvailablePart this icon represents. |
iconSize | The size of the icon. |
iconOverScale | The multiplier for the over state. |
iconOverSpin | The part spin animation speed. |
placePartCallback | Callback for part place event. |
btnPlacePartActive | Whether this icon will have a deploy part icon visible. |
skipVariants | Whether this icon will bypass a OnVariantChanged event. |
useImageThumbnail | Set true to use image thumbnail instead of 3d object for icon. |
inInventory | Set true if this icon is inside a ModuleInventoryPart |
static Material [] KSP.UI.Screens.EditorPartIcon.CreateMaterialArray |
( |
GameObject |
gameObject | ) |
|
|
inlinestatic |
static Material [] KSP.UI.Screens.EditorPartIcon.CreateMaterialArray |
( |
GameObject |
gameObject, |
|
|
bool |
includeInactiveRenderers |
|
) |
| |
|
inlinestatic |
void KSP.UI.Screens.EditorPartIcon.DisableAddButton |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.DisableDeleteButton |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.EnableAddButton |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.EnableDeleteButton |
( |
| ) |
|
|
inline |
PartVariant KSP.UI.Screens.EditorPartIcon.GetCurrentVariant |
( |
| ) |
|
|
inline |
Return the current variant that is applied to the availablePart.
- Returns
void KSP.UI.Screens.EditorPartIcon.Highlight |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.MouseInput_PointerEnter |
( |
PointerEventData |
data | ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.MouseInput_PointerExit |
( |
PointerEventData |
data | ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.MouseInput_SpawnPart |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.SetEmptySlot |
( |
| ) |
|
|
inline |
Sets this as an empty slot when there is no part icon to show.
void KSP.UI.Screens.EditorPartIcon.SetGrey |
( |
string |
why | ) |
|
|
inline |
static void KSP.UI.Screens.EditorPartIcon.SetPartColor |
( |
GameObject |
partIcon, |
|
|
Color |
color, |
|
|
AvailablePart |
part = null |
|
) |
| |
|
inlinestatic |
Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1.
- Parameters
-
partIcon | The game object. |
color | The color to set. |
part | the available part (database) version that will be used to reset to default colors. |
static void KSP.UI.Screens.EditorPartIcon.SetPartColor |
( |
GameObject |
partIcon, |
|
|
Color |
color, |
|
|
bool |
isFlag, |
|
|
AvailablePart |
part = null |
|
) |
| |
|
inlinestatic |
Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1.
- Parameters
-
partIcon | The game object. |
color | >The color to set. |
isFlag | Set true if the game object is a Flag Part. |
part | the available part (database) version that will be used to reset to default colors. |
static void KSP.UI.Screens.EditorPartIcon.SetPartColor |
( |
GameObject |
partIcon, |
|
|
Color |
color, |
|
|
bool |
processUnlit, |
|
|
bool |
isFlag, |
|
|
AvailablePart |
part = null |
|
) |
| |
|
inlinestatic |
Set material colors on object. Finds all materials on the object and sets it to the color passed in. Or will reset back to default colors from the passed in part if color is set to 1,1,1,1.
- Parameters
-
partIcon | The game object. |
color | The color to set. |
processUnlit | Set true to process unlit shaders. |
isFlag | Set true if the game object is a Flag Part. |
part | the available part (database) version that will be used to reset to default colors. |
void KSP.UI.Screens.EditorPartIcon.Start |
( |
| ) |
|
|
inlineprotected |
void KSP.UI.Screens.EditorPartIcon.ToggleVariant |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.Unhighlight |
( |
| ) |
|
|
inline |
void KSP.UI.Screens.EditorPartIcon.UnsetGrey |
( |
| ) |
|
|
inline |
bool KSP.UI.Screens.EditorPartIcon.VariantsAvailable |
( |
| ) |
|
|
inline |
Will return true if the availablePart has Variants
- Returns
Button KSP.UI.Screens.EditorPartIcon.btnAdd |
Button KSP.UI.Screens.EditorPartIcon.btnPlacePart |
Button KSP.UI.Screens.EditorPartIcon.btnRemove |
Button KSP.UI.Screens.EditorPartIcon.btnSpawnPart |
Button KSP.UI.Screens.EditorPartIcon.btnSwapTexture |
Color KSP.UI.Screens.EditorPartIcon.experimentalPartColor = new Color32(128, 128, 255, 255) |
The flag Part module reference, assigned when this is created and the part has the module.
Image KSP.UI.Screens.EditorPartIcon.highlightImage |
float KSP.UI.Screens.EditorPartIcon.iconOverScale |
float KSP.UI.Screens.EditorPartIcon.iconOverSpin |
float KSP.UI.Screens.EditorPartIcon.iconSize |
bool KSP.UI.Screens.EditorPartIcon.inInventory |
RawImage KSP.UI.Screens.EditorPartIcon.inventoryItemThumbnail |
bool KSP.UI.Screens.EditorPartIcon.isEmptySlot = false |
Indicates if this PartIcon is an Empty Slot in the Inventory Grid in the PAW. Is not relevant if this instance is not part of an Inventory Grid in a PAW UI.
bool KSP.UI.Screens.EditorPartIcon.isFlag |
bool KSP.UI.Screens.EditorPartIcon.isPart = true |
Material [] KSP.UI.Screens.EditorPartIcon.materials |
Color KSP.UI.Screens.EditorPartIcon.missionRequiredPartColor = new Color32(128, 128, 255, 255) |
PartIcon KSP.UI.Screens.EditorPartIcon.partIcon |
Reference to the Part Icon object - which contains a reference to the Icon GameObject and cached Renderers.
Slider KSP.UI.Screens.EditorPartIcon.stackSlider |
The slider that shows how many items in a stack are filled
int KSP.UI.Screens.EditorPartIcon.variantIndex |
bool KSP.UI.Screens.EditorPartIcon.Focused |
|
get |
string KSP.UI.Screens.EditorPartIcon.greyoutToolTipMessage |
|
getset |
bool KSP.UI.Screens.EditorPartIcon.HasIconOrThumbnail |
|
get |
Does the icon or thumbnail exist?
bool KSP.UI.Screens.EditorPartIcon.IsCargoPart |
|
get |
bool KSP.UI.Screens.EditorPartIcon.IsDeployablePart |
|
get |
bool KSP.UI.Screens.EditorPartIcon.isGrey |
|
getset |
bool KSP.UI.Screens.EditorPartIcon.MouseOver |
|
get |
Transform KSP.UI.Screens.EditorPartIcon.PartIcon |
|
get |
bool KSP.UI.Screens.EditorPartIcon.StillFocused |
|
get |
The documentation for this class was generated from the following file: