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[] { }); }
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(), }); }
public void SelectedToProductionQueue() { TerminalScreen.TerminalInventoryController().ClickButton("m_selectedToProductionButton"); }
public void FromBuildPlannerToProductionQueue() { TerminalScreen.TerminalInventoryController().ClickButton("m_addToProductionButton"); }
public void Deposit() { TerminalScreen.TerminalInventoryController().ClickButton("m_depositAllButton"); }
public void Withdraw() { TerminalScreen.TerminalInventoryController().ClickButton("m_withdrawButton"); }
public void DropSelected() { TerminalScreen.TerminalInventoryController().ClickButton("m_throwOutButton"); }
private object TerminalInventoryController() { return(TerminalScreen.TerminalInventoryController()); }
public void ToggleHideEmpty() { TerminalScreen.TerminalInventoryController().ClickCheckBox("m_hideEmptyRight"); }
public void Filter(string text) { TerminalScreen.TerminalInventoryController().EnterSearchText("m_searchBoxRight", text); }
private void ClickRadio(string fieldName) { TerminalScreen.TerminalInventoryController().ClickRadio(fieldName); }
public Screens() { m_terminalScreen = new TerminalScreen(); }