Example #1
0
        public void TransferInventoryItem(int sourceInventoryId, int destinationInventoryId, int itemId)
        {
            var sourceInventory      = TerminalScreen.LeftInventories()[sourceInventoryId];
            var rightInventory       = TerminalScreen.RightInventories();
            var destinationInventory = rightInventory[destinationInventoryId];

            MyInventory.TransferByUser(sourceInventory, destinationInventory, (uint)itemId,
                                       destinationInventory.ItemCount);
            TerminalInventoryController().CallMethod <object>("RefreshSelectedInventoryItem", new object[] { });
        }
Example #2
0
        public override TerminalInventoryData Data()
        {
            var controller       = TerminalInventoryController();
            var inventories      = controller.CallMethod <MyInventory[]>("GetSourceInventories");
            var rightInventories = TerminalScreen.RightInventories();

            return(new TerminalInventoryData()
            {
                LeftInventories = inventories.Select(i => i.ToInventory()).ToList(),
                RightInventories = rightInventories.Select(i => i.ToInventory()).ToList(),
            });
        }
Example #3
0
 public void SelectedToProductionQueue()
 {
     TerminalScreen.TerminalInventoryController().ClickButton("m_selectedToProductionButton");
 }
Example #4
0
 public void FromBuildPlannerToProductionQueue()
 {
     TerminalScreen.TerminalInventoryController().ClickButton("m_addToProductionButton");
 }
Example #5
0
 public void Deposit()
 {
     TerminalScreen.TerminalInventoryController().ClickButton("m_depositAllButton");
 }
Example #6
0
 public void Withdraw()
 {
     TerminalScreen.TerminalInventoryController().ClickButton("m_withdrawButton");
 }
Example #7
0
 public void DropSelected()
 {
     TerminalScreen.TerminalInventoryController().ClickButton("m_throwOutButton");
 }
Example #8
0
 private object TerminalInventoryController()
 {
     return(TerminalScreen.TerminalInventoryController());
 }
Example #9
0
 public void ToggleHideEmpty()
 {
     TerminalScreen.TerminalInventoryController().ClickCheckBox("m_hideEmptyRight");
 }
Example #10
0
 public void Filter(string text)
 {
     TerminalScreen.TerminalInventoryController().EnterSearchText("m_searchBoxRight", text);
 }
Example #11
0
 private void ClickRadio(string fieldName)
 {
     TerminalScreen.TerminalInventoryController().ClickRadio(fieldName);
 }
Example #12
0
 public Screens()
 {
     m_terminalScreen = new TerminalScreen();
 }