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 < 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 < 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); }