public HeapPile(GameObject gameObject, Game game, BoardParts parts) { this.gameObject = gameObject; this.printer = parts.Print(gameObject); this.DropZone = gameObject.AddComponent <DropZone>(); game.runner.zones.heap.zone.ObserveAdditions(this); }
public RigGrid(GameObject gameObject, Game game, DropZone paidWindowTrigger, BoardParts parts) { this.game = game; this.paidWindowTrigger = paidWindowTrigger; this.printer = parts.Print(gameObject); game.runner.paidWindow.ObserveAbility(this); game.runner.zones.rig.zone.ObserveAdditions(this); game.runner.zones.rig.zone.ObserveRemovals(this); this.DropZone = gameObject.AddComponent <DropZone>(); }
public ServerBox(GameObject gameObject, IServer server) { this.gameObject = gameObject; this.server = server; var image = gameObject.AddComponent <Image>(); image.sprite = Resources.Load <Sprite>("Images/UI/9slice-solid-white"); image.type = Image.Type.Sliced; image.fillCenter = false; Printer = gameObject.AddComponent <CardPrinter>(); }
public GripFan(GameObject gameObject, Game game, DropZone playZone, DropZone rigZone, DropZone heapZone, BoardParts parts) { this.gameObject = gameObject; this.game = game; this.playZone = playZone; this.rigZone = rigZone; this.heapZone = heapZone; this.printer = parts.Print(gameObject); this.DropZone = gameObject.AddComponent <DropZone>(); game.runner.zones.grip.zone.ObserveAdditions(this); game.runner.zones.grip.zone.ObserveRemovals(this); }
public ServerBox(GameObject gameObject, IServer server, BoardParts parts) { this.gameObject = gameObject; this.server = server; var image = gameObject.AddComponent <Image>(); image.sprite = Resources.Load <Sprite>("Images/UI/9slice-solid-white"); image.type = Image.Type.Sliced; image.fillCenter = false; image.color = new Color(1f, 1f, 1f, 0f); Printer = parts.Print(gameObject); }
public Boolean PrintEnvelope(Boolean isTest) { Boolean _Printed = false; //CardPrinterPrinterSettings.PrinterName = "IS700C"; //CardPrinter.PrinterSettings.PrinterName = "RISO RZ 9 Series"; // CardPrinter.PrinterSettings.PrinterName = "RICOH HQ9000 RPCS"; //CardPrinter.PrinterSettings.PrinterName = "RISO RN2550(ADVANCE)"; //CardPrinter.PrinterSettings.PrinterName = "Send To OneNote 2007"; if (this.Lines.Count > 0) { String PrinterName = Global.OpenPrintDialog(); if (PrinterName != "") { CardTemplate oCardTemplate = new CardTemplate(); Card oCard = new Card(this.CompanyID); oCard.Find(this.ProductID); if (!oCardTemplate.Find(oCard.EnvTemplateID)) { MessageBox.Show("No template found for the envelope: " + oCard.EnvTemplateID.ToString()); return(false); } CardPrinter CardPrinter = new CardPrinter(); CardPrinter.PrinterSettings.PrinterName = PrinterName; CardPrinter.Clear(); foreach (Line oLine in this.LinesEnvelope) { CardPrinter.Add(oLine.Text); } CardPrinter.Point = oCardTemplate.Point; CardPrinter.PaperSize = oCardTemplate.PaperSize; CardPrinter.Copies = 24; CardPrinter.UpperCase = false; CardPrinter.Rotation = (short)oCardTemplate.Rotation; CardPrinter.TestMode = false; CardPrinter.Font = new Font(oCardTemplate.FontName, oCardTemplate.FontSize, oCardTemplate.Bold ? FontStyle.Bold : FontStyle.Regular); // CardPrinter.Settings(); CardPrinter.Print(); _Printed = true; } } return(_Printed); }
public ZoneBox(GameObject gameObject) { this.gameObject = gameObject; Printer = gameObject.AddComponent <CardPrinter>(); }
public CardChoiceScreen(BoardParts parts) { blanket = CreateBlanket(parts.board); subjectRow = CreateSubjectRow(blanket, parts); optionsRow = CreateOptionsRow(blanket, parts); }
public ZoneBox(GameObject gameObject, BoardParts parts) { this.gameObject = gameObject; Printer = parts.Print(gameObject); }
public TrashChoiceScreen(GameObject board) { blanket = CreateBlanket(board); subjectRow = CreateSubjectRow(blanket); optionsRow = CreateOptionsRow(blanket); }
void Awake() { printer = gameObject.AddComponent <CardPrinter>(); }
public CardPrinterFacade() { _cardprinter = new CardPrinter(); }