Kerbal Space Program
1.12.4
|
Public Member Functions | |
void | DestroyHeldPart () |
Destroys the current held part (the one seen as an icon while pressing a slot). More... | |
void | DestroyItem (int index) |
Destroy an Icon Part in slot by index More... | |
void | ResetPlacePartIcons (bool active) |
Will set all the Place Part Icons on or off. Cannot be set active unless the vessel for this Inventory is an EVA Kerbal that is in landed state. More... | |
void | SetAllSlotsNotSelected () |
Set all slots to not currently selected or grayed out. More... | |
override void | Setup (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control, BaseField field) |
Setup UI Element. More... | |
void | SetupConstruction (ModuleInventoryPart inventoryPart) |
Used to initialize the inventory outside of the PAW as in ConstructionMode More... | |
void | SpawnEmptySlot (int slotIndex) |
Spawns a Cargo part in an inventory slot. More... | |
void | SpawnLoadedPart (StoredPart sp) |
Spawns a Cargo part in an inventory slot. More... | |
void | StartPartPlacement (EditorPartIcon partIcon) |
Will be called from the EditorPArtIcon when the place part icon is clicked by the user. More... | |
Public Member Functions inherited from UIPartActionFieldItem | |
bool | CheckInRange () |
Checks if the field is within range from the active vessel. More... | |
override bool | IsItemValid () |
Public Member Functions inherited from UIPartActionItem | |
virtual void | AddInputFieldLock (string val) |
virtual void | RemoveInputfieldLock () |
void | SetupItem (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control) |
virtual void | UpdateItem () |
Public Attributes | |
RectTransform | contentTransform |
RectTransform | currentSelectedItemPartIcon |
int | fieldValue |
Number of inventory slots More... | |
UI_Grid | gridControl |
GridLayoutGroup | gridLayout |
float | iconSize = 35 |
bool | inCargoPane = false |
Will be true if this instance is part of the Pane of pasrts on the left side of the screen in concstruction mode or the carho app More... | |
TMPro.TextMeshProUGUI | inventoryNameText |
ModuleInventoryPart | inventoryPartModule |
Inventory part reference for this UI inventory. More... | |
GameObject | limitsFooter |
Object that holds the volume and mass limits More... | |
Image | massFillImage |
Fill Bar for mass More... | |
GameObject | massLimits |
Slider for displaying the mass limit More... | |
Slider | massSlider |
Slider for displaying the mass limit More... | |
TextMeshProUGUI | massText |
Text to display the mass More... | |
Image | packedVolumeFillImage |
Fill Bar for Packed Volume More... | |
GameObject | packedVolumeLimits |
Slider for displaying the packed volume limit More... | |
Slider | packedVolumeSlider |
Slider for displaying the packed volume limit More... | |
TextMeshProUGUI | packedVolumeText |
Text to display the packed Volume More... | |
float | partIconDepthDistance = 39 |
List< UIPartActionInventorySlot > | slotButton = new List<UIPartActionInventorySlot>() |
List< EditorPartIcon > | slotPartIcon = new List<EditorPartIcon>() |
GameObject | slotPrefab |
Properties | |
bool | AbleToPlaceParts [get] |
Can this Inventory (Part Module) place parts? More... | |
Properties inherited from UIPartActionFieldItem | |
BaseField | Field [get] |
object | Host [get] |
Properties inherited from UIPartActionItem | |
UI_Control | Control [get] |
bool | IsModule [get] |
Part | Part [get] |
PartModule | PartModule [get] |
UI_Scene | Scene [get] |
UIPartActionWindow | Window [get] |
Additional Inherited Members | |
Protected Member Functions inherited from UIPartActionFieldItem | |
BaseField | GetField (string name) |
void | SetFieldValue (object newValue) |
bool | SetSymCounterpartValue (object value) |
Protected Attributes inherited from UIPartActionFieldItem | |
BaseField | field |
bool | isActiveUnfocused |
float | itemRange |
bool | removedIfPinned |
Protected Attributes inherited from UIPartActionItem | |
UI_Control | control |
bool | isModule |
Part | part |
PartModule | partModule |
UI_Scene | scene |
UIPartActionWindow | window |
|
inline |
Destroys the current held part (the one seen as an icon while pressing a slot).
|
inline |
Destroy an Icon Part in slot by index
index |
|
inline |
|
inline |
Set all slots to not currently selected or grayed out.
|
inlinevirtual |
Setup UI Element.
window | The UIPartActionWindow |
part | The Part |
partModule | the PartModule |
scene | The UI_Scene |
control | The UI_Control |
field | the BaseField |
Reimplemented from UIPartActionFieldItem.
|
inline |
Used to initialize the inventory outside of the PAW as in ConstructionMode
inventoryPart |
|
inline |
Spawns a Cargo part in an inventory slot.
sp | The Stored part tp spwn in its slot |
|
inline |
Spawns a Cargo part in an inventory slot.
sp | The Stored part to spawn in its slot |
|
inline |
Will be called from the EditorPArtIcon when the place part icon is clicked by the user.
partIcon |
RectTransform UIPartActionInventory.contentTransform |
RectTransform UIPartActionInventory.currentSelectedItemPartIcon |
int UIPartActionInventory.fieldValue |
Number of inventory slots
UI_Grid UIPartActionInventory.gridControl |
GridLayoutGroup UIPartActionInventory.gridLayout |
float UIPartActionInventory.iconSize = 35 |
bool UIPartActionInventory.inCargoPane = false |
Will be true if this instance is part of the Pane of pasrts on the left side of the screen in concstruction mode or the carho app
TMPro.TextMeshProUGUI UIPartActionInventory.inventoryNameText |
ModuleInventoryPart UIPartActionInventory.inventoryPartModule |
Inventory part reference for this UI inventory.
GameObject UIPartActionInventory.limitsFooter |
Object that holds the volume and mass limits
Image UIPartActionInventory.massFillImage |
Fill Bar for mass
GameObject UIPartActionInventory.massLimits |
Slider for displaying the mass limit
Slider UIPartActionInventory.massSlider |
Slider for displaying the mass limit
TextMeshProUGUI UIPartActionInventory.massText |
Text to display the mass
Image UIPartActionInventory.packedVolumeFillImage |
Fill Bar for Packed Volume
GameObject UIPartActionInventory.packedVolumeLimits |
Slider for displaying the packed volume limit
Slider UIPartActionInventory.packedVolumeSlider |
Slider for displaying the packed volume limit
TextMeshProUGUI UIPartActionInventory.packedVolumeText |
Text to display the packed Volume
float UIPartActionInventory.partIconDepthDistance = 39 |
List<UIPartActionInventorySlot> UIPartActionInventory.slotButton = new List<UIPartActionInventorySlot>() |
List<EditorPartIcon> UIPartActionInventory.slotPartIcon = new List<EditorPartIcon>() |
GameObject UIPartActionInventory.slotPrefab |
|
get |
Can this Inventory (Part Module) place parts?