public static bool CanExamineEmptyCargoBox(MyCargoBox cargoBox, params object[] args) { if (IsBlocked(cargoBox, args)) { return(false); } MySmallShip smallShip = GetSmallShipFromArguments(args); return(cargoBox.Inventory.GetInventoryItems().Count == 0 && IsLookAtTarget(smallShip, cargoBox) && ControlIsInPlayerShip()); }
public MyGuiScreenEditorCargoBox(MyCargoBox cargoBox) : base(cargoBox, new Vector2(0.5f, 0.5f), MyGuiConstants.SCREEN_BACKGROUND_COLOR, null, MyTextsWrapperEnum.EditCargoBox) { Init(); }