public Page_LineManagementUI(AssemblyLine line, Layer previous) : base(line,"LineManagementHelp".Translate()) { this.previousPage = previous; this.selectedOrder = line.CurrentOrder; this.orders = line.OrderStack.All.ToList(); }
public Order(AssemblyLine line, OrderConfig config) { this.shoppingList = new ShoppingList(this); this.line = line; this.SetConfigDirect(config); this.TicksToFinish = Config.WorkAmount; }
public Window_LineManagementUI(AssemblyLine line, Window previous) : base(line, "LineManagementHelp".Translate()) { this.previousPage = previous; this.selectedOrder = line.CurrentOrder; this.orders = line.OrderStack.All.ToList(); }
public void AddNewAssemblyLine(bool instaBuild) { //Log.Error("Did this!"); if (CanAddAssemblyLine) { this.assemblyLines.Add(AssemblyLine.NewAssemblyLine(instaBuild)); } }
public Window_RecipeManagement(AssemblyLine line, Window_LineManagementUI previousPage) : base(line, "RecipeManagementHelp".Translate()) { this.previousPage = previousPage; if (recipesList != null) { recipesList.Sort((o, y) => o.label.CompareTo(y.label)); selectedDef = recipesList.First(); config = new OrderConfig(selectedDef); } }
public Window_ManufacturingPlant(AssemblyLine line, string message) { this.message = message; this.line = line; this.absorbInputAroundWindow = true; this.closeOnEscapeKey = true; this.forcePause = false; this.doCloseButton = true; this.doCloseX = true; this.draggable = true; this.resizeable = true; }
public static AssemblyLine NewAssemblyLine(bool instaBuild = false) { AssemblyLine a = new AssemblyLine(); a.label = string.Format("Assembly Line {0}", MPmanager.manager.AssemblyLines.Count + 1); a.orderStack = new OrderStack(a); a.billOfMaterials = new BillOfMaterials(AssemblyLine.Settings.BuildingCost, instaBuild); a.upgradeManager = new UpgradeManager(a); a.Speed = new AssemblyLineProperty("AssemblyLinePropertySpeed".Translate(), 1f); a.Efficiency = new AssemblyLineProperty("AssemblyLinePropertyEfficiency".Translate(), 1f); return(a); }
public ManufacturingPlantDialog(AssemblyLine parent, string title = "", string helpMessage="", float width=600, float height=700) { base.SetCentered(width, height); this.absorbAllInput = true; this.drawPriority = 2000; this.forcePause = false; this.clearNonEditWindows = false; this.closeOnEscapeKey = true; this.doCloseX = true; this.message = helpMessage; this.title = title; this.parent = parent; }
public Page_ManufacturingPlant(AssemblyLine line, string message) { this.message = message; this.line = line; this.drawPriority = 2000; base.SetCentered(WinSize); this.clearNonEditWindows = true; this.absorbAllInput = true; this.closeOnEscapeKey = true; this.forcePause = false; this.doCloseButton = true; this.doCloseX = true; }
public Dialog_ManufacturingPlant(AssemblyLine parent, string title = "", string helpMessage = "", float width = 600, float height = 700) { this.absorbInputAroundWindow = true; this.forcePause = false; this.closeOnEscapeKey = true; this.doCloseX = true; this.message = helpMessage; this.title = title; this.parent = parent; this.width = width; this.height = height; this.draggable = true; this.resizeable = true; }
public void RemoveAssemblyLine(AssemblyLine line) { line.Delete(); this.assemblyLines.Remove(line); }
public Order(AssemblyLine line) { this.line = line; }
public Storage(AssemblyLine parent) { this.parent = parent; this.allStoredItemsList = new List <ListItem>(); }
public Dialog_UpgradeManager(AssemblyLine parent) : base(parent, "Upgrades".Translate(), "UpgradeManagerHelp".Translate(), 600, 600) { this.doCloseButton = true; }
public static AssemblyLine NewAssemblyLine(bool instaBuild = false) { AssemblyLine a = new AssemblyLine(); a.label = string.Format("Assembly Line {0}", MPmanager.manager.AssemblyLines.Count + 1); a.orderStack = new OrderStack(a); a.billOfMaterials = new BillOfMaterials(AssemblyLine.Settings.BuildingCost, instaBuild); a.upgradeManager = new UpgradeManager(a); a.Speed = new AssemblyLineProperty("AssemblyLinePropertySpeed".Translate(), 1f); a.Efficiency = new AssemblyLineProperty("AssemblyLinePropertyEfficiency".Translate(), 1f); return a; }
public UpgradeManager(AssemblyLine parent) { this.parent = parent; }
public Storage(AssemblyLine parent) { this.parent = parent; this.allStoredItemsList = new List<ListItem>(); }