public override void makeElements() { for (int i = 0; i < 1; i++) { screenLabels.Add(null); // Initialize Labels } for (int i = 0; i < 4; i++) { screenButtons.Add(null); // Initialize Buttons } for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix screenLabels[0] = Helper.CreateLabel(39, 73, 189, 29, positionCode + " STATUS REPORT", true, true); screenLabels[0].type = CustomLabel.LabelType.ENGRAVED; screenButtons[0] = Helper.CreateButton(39, 105, 63, 77, "", true); screenButtons[0].buttonStyle = MocrButton.style.LIGHT; screenButtons[0].setLightColor(MocrButton.color.RED); screenButtons[0].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[1] = Helper.CreateButton(102, 105, 63, 77, "", true); screenButtons[1].buttonStyle = MocrButton.style.LIGHT; screenButtons[1].setLightColor(MocrButton.color.AMBER); screenButtons[1].Click += (sender, e) => clickButton(sender, e, screenButtons[1]); screenButtons[2] = Helper.CreateButton(165, 105, 63, 77, "", true); screenButtons[2].buttonStyle = MocrButton.style.LIGHT; screenButtons[2].setLightColor(MocrButton.color.GREEN); screenButtons[2].Click += (sender, e) => clickButton(sender, e, screenButtons[2]); screenButtons[3] = Helper.CreateButton(98, 14, 70, 56, "ABORT\nREQ'D", true); screenButtons[3].Font = form.smallFontB; screenButtons[3].buttonStyle = MocrButton.style.LIGHT; screenButtons[3].setLightColor(MocrButton.color.RED); screenScrews[0] = Helper.CreateScrew(4, 36, true); screenScrews[1] = Helper.CreateScrew(234, 36, true); screenScrews[2] = Helper.CreateScrew(4, 134, true); screenScrews[3] = Helper.CreateScrew(234, 134, true); form.dataStorage.Pull(); Thread.Sleep(1000); setButtonColor(positionCode + "S"); }
public override void makeElements() { for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } for (int i = 0; i < 72; i++) { screenEventIndicators.Add(null); // Initialize EventIndicators } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix screenScrews[0] = Helper.CreateScrew(4, 36, true); screenScrews[1] = Helper.CreateScrew(500, 36, true); screenScrews[2] = Helper.CreateScrew(4, 134, true); screenScrews[3] = Helper.CreateScrew(500, 134, true); /// ROW ONE screenEventIndicators[0] = Helper.createEventIndicator(54, 10, true, true); screenEventIndicators[0].upperText = "EECOM\nALL LIM"; screenEventIndicators[0].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[0].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[1] = Helper.createEventIndicator(101, 10, true, true); screenEventIndicators[1].upperText = "CSM\nLIVE"; screenEventIndicators[1].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[1].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[2] = Helper.createEventIndicator(148, 10, true, true); screenEventIndicators[2].upperText = "CSM FM TM\n1.1024MHZ"; screenEventIndicators[2].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[2].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[3] = Helper.createEventIndicator(195, 10, true, true); screenEventIndicators[3].upperText = "DSE RUN\nCT0012X"; screenEventIndicators[3].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[3].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[4] = Helper.createEventIndicator(242, 10, true, true); screenEventIndicators[4].upperText = "LOG BUS A\nCD0200V"; screenEventIndicators[4].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[4].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[5] = Helper.createEventIndicator(289, 10, true, true); screenEventIndicators[5].upperText = "SCS BUS A\nCD0170X"; screenEventIndicators[5].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[5].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[6] = Helper.createEventIndicator(336, 10, true, true); screenEventIndicators[6].upperText = "APEX A\nCD0230X"; screenEventIndicators[6].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[6].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[7] = Helper.createEventIndicator(383, 10, true, true); screenEventIndicators[7].upperText = "ABORT REQ\nBS0080X"; screenEventIndicators[7].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[7].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[8] = Helper.createEventIndicator(430, 10, true, true); screenEventIndicators[8].upperText = "EDS VOT 1\nCDO132X R"; screenEventIndicators[8].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[8].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW TWO screenEventIndicators[9] = Helper.createEventIndicator(54, 32, true, true); screenEventIndicators[9].upperText = "LAUNCH\nLIMITS"; screenEventIndicators[9].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[9].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[10] = Helper.createEventIndicator(101, 32, true, true); screenEventIndicators[10].upperText = "CSM\nSTATIC"; screenEventIndicators[10].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[10].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[11] = Helper.createEventIndicator(148, 32, true, true); screenEventIndicators[11].upperText = "CSM PM\nDN LOCK"; screenEventIndicators[11].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[11].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[12] = Helper.createEventIndicator(195, 32, true, true); screenEventIndicators[12].upperText = "SCE +20\nCT0015V"; screenEventIndicators[12].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[12].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[13] = Helper.createEventIndicator(242, 32, true, true); screenEventIndicators[13].upperText = "LOG BUS B\nCD0201V"; screenEventIndicators[13].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[13].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[14] = Helper.createEventIndicator(289, 32, true, true); screenEventIndicators[14].upperText = "SCS RCS B\nCD0171X"; screenEventIndicators[14].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[14].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[15] = Helper.createEventIndicator(336, 32, true, true); screenEventIndicators[15].upperText = "APEX B\nCD0231X"; screenEventIndicators[15].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[15].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[16] = Helper.createEventIndicator(383, 32, true, true); screenEventIndicators[16].upperText = "ABORT REQ\nBS0081X"; screenEventIndicators[16].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[16].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[17] = Helper.createEventIndicator(430, 32, true, true); screenEventIndicators[17].upperText = "EDS VOT 2\nCD0133X T"; screenEventIndicators[17].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[17].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW THREE screenEventIndicators[18] = Helper.createEventIndicator(54, 54, true, true); screenEventIndicators[18].upperText = "ENTRY\nLIMITS"; screenEventIndicators[18].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[18].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[19] = Helper.createEventIndicator(101, 54, true, true); screenEventIndicators[19].upperText = "CSM\nLFI"; screenEventIndicators[19].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[19].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[20] = Helper.createEventIndicator(148, 54, true, true); screenEventIndicators[20].upperText = "CSM PM TM\n1.024MHZ"; screenEventIndicators[20].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[20].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[21] = Helper.createEventIndicator(195, 54, true, true); screenEventIndicators[21].upperText = "SCE -20\nCT0016V"; screenEventIndicators[21].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[21].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[22] = Helper.createEventIndicator(242, 54, true, true); screenEventIndicators[22].upperText = "PYR BUS A\nCD0005V"; screenEventIndicators[22].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[22].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[23] = Helper.createEventIndicator(289, 54, true, true); screenEventIndicators[23].upperText = "CM RCS A\nCD0173X"; screenEventIndicators[23].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[23].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[24] = Helper.createEventIndicator(336, 54, true, true); screenEventIndicators[24].upperText = "DRO DEP A\nCE0001X"; screenEventIndicators[24].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[24].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[25] = Helper.createEventIndicator(383, 54, true, true); screenEventIndicators[25].upperText = "CREW ABRT\nCD0130X"; screenEventIndicators[25].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[25].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[26] = Helper.createEventIndicator(430, 54, true, true); screenEventIndicators[26].upperText = "EDS VOT 3\nCD0135X R"; screenEventIndicators[26].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[26].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW FOUR screenEventIndicators[27] = Helper.createEventIndicator(54, 76, true, true); screenEventIndicators[27].upperText = ""; screenEventIndicators[27].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[27].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[28] = Helper.createEventIndicator(101, 76, true, true); screenEventIndicators[28].upperText = "CSM EVENTS\nPLAYBACK"; screenEventIndicators[28].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[28].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[29] = Helper.createEventIndicator(148, 76, true, true); screenEventIndicators[29].upperText = "CSM UDL\n70KHZ"; screenEventIndicators[29].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[29].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[30] = Helper.createEventIndicator(195, 76, true, true); screenEventIndicators[30].upperText = "SCE +10\nCT0018V"; screenEventIndicators[30].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[30].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[31] = Helper.createEventIndicator(242, 76, true, true); screenEventIndicators[31].upperText = "PYR BUS B\nCD0006V"; screenEventIndicators[31].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[31].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[32] = Helper.createEventIndicator(289, 76, true, true); screenEventIndicators[32].upperText = "CM RCS B\nCD0174X"; screenEventIndicators[32].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[32].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[33] = Helper.createEventIndicator(336, 76, true, true); screenEventIndicators[33].upperText = "DRO DEP B\nCE0002X"; screenEventIndicators[33].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[33].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[34] = Helper.createEventIndicator(383, 76, true, true); screenEventIndicators[34].upperText = "CREW ABRT\nCD0131X"; screenEventIndicators[34].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[34].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[35] = Helper.createEventIndicator(430, 76, true, true); screenEventIndicators[35].upperText = "EDS ABT A\nCD0135X"; screenEventIndicators[35].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[35].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW FIVE screenEventIndicators[36] = Helper.createEventIndicator(54, 98, true, true); screenEventIndicators[36].upperText = "FC 1\nLIMITS"; screenEventIndicators[36].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[36].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[37] = Helper.createEventIndicator(101, 98, true, true); screenEventIndicators[37].upperText = "CO2 CAL\n14.7-30"; screenEventIndicators[37].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[37].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[38] = Helper.createEventIndicator(148, 98, true, true); screenEventIndicators[38].upperText = "CSM G/A\n30KHZ"; screenEventIndicators[38].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[38].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[39] = Helper.createEventIndicator(195, 98, true, true); screenEventIndicators[39].upperText = "SCE +5\nCT0017V"; screenEventIndicators[39].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[39].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[40] = Helper.createEventIndicator(242, 98, true, true); screenEventIndicators[40].upperText = ""; screenEventIndicators[40].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[40].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[41] = Helper.createEventIndicator(289, 98, true, true); screenEventIndicators[41].upperText = "CSM SEP A\nCD0023X"; screenEventIndicators[41].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[41].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[42] = Helper.createEventIndicator(336, 98, true, true); screenEventIndicators[42].upperText = "MN DEP A\nCE0003X"; screenEventIndicators[42].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[42].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[43] = Helper.createEventIndicator(383, 98, true, true); screenEventIndicators[43].upperText = ""; screenEventIndicators[43].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[43].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[44] = Helper.createEventIndicator(430, 98, true, true); screenEventIndicators[44].upperText = "EDS ABT B\nCD0136X"; screenEventIndicators[44].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[44].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW SIX screenEventIndicators[45] = Helper.createEventIndicator(54, 120, true, true); screenEventIndicators[45].upperText = "FC 2\nLIMITS"; screenEventIndicators[45].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[45].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[46] = Helper.createEventIndicator(101, 120, true, true); screenEventIndicators[46].upperText = "CO2 CAL\n3.7-10"; screenEventIndicators[46].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[46].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[47] = Helper.createEventIndicator(148, 120, true, true); screenEventIndicators[47].upperText = "CSM A/G\n1.25MHZ"; screenEventIndicators[47].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[47].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[48] = Helper.createEventIndicator(195, 120, true, true); screenEventIndicators[48].upperText = "PCM INT\nCT0340X R"; screenEventIndicators[48].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[48].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[49] = Helper.createEventIndicator(242, 120, true, true); screenEventIndicators[49].upperText = ""; screenEventIndicators[49].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[49].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[50] = Helper.createEventIndicator(289, 120, true, true); screenEventIndicators[50].upperText = "CSM SEP B\nCD0024X"; screenEventIndicators[50].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[50].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[51] = Helper.createEventIndicator(336, 120, true, true); screenEventIndicators[51].upperText = "MN DEP B\nCE0004X"; screenEventIndicators[51].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[51].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[52] = Helper.createEventIndicator(383, 120, true, true); screenEventIndicators[52].upperText = ""; screenEventIndicators[52].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[52].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[53] = Helper.createEventIndicator(430, 120, true, true); screenEventIndicators[53].upperText = ""; screenEventIndicators[53].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[53].upperOnColor = EventIndicator.color.OFF; /// ROW SEVEN screenEventIndicators[54] = Helper.createEventIndicator(54, 142, true, true); screenEventIndicators[54].upperText = "FC 3\nLIMITS"; screenEventIndicators[54].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[54].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[55] = Helper.createEventIndicator(101, 142, true, true); screenEventIndicators[55].upperText = "FLO CAL\n60F-10"; screenEventIndicators[55].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[55].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[56] = Helper.createEventIndicator(148, 142, true, true); screenEventIndicators[56].upperText = "CSM PRN\nUPLINK"; screenEventIndicators[56].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[56].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[57] = Helper.createEventIndicator(195, 142, true, true); screenEventIndicators[57].upperText = ""; screenEventIndicators[57].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[57].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[58] = Helper.createEventIndicator(242, 142, true, true); screenEventIndicators[58].upperText = "RNG SEP A\nCD1154X"; screenEventIndicators[58].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[58].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[59] = Helper.createEventIndicator(289, 142, true, true); screenEventIndicators[59].upperText = "SLA SEP A\nCD0123X"; screenEventIndicators[59].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[59].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[60] = Helper.createEventIndicator(336, 142, true, true); screenEventIndicators[60].upperText = "MN DIS A\nCE0321X"; screenEventIndicators[60].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[60].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[61] = Helper.createEventIndicator(383, 142, true, true); screenEventIndicators[61].upperText = ""; screenEventIndicators[61].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[61].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[62] = Helper.createEventIndicator(430, 142, true, true); screenEventIndicators[62].upperText = "MC&W LTCH\nCS0150X R"; screenEventIndicators[62].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[62].upperOnColor = EventIndicator.color.GREEN_LIT; /// ROW EIGHT screenEventIndicators[63] = Helper.createEventIndicator(54, 164, true, true); screenEventIndicators[63].upperText = ""; screenEventIndicators[63].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[63].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[64] = Helper.createEventIndicator(101, 164, true, true); screenEventIndicators[64].upperText = "FLO CAL\n120F-30"; screenEventIndicators[64].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[64].upperOnColor = EventIndicator.color.BLUE_LIT; screenEventIndicators[65] = Helper.createEventIndicator(148, 164, true, true); screenEventIndicators[65].upperText = ""; screenEventIndicators[65].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[65].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[66] = Helper.createEventIndicator(195, 164, true, true); screenEventIndicators[66].upperText = ""; screenEventIndicators[66].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[66].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[67] = Helper.createEventIndicator(242, 164, true, true); screenEventIndicators[67].upperText = "RNG SEP B\nCD1155X"; screenEventIndicators[67].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[67].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[68] = Helper.createEventIndicator(289, 164, true, true); screenEventIndicators[68].upperText = "SLA SEP B\nCD0124X"; screenEventIndicators[68].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[68].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[69] = Helper.createEventIndicator(336, 164, true, true); screenEventIndicators[69].upperText = "MN DIS B\nCE0322X"; screenEventIndicators[69].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[69].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[70] = Helper.createEventIndicator(383, 164, true, true); screenEventIndicators[70].upperText = "PROBE T\nCS0220T"; screenEventIndicators[70].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[70].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[71] = Helper.createEventIndicator(430, 164, true, true); screenEventIndicators[71].upperText = "MC&W\nCS0150X R"; screenEventIndicators[71].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[71].upperOnColor = EventIndicator.color.GREEN_LIT; }
public override void makeElements() { for (int i = 0; i < 1; i++) { screenLabels.Add(null); // Initialize Labels } for (int i = 0; i < 15; i++) { screenButtons.Add(null); // Initialize Buttons } for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } for (int i = 0; i < 3; i++) { screenEventIndicators.Add(null); // Initialize EventIndicators } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix screenLabels[0] = Helper.CreateLabel(162, 50, 208, 29, "COMPUTER PHASE", true, true); screenLabels[0].type = CustomLabel.LabelType.ENGRAVED; screenButtons[0] = Helper.CreateButton(56, 112, 70, 56, "NO EVENT", true); screenButtons[0].buttonStyle = MocrButton.style.LIGHT; screenButtons[0].setLightColor(MocrButton.color.RED); screenButtons[0].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenEventIndicators[0] = Helper.createEventIndicator(126, 112, false, true); screenEventIndicators[0].upperText = "RTCC ON"; screenEventIndicators[0].lowerText = "LES ABORT"; screenEventIndicators[0].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[0].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[0].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[0].lowerOnColor = EventIndicator.color.GREEN_LIT; screenButtons[1] = Helper.CreateButton(196, 112, 70, 56, "EVENT", true); screenButtons[1].buttonStyle = MocrButton.style.LIGHT; screenButtons[1].setLightColor(MocrButton.color.AMBER); screenButtons[1].Click += (sender, e) => clickButton(sender, e, screenButtons[1]); screenButtons[2] = Helper.CreateButton(266, 112, 70, 56, "", true); screenButtons[2].buttonStyle = MocrButton.style.LIGHT; screenButtons[2].setLightColor(MocrButton.color.BLANK); screenButtons[2].Click += (sender, e) => clickButton(sender, e, screenButtons[2]); screenEventIndicators[1] = Helper.createEventIndicator(336, 112, false, true); screenEventIndicators[1].upperText = ""; screenEventIndicators[1].lowerText = ""; screenEventIndicators[1].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[1].upperOnColor = EventIndicator.color.OFF; screenEventIndicators[1].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[1].lowerOnColor = EventIndicator.color.OFF; screenButtons[3] = Helper.CreateButton(406, 112, 70, 56, "", true); screenButtons[3].buttonStyle = MocrButton.style.LIGHT; screenButtons[3].setLightColor(MocrButton.color.BLANK); screenButtons[3].Click += (sender, e) => clickButton(sender, e, screenButtons[2]); // ROW TWO screenButtons[4] = Helper.CreateButton(56, 168, 70, 56, "ABORT", true); screenButtons[4].buttonStyle = MocrButton.style.LIGHT; screenButtons[4].setLightColor(MocrButton.color.BLANK); screenButtons[4].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[5] = Helper.CreateButton(126, 168, 70, 56, "HOLD", true); screenButtons[5].buttonStyle = MocrButton.style.LIGHT; screenButtons[5].setLightColor(MocrButton.color.BLANK); screenButtons[5].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[6] = Helper.CreateButton(196, 168, 70, 56, "ORBIT", true); screenButtons[6].buttonStyle = MocrButton.style.LIGHT; screenButtons[6].setLightColor(MocrButton.color.BLANK); screenButtons[6].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[7] = Helper.CreateButton(266, 168, 70, 56, "ZERO LIFT", true); screenButtons[7].buttonStyle = MocrButton.style.LIGHT; screenButtons[7].setLightColor(MocrButton.color.BLANK); screenButtons[7].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[8] = Helper.CreateButton(336, 168, 70, 56, "HALF LIFT", true); screenButtons[8].buttonStyle = MocrButton.style.LIGHT; screenButtons[8].setLightColor(MocrButton.color.BLANK); screenButtons[8].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[9] = Helper.CreateButton(406, 168, 70, 56, "MAX LIFT", true); screenButtons[9].buttonStyle = MocrButton.style.LIGHT; screenButtons[9].setLightColor(MocrButton.color.BLANK); screenButtons[9].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); // ROW THREE screenButtons[10] = Helper.CreateButton(56, 224, 70, 56, "NO EVENT", true); screenButtons[10].buttonStyle = MocrButton.style.LIGHT; screenButtons[10].setLightColor(MocrButton.color.RED); screenButtons[10].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenEventIndicators[2] = Helper.createEventIndicator(126, 224, false, true); screenEventIndicators[2].upperText = "RTCC\nTHRUST ON"; screenEventIndicators[2].lowerText = "SPS\nIGNITION"; screenEventIndicators[2].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[2].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[2].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[2].lowerOnColor = EventIndicator.color.GREEN_LIT; screenButtons[11] = Helper.CreateButton(196, 224, 70, 56, "EVENT", true); screenButtons[11].buttonStyle = MocrButton.style.LIGHT; screenButtons[11].setLightColor(MocrButton.color.AMBER); screenButtons[11].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[12] = Helper.CreateButton(266, 224, 70, 56, "S-IVB ENG\nIGN", true); screenButtons[12].buttonStyle = MocrButton.style.LIGHT; screenButtons[12].setLightColor(MocrButton.color.GREEN); screenButtons[12].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[13] = Helper.CreateButton(336, 224, 70, 56, "SPS\nIGNITION", true); screenButtons[13].buttonStyle = MocrButton.style.LIGHT; screenButtons[13].setLightColor(MocrButton.color.GREEN); screenButtons[13].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenButtons[14] = Helper.CreateButton(406, 224, 70, 56, "LM\nIGNITION", true); screenButtons[14].buttonStyle = MocrButton.style.LIGHT; screenButtons[14].setLightColor(MocrButton.color.GREEN); screenButtons[14].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); screenScrews[0] = Helper.CreateScrew(4, 71, true); screenScrews[1] = Helper.CreateScrew(500, 71, true); screenScrews[2] = Helper.CreateScrew(4, 295, true); screenScrews[3] = Helper.CreateScrew(500, 295, true); }
public override void makeElements() { for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } for (int i = 0; i < 20; i++) { screenLabels.Add(null); // Initialize Labels } for (int i = 0; i < 60; i++) { screenButtons.Add(null); // Initialize Buttons } for (int i = 0; i < 40; i++) { screenDigits.Add(null); // Initialize Digits } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix screenLabels[0] = Helper.CreateLabel(39, 8, 454, 29, "MANEUVER NODE CONFIGURATION", true, true); screenLabels[0].type = CustomLabel.LabelType.ENGRAVED; string[] digits = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", " " }; string[] signs = new string[] { " ", "+", "-" }; // NODE SELECT screenLabels[1] = Helper.CreateLabel(64, 45, 50, 19, "┌NODE┐", true, true); screenDigits[0] = Helper.CreateConsoleDigit(80, 64, digits, true); screenDigits[0].setDigID(10); screenButtons[0] = Helper.CreateButton(78, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[0].Click += (sender, e) => nextNode(); screenButtons[1] = Helper.CreateButton(78, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[1].Click += (sender, e) => prevNode(); // MET screenLabels[2] = Helper.CreateLabel(233, 45, 235, 19, "┌───── MET OF NODE ──────┐", true, true); screenLabels[3] = Helper.CreateLabel(326, 80, 9, 19, ":", true, true); screenLabels[4] = Helper.CreateLabel(393, 80, 9, 19, ":", true, true); screenDigits[1] = Helper.CreateConsoleDigit(244, 64, digits, true); screenDigits[1].setDigID(10); screenDigits[2] = Helper.CreateConsoleDigit(271, 64, digits, true); screenDigits[2].setDigID(10); screenDigits[3] = Helper.CreateConsoleDigit(298, 64, digits, true); screenDigits[3].setDigID(10); screenDigits[4] = Helper.CreateConsoleDigit(338, 64, digits, true); screenDigits[4].setDigID(10); screenDigits[5] = Helper.CreateConsoleDigit(365, 64, digits, true); screenDigits[5].setDigID(10); screenDigits[6] = Helper.CreateConsoleDigit(405, 64, digits, true); screenDigits[6].setDigID(10); screenDigits[7] = Helper.CreateConsoleDigit(432, 64, digits, true); screenDigits[7].setDigID(10); screenButtons[2] = Helper.CreateButton(241, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[2].MouseDown += (sender, e) => changeMET(360000); screenButtons[3] = Helper.CreateButton(241, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[3].MouseDown += (sender, e) => changeMET(-360000); screenButtons[4] = Helper.CreateButton(268, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[4].MouseDown += (sender, e) => changeMET(36000); screenButtons[5] = Helper.CreateButton(268, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[5].MouseDown += (sender, e) => changeMET(-36000); screenButtons[6] = Helper.CreateButton(295, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[6].MouseDown += (sender, e) => changeMET(3600); screenButtons[7] = Helper.CreateButton(295, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[7].MouseDown += (sender, e) => changeMET(-3600); screenButtons[8] = Helper.CreateButton(335, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[8].MouseDown += (sender, e) => changeMET(600); screenButtons[9] = Helper.CreateButton(335, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[9].MouseDown += (sender, e) => changeMET(-600); screenButtons[10] = Helper.CreateButton(362, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[10].MouseDown += (sender, e) => changeMET(60); screenButtons[11] = Helper.CreateButton(362, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[11].MouseDown += (sender, e) => changeMET(-60); screenButtons[12] = Helper.CreateButton(402, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[12].MouseDown += (sender, e) => changeMET(10); screenButtons[13] = Helper.CreateButton(402, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[13].MouseDown += (sender, e) => changeMET(-10); screenButtons[14] = Helper.CreateButton(429, 102, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[14].MouseDown += (sender, e) => changeMET(1); screenButtons[15] = Helper.CreateButton(429, 129, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[15].MouseDown += (sender, e) => changeMET(-1); // PRO/RETRO screenLabels[5] = Helper.CreateLabel(64, 161, 200, 19, "┌──── PRO/RETRO ─────┐", true, true); screenLabels[6] = Helper.CreateLabel(214, 202, 9, 19, ".", true, true); screenDigits[8] = Helper.CreateConsoleDigit(78, 180, signs, true); screenDigits[8].setDigID(10); screenDigits[9] = Helper.CreateConsoleDigit(105, 180, digits, true); screenDigits[9].setDigID(10); screenDigits[10] = Helper.CreateConsoleDigit(132, 180, digits, true); screenDigits[10].setDigID(10); screenDigits[11] = Helper.CreateConsoleDigit(159, 180, digits, true); screenDigits[11].setDigID(10); screenDigits[12] = Helper.CreateConsoleDigit(186, 180, digits, true); screenDigits[12].setDigID(10); screenDigits[13] = Helper.CreateConsoleDigit(226, 180, digits, true); screenDigits[13].setDigID(10); screenButtons[16] = Helper.CreateButton(102, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[16].MouseDown += (sender, e) => changeV(1000, "PRO"); screenButtons[17] = Helper.CreateButton(102, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[17].MouseDown += (sender, e) => changeV(-1000, "PRO"); screenButtons[18] = Helper.CreateButton(129, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[18].MouseDown += (sender, e) => changeV(100, "PRO"); screenButtons[19] = Helper.CreateButton(129, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[19].MouseDown += (sender, e) => changeV(-100, "PRO"); screenButtons[20] = Helper.CreateButton(156, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[20].MouseDown += (sender, e) => changeV(10, "PRO"); screenButtons[21] = Helper.CreateButton(156, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[21].MouseDown += (sender, e) => changeV(-10, "PRO"); screenButtons[22] = Helper.CreateButton(183, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[22].MouseDown += (sender, e) => changeV(1, "PRO"); screenButtons[23] = Helper.CreateButton(183, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[23].MouseDown += (sender, e) => changeV(-1, "PRO"); screenButtons[24] = Helper.CreateButton(223, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[24].MouseDown += (sender, e) => changeV(0.1, "PRO"); screenButtons[25] = Helper.CreateButton(223, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[25].MouseDown += (sender, e) => changeV(-0.1, "PRO"); // RAD/ANTIRAD screenLabels[7] = Helper.CreateLabel(268, 161, 200, 19, "┌─── RAD/ANTIRAD ────┐", true, true); screenLabels[8] = Helper.CreateLabel(418, 202, 9, 19, ".", true, true); screenDigits[14] = Helper.CreateConsoleDigit(282, 180, signs, true); screenDigits[14].setDigID(10); screenDigits[15] = Helper.CreateConsoleDigit(309, 180, digits, true); screenDigits[15].setDigID(10); screenDigits[16] = Helper.CreateConsoleDigit(336, 180, digits, true); screenDigits[16].setDigID(10); screenDigits[17] = Helper.CreateConsoleDigit(363, 180, digits, true); screenDigits[17].setDigID(10); screenDigits[18] = Helper.CreateConsoleDigit(390, 180, digits, true); screenDigits[18].setDigID(10); screenDigits[19] = Helper.CreateConsoleDigit(430, 180, digits, true); screenDigits[19].setDigID(10); screenButtons[26] = Helper.CreateButton(306, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[26].MouseDown += (sender, e) => changeV(1000, "RAD"); screenButtons[27] = Helper.CreateButton(306, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[27].MouseDown += (sender, e) => changeV(-1000, "RAD"); screenButtons[28] = Helper.CreateButton(333, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[28].MouseDown += (sender, e) => changeV(100, "RAD"); screenButtons[29] = Helper.CreateButton(333, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[29].MouseDown += (sender, e) => changeV(-100, "RAD"); screenButtons[30] = Helper.CreateButton(360, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[30].MouseDown += (sender, e) => changeV(10, "RAD"); screenButtons[31] = Helper.CreateButton(360, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[31].MouseDown += (sender, e) => changeV(-10, "RAD"); screenButtons[32] = Helper.CreateButton(387, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[32].MouseDown += (sender, e) => changeV(1, "RAD"); screenButtons[33] = Helper.CreateButton(387, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[33].MouseDown += (sender, e) => changeV(-1, "RAD"); screenButtons[34] = Helper.CreateButton(427, 218, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[34].MouseDown += (sender, e) => changeV(0.1, "RAD"); screenButtons[35] = Helper.CreateButton(427, 245, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[35].MouseDown += (sender, e) => changeV(-0.1, "RAD"); // NORMAL/ANTINORM screenLabels[9] = Helper.CreateLabel(268, 276, 200, 19, "┌── NORN/ANTINORM ───┐", true, true); screenLabels[10] = Helper.CreateLabel(418, 317, 9, 19, ".", true, true); screenDigits[20] = Helper.CreateConsoleDigit(282, 295, signs, true); screenDigits[20].setDigID(10); screenDigits[21] = Helper.CreateConsoleDigit(309, 295, digits, true); screenDigits[21].setDigID(10); screenDigits[22] = Helper.CreateConsoleDigit(336, 295, digits, true); screenDigits[22].setDigID(10); screenDigits[23] = Helper.CreateConsoleDigit(363, 295, digits, true); screenDigits[23].setDigID(10); screenDigits[24] = Helper.CreateConsoleDigit(390, 295, digits, true); screenDigits[24].setDigID(10); screenDigits[25] = Helper.CreateConsoleDigit(430, 295, digits, true); screenDigits[25].setDigID(10); screenButtons[36] = Helper.CreateButton(306, 333, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[36].MouseDown += (sender, e) => changeV(1000, "NORM"); screenButtons[37] = Helper.CreateButton(306, 360, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[37].MouseDown += (sender, e) => changeV(-1000, "NORM"); screenButtons[38] = Helper.CreateButton(333, 333, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[38].MouseDown += (sender, e) => changeV(100, "NORM"); screenButtons[39] = Helper.CreateButton(333, 360, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[39].MouseDown += (sender, e) => changeV(-100, "NORM"); screenButtons[40] = Helper.CreateButton(360, 333, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[40].MouseDown += (sender, e) => changeV(10, "NORM"); screenButtons[41] = Helper.CreateButton(360, 360, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[41].MouseDown += (sender, e) => changeV(-10, "NORM"); screenButtons[42] = Helper.CreateButton(387, 333, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[42].MouseDown += (sender, e) => changeV(1, "NORM"); screenButtons[43] = Helper.CreateButton(387, 360, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[43].MouseDown += (sender, e) => changeV(-1, "NORM"); screenButtons[44] = Helper.CreateButton(427, 333, 28, 28, "+", true, MocrButton.style.TINY_PUSH); screenButtons[44].MouseDown += (sender, e) => changeV(0.1, "NORM"); screenButtons[45] = Helper.CreateButton(427, 360, 28, 28, "-", true, MocrButton.style.TINY_PUSH); screenButtons[45].MouseDown += (sender, e) => changeV(-0.1, "NORM"); // ADD/DELETE NODE screenButtons[50] = Helper.CreateButton(130, 65, 84, 38, "ADD NODE", true); screenButtons[50].buttonStyle = MocrButton.style.LIGHT; screenButtons[50].Click += (sender, e) => addNode(600); screenButtons[51] = Helper.CreateButton(130, 105, 84, 38, "REM NODE", true); screenButtons[51].buttonStyle = MocrButton.style.LIGHT; screenButtons[51].Click += (sender, e) => remNode(); // SELECT TARGET /* * string[] targets = getTargetList(true); * screenDigits[28] = Helper.CreateConsoleDigit(78, 333, targets, true); * screenDigits[28].setDigID(0); * screenButtons[50] = Helper.CreateButton(223, 333, 28, 28, "+", true, Helper.ButtonType.TINY_PUSH); * screenButtons[50].MouseDown += (sender, e) => changeTarget(1); * screenButtons[51] = Helper.CreateButton(223, 360, 28, 28, "-", true, Helper.ButtonType.TINY_PUSH); * screenButtons[51].MouseDown += (sender, e) => changeTarget(-1); * /**/ screenScrews[0] = Helper.CreateScrew(4, 71, true); screenScrews[1] = Helper.CreateScrew(500, 71, true); screenScrews[2] = Helper.CreateScrew(4, 295, true); screenScrews[3] = Helper.CreateScrew(500, 295, true); }
public override void makeElements() { for (int i = 0; i < 1; i++) { screenLabels.Add(null); // Initialize Labels } for (int i = 0; i < 20; i++) { screenIndicators.Add(null); // Initialize Buttons } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix //screenLabels[0] = Helper.CreateLabel(4, 0.25, 60, 1.5, "CONTROLLER STATUS"); //screenLabels[0].type = CustomLabel.LabelType.ENGRAVED; screenIndicators[0] = Helper.CreateIndicator(56, 14, 70, 56, "BOOSTER", true); screenIndicators[0].indStyle = Indicator.style.BORDER; screenIndicators[1] = Helper.CreateIndicator(126, 14, 70, 56, "RETRO", true); screenIndicators[1].indStyle = Indicator.style.BORDER; screenIndicators[2] = Helper.CreateIndicator(196, 14, 70, 56, "FIDO", true); screenIndicators[2].indStyle = Indicator.style.BORDER; screenIndicators[3] = Helper.CreateIndicator(266, 14, 70, 56, "GUIDO", true); screenIndicators[3].indStyle = Indicator.style.BORDER; screenIndicators[4] = Helper.CreateIndicator(336, 14, 70, 56, "", true); screenIndicators[4].indStyle = Indicator.style.BORDER; screenIndicators[5] = Helper.CreateIndicator(406, 14, 70, 56, "", true); screenIndicators[5].indStyle = Indicator.style.BORDER; screenIndicators[6] = Helper.CreateIndicator(56, 70, 70, 56, "SURGEON", true); screenIndicators[6].indStyle = Indicator.style.BORDER; screenIndicators[7] = Helper.CreateIndicator(126, 70, 70, 56, "CAPCOM", true); screenIndicators[7].indStyle = Indicator.style.BORDER; screenIndicators[8] = Helper.CreateIndicator(196, 70, 70, 56, "EECOM", true); screenIndicators[8].indStyle = Indicator.style.BORDER; screenIndicators[9] = Helper.CreateIndicator(266, 70, 70, 56, "GNC", true); screenIndicators[9].indStyle = Indicator.style.BORDER; screenIndicators[10] = Helper.CreateIndicator(336, 70, 70, 56, "TELMU", true); screenIndicators[10].indStyle = Indicator.style.BORDER; screenIndicators[11] = Helper.CreateIndicator(406, 70, 70, 56, "CONTROL", true); screenIndicators[11].indStyle = Indicator.style.BORDER; screenIndicators[12] = Helper.CreateIndicator(56, 126, 70, 56, "INCO", true); screenIndicators[12].indStyle = Indicator.style.BORDER; screenIndicators[13] = Helper.CreateIndicator(126, 126, 70, 56, "O&P", true); screenIndicators[13].indStyle = Indicator.style.BORDER; screenIndicators[14] = Helper.CreateIndicator(196, 126, 70, 56, "AFLIGHT", true); screenIndicators[14].indStyle = Indicator.style.BORDER; screenIndicators[15] = Helper.CreateIndicator(266, 126, 70, 56, "FAO", true); screenIndicators[15].indStyle = Indicator.style.BORDER; screenIndicators[16] = Helper.CreateIndicator(336, 126, 70, 56, "NETWORK", true); screenIndicators[16].indStyle = Indicator.style.BORDER; screenIndicators[17] = Helper.CreateIndicator(406, 126, 70, 56, "", true); screenIndicators[17].indStyle = Indicator.style.BORDER; screenScrews[0] = Helper.CreateScrew(4, 36, true); screenScrews[1] = Helper.CreateScrew(500, 36, true); screenScrews[2] = Helper.CreateScrew(4, 134, true); screenScrews[3] = Helper.CreateScrew(500, 134, true); form.dataStorage.Pull(); }
public override void makeElements() { for (int i = 0; i < 1; i++) { screenLabels.Add(null); // Initialize Labels } for (int i = 0; i < 3; i++) { screenButtons.Add(null); // Initialize Buttons } for (int i = 0; i < 4; i++) { screenScrews.Add(null); // Initialize Screws } for (int i = 0; i < 18; i++) { screenEventIndicators.Add(null); // Initialize EventIndicators } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } screenInputs[0] = Helper.CreateInput(-2, -2, 1, 2); // Every page must have an input to capture keypresses on Unix /* * screenLabels[0] = Helper.CreateLabel(3.5, 0.25, 27, 1.5, "EVENT"); * screenLabels[0].type = CustomLabel.LabelType.ENGRAVED; * * screenButtons[0] = Helper.CreateButton(3.5, 2, 9, 6, ""); * screenButtons[0].buttonStyle = MocrButton.style.LIGHT; * screenButtons[0].setLightColor(MocrButton.color.RED); * screenButtons[0].Click += (sender, e) => clickButton(sender, e, screenButtons[0]); * * screenButtons[1] = Helper.CreateButton(12.5, 2, 9, 6, ""); * screenButtons[1].buttonStyle = MocrButton.style.LIGHT; * screenButtons[1].setLightColor(MocrButton.color.AMBER); * screenButtons[1].Click += (sender, e) => clickButton(sender, e, screenButtons[1]); * * screenButtons[2] = Helper.CreateButton(21.5, 2, 9, 6, ""); * screenButtons[2].buttonStyle = MocrButton.style.LIGHT; * screenButtons[2].setLightColor(MocrButton.color.GREEN); * screenButtons[2].Click += (sender, e) => clickButton(sender, e, screenButtons[2]); */ // ROW ONE screenEventIndicators[0] = Helper.createEventIndicator(56, 14, false, true); screenEventIndicators[0].upperText = "PRELAUNCH"; screenEventIndicators[0].lowerText = "LAUNCH"; screenEventIndicators[0].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[0].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[0].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[0].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[1] = Helper.createEventIndicator(126, 14, false, true); screenEventIndicators[1].upperText = "COND\nLAUNCH"; screenEventIndicators[1].lowerText = "COND SIM\nLNCH"; screenEventIndicators[1].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[1].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[1].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[1].lowerOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[2] = Helper.createEventIndicator(196, 14, false, true); screenEventIndicators[2].upperText = "HIGH SPD\nORBIT"; screenEventIndicators[2].lowerText = "L.S ORBIT"; screenEventIndicators[2].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[2].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[2].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[2].lowerOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[3] = Helper.createEventIndicator(266, 14, false, true); screenEventIndicators[3].upperText = "LM\nDESCENT"; screenEventIndicators[3].lowerText = "LM\nASCENT"; screenEventIndicators[3].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[3].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[3].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[3].lowerOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[4] = Helper.createEventIndicator(336, 14, false, true); screenEventIndicators[4].upperText = "LUNAR\nSTAY"; screenEventIndicators[4].lowerText = "ENTRY"; screenEventIndicators[4].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[4].upperOnColor = EventIndicator.color.RED_LIT; screenEventIndicators[4].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[4].lowerOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[5] = Helper.createEventIndicator(406, 14, false, true); screenEventIndicators[5].upperText = "TRANS"; screenEventIndicators[5].lowerText = "LUNAR\nORBIT"; screenEventIndicators[5].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[5].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[5].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[5].lowerOnColor = EventIndicator.color.GREEN_LIT; /// ROW TWO screenEventIndicators[6] = Helper.createEventIndicator(56, 70, false, true); screenEventIndicators[6].upperText = "HI PRIOR\nLANDING"; screenEventIndicators[6].lowerText = "LOW PRIOR\nRESPONSE"; screenEventIndicators[6].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[6].upperOnColor = EventIndicator.color.GREEN_LIT; screenEventIndicators[6].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[6].lowerOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[7] = Helper.createEventIndicator(126, 70, false, true); screenEventIndicators[7].upperText = "ENTRY TRJ\nUPDATE"; screenEventIndicators[7].lowerText = "S/C SET\nENTRY UPD"; screenEventIndicators[7].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[7].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[7].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[7].lowerOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[8] = Helper.createEventIndicator(196, 70, false, true); screenEventIndicators[8].upperText = "CSM STA\nCONTACTS"; screenEventIndicators[8].lowerText = "LM STA\nCONTACTS"; screenEventIndicators[8].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[8].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[8].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[8].lowerOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[9] = Helper.createEventIndicator(266, 70, false, true); screenEventIndicators[9].upperText = "CSM DC"; screenEventIndicators[9].lowerText = "LM DC"; screenEventIndicators[9].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[9].upperOnColor = EventIndicator.color.AMBER_LIT; screenEventIndicators[9].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[9].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[10] = Helper.createEventIndicator(336, 70, false, true); screenEventIndicators[10].upperText = "CSM UPTD\nINCOM"; screenEventIndicators[10].lowerText = "LM UPTD\nINCOM"; screenEventIndicators[10].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[10].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[10].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[10].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[11] = Helper.createEventIndicator(406, 70, false, true); screenEventIndicators[11].upperText = "CSM TRAJ\nUPDATE"; screenEventIndicators[11].lowerText = "LM TRAJ\nUPDATE"; screenEventIndicators[11].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[11].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[11].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[11].lowerOnColor = EventIndicator.color.WHITE_LIT; /// ROW THREE screenEventIndicators[12] = Helper.createEventIndicator(56, 126, false, true); screenEventIndicators[12].upperText = "RNDZ\nPLANNING"; screenEventIndicators[12].lowerText = "TLI\nPLANNING"; screenEventIndicators[12].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[12].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[12].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[12].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[13] = Helper.createEventIndicator(126, 126, false, true); screenEventIndicators[13].upperText = "MIDCOURSE\nPLANNING"; screenEventIndicators[13].lowerText = "LOI\nPLANNING"; screenEventIndicators[13].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[13].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[13].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[13].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[14] = Helper.createEventIndicator(196, 126, false, true); screenEventIndicators[14].upperText = "RTE\nPLANNING"; screenEventIndicators[14].lowerText = "PRIME\nDEORBIT"; screenEventIndicators[14].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[14].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[14].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[14].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[15] = Helper.createEventIndicator(266, 126, false, true); screenEventIndicators[15].upperText = "CONT\nDEORBIT"; screenEventIndicators[15].lowerText = "MANUAL\nDEORBIT"; screenEventIndicators[15].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[15].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[15].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[15].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[16] = Helper.createEventIndicator(336, 126, false, true); screenEventIndicators[16].upperText = "VECTOR\nCOMP PROC"; screenEventIndicators[16].lowerText = "FDO SW'S\nLIVE"; screenEventIndicators[16].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[16].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[16].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[16].lowerOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[17] = Helper.createEventIndicator(406, 126, false, true); screenEventIndicators[17].upperText = "RESTART\nTAPE"; screenEventIndicators[17].lowerText = "RESIDUAL\nCOMP"; screenEventIndicators[17].upperOffColor = EventIndicator.color.OFF; screenEventIndicators[17].upperOnColor = EventIndicator.color.WHITE_LIT; screenEventIndicators[17].lowerOffColor = EventIndicator.color.OFF; screenEventIndicators[17].lowerOnColor = EventIndicator.color.AMBER_LIT; screenScrews[0] = Helper.CreateScrew(4, 36, true); screenScrews[1] = Helper.CreateScrew(500, 36, true); screenScrews[2] = Helper.CreateScrew(4, 134, true); screenScrews[3] = Helper.CreateScrew(500, 134, true); }