public Label(IScreen screen, IInputDevice inputDevice, IOCRReader ocr, int top, int bottom, int left, int right) : base(screen, inputDevice, top, bottom, left, right) { CharacterHeight = 11; CharacterOffset = 0; Colors = new[] { new byte[] { 0, 0, 0 } }; OCR = ocr; }
public UIMap(ISettingsStore settings, IWindowFinder windowFinder, IOCRReader ocr, IInputDevice input, IScreen screen) { Settings = settings; WindowFinder = windowFinder; OCR = ocr; InputDevice = input; Screen = screen; }
public TreeList(IScreen screen, IInputDevice inputDevice, IOCRReader ocr, int top, int bottom, int left, int right) : base(screen, inputDevice, top, bottom, left, right) { OCR = ocr; CharacterHeight = 11; CharacterOffset = 3; BottomOffset = 2; Colors = new[] { new byte[] { 0, 0, 0 } }; }
public TreeListItem(IScreen screen, IInputDevice inputDevice, IOCRReader ocr, TreeListItem parentItem, int left, int right, int top, int offset, int height) : base(screen, inputDevice, top, top + 16, left, right) { ParentItem = parentItem; CharacterOffset = offset; CharacterHeight = height; Colors = new[] { new byte[] { 0, 0, 0 } }; OCR = ocr; }
public Datagrid(IScreen screen, IInputDevice inputDevice, IOCRReader ocr, int top, int bottom, int[] columns) : base(screen, inputDevice, top, bottom, columns.First(), columns.Last()) { OCR = ocr; Columns = columns; }
public Combobox(IScreen screen, IInputDevice inputDevice, IOCRReader ocr, int top, int bottom, int left, int right) : base(screen, inputDevice, top, bottom, left, right) { OCR = ocr; }
public CommandersWindow(IScreen screen, IWindowFinder windowFinder, IInputDevice inputDevice, IOCRReader ocr, ISettingsStore settings) : base("Commanders", screen, windowFinder, inputDevice, settings) { LeaderType = new Combobox(this, inputDevice, ocr, left: 101, right: 272, top: 140, bottom: 156) { CharacterOffset = 4, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; Officiers = new TreeList(this, inputDevice, ocr, left: 29, right: 289, top: 176, bottom: 292) { CharacterOffset = 2, BottomOffset = 2, CharacterHeight = 11 }; }
public PopulationAndProductionWindow(IScreen screen, IWindowFinder windowFinder, IInputDevice inputDevice, IOCRReader ocr, ISettingsStore settings) : base("Population and Production", screen, windowFinder, inputDevice, settings) { ResearchTable = new Datagrid(this, inputDevice, ocr, 406, 613, new [] { 406, 687, 754, 776 }) { LineHeight = 16, TopOfCharactersOffset = 3, Settings = PrintSettings.NewResearchTable }; AvailableScientistsTable = new Datagrid(this, inputDevice, ocr, 406, 613, new[] { 790, 909, 1056, 1184 }) { LineHeight = 16, TopOfCharactersOffset = 3, Settings = PrintSettings.AvailableScientistTable }; ConstructionOptions = new Datagrid(this, inputDevice, ocr, 245, 669, new [] { 398, 599 }) { LineHeight = 16, TopOfCharactersOffset = 3 }; AllocatedLabs = new Textbox(this, inputDevice, ocr, left: 885, right: 929, top: 357, bottom: 371) { CharacterOffset = 3, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; AvailableLabs = new Textbox(this, inputDevice, ocr, left: 1037, right: 1073, top: 357, bottom: 371) { CharacterOffset = 3, CharacterHeight = 9, Colors = new[] { new byte[] { 109, 109, 109 } } }; NumberOfIndustrialProject = new Textbox(this, inputDevice, ocr, left: 725, right: 769, top: 696, bottom: 710) { CharacterOffset = 3, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; CreateIndustrialProject = new Button(this, inputDevice, left: 635, right: 707, top: 730, bottom: 754); InstallationType = new Combobox(this, inputDevice, ocr, left: 501, right: 801, top: 180, bottom: 196) { CharacterOffset = 4, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; ContractAmount = new Textbox(this, inputDevice, ocr, left: 501, right: 553, top: 220, bottom: 234) { CharacterOffset = 3, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; CivilianContractSupply = new RadioButton(this, inputDevice, left: 696, right: 707, top: 220, bottom: 231); CivilianContractDemand = new RadioButton(this, inputDevice, left: 784, right: 795, top: 221, bottom: 232); AddCivilianContract = new Button(this, inputDevice, left: 411, right: 491, top: 514, bottom: 538); Populations = new TreeList(this, inputDevice, ocr, left: 21, right: 361, top: 100, bottom: 807); Populations.Refresh += (sender, args) => { MakeActive(); Empire.SelectOption(1); }; PurchaseMineralOutput = new RadioButton(this, inputDevice, left: 536, right: 547, top: 804, bottom: 815); MassDriverDestination = new Combobox(this, inputDevice, ocr, left: 1005, right: 1184, top: 156, bottom: 172) { CharacterOffset = 4, CharacterHeight = 9, Colors = new[] { new byte[] { 0, 0, 0 } } }; Empire = new Combobox(this, inputDevice, ocr, left: 19, right: 363, top: 46, bottom: 66) { CharacterOffset = 6, CharacterHeight = 11, Colors = new[] { new byte[] { 0, 0, 0 } } }; CurrentResearchProject = new Datagrid(this, inputDevice, ocr, 193, 289, new[] { 399, 632, 799, 859, 929, 999, 1132, 1158 }) { LineHeight = 16, TopOfCharactersOffset = 3 }; RemoveRL = new Button(this, inputDevice, left: 683, right: 763, top: 299, bottom: 323); AddRL = new Button(this, inputDevice, left: 587, right: 667, top: 299, bottom: 323); NumberOfLabs = new Label(this, inputDevice, ocr, left: 515, right: 541, top: 140, bottom: 148); MatchingScientistsOnly = new RadioButton(this, inputDevice, left: 740, right: 750, top: 362, bottom: 372); }
public Textbox(IScreenObject parent, IInputDevice inputDevice, IOCRReader ocr, int top, int bottom, int left, int right) : base(parent, inputDevice, top, bottom, left, right) { OCR = ocr; }