Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
UIPartActionInventory Class Reference
Inheritance diagram for UIPartActionInventory:
UIPartActionFieldItem UIPartActionItem

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< UIPartActionInventorySlotslotButton = new List<UIPartActionInventorySlot>()
 
List< EditorPartIconslotPartIcon = 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
 

Member Function Documentation

void UIPartActionInventory.DestroyHeldPart ( )
inline

Destroys the current held part (the one seen as an icon while pressing a slot).

void UIPartActionInventory.DestroyItem ( int  index)
inline

Destroy an Icon Part in slot by index

Parameters
index
void UIPartActionInventory.ResetPlacePartIcons ( bool  active)
inline

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.

Parameters
active
void UIPartActionInventory.SetAllSlotsNotSelected ( )
inline

Set all slots to not currently selected or grayed out.

override void UIPartActionInventory.Setup ( UIPartActionWindow  window,
Part  part,
PartModule  partModule,
UI_Scene  scene,
UI_Control  control,
BaseField  field 
)
inlinevirtual

Setup UI Element.

Parameters
windowThe UIPartActionWindow
partThe Part
partModulethe PartModule
sceneThe UI_Scene
controlThe UI_Control
fieldthe BaseField

Reimplemented from UIPartActionFieldItem.

void UIPartActionInventory.SetupConstruction ( ModuleInventoryPart  inventoryPart)
inline

Used to initialize the inventory outside of the PAW as in ConstructionMode

Parameters
inventoryPart
void UIPartActionInventory.SpawnEmptySlot ( int  slotIndex)
inline

Spawns a Cargo part in an inventory slot.

Parameters
spThe Stored part tp spwn in its slot
void UIPartActionInventory.SpawnLoadedPart ( StoredPart  sp)
inline

Spawns a Cargo part in an inventory slot.

Parameters
spThe Stored part to spawn in its slot
void UIPartActionInventory.StartPartPlacement ( EditorPartIcon  partIcon)
inline

Will be called from the EditorPArtIcon when the place part icon is clicked by the user.

Parameters
partIcon

Member Data Documentation

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

Property Documentation

bool UIPartActionInventory.AbleToPlaceParts
get

Can this Inventory (Part Module) place parts?


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