public override void makeElements() { for (int i = 0; i < 1; i++) { screenMaps.Add(null); // Initialize Map } for (int i = 0; i < 1; i++) { screenInputs.Add(null); // Initialize Inputs } for (int i = 0; i < 70; i++) { screenIndicators.Add(null); // Initialize Indicators } for (int i = 0; i < 80; i++) { screenButtons.Add(null); // Initialize Buttons } for (int i = 0; i < 1; i++) { screenLabels.Add(null); // Initialize Labels } screenInputs[0] = Helper.CreateInput(7, 29, 6, 1, HorizontalAlignment.Right); // Every page must have an input to capture keypresses on Unix screenInputs[0].Text = taillength.ToString(); screenInputs[0].TextChanged += (sender, e) => updateTailLength(sender, e); screenLabels[0] = Helper.CreateLabel(7, 28, 6, 1, "LENGTH"); screenMaps[0] = Helper.CreateMap(0, 0, 120, 28); screenMaps[0].bodyName = "Kerbin"; screenButtons[0] = Helper.CreateButton(1, 29, 5, 1, "TAIL"); screenButtons[0].Font = form.buttonFont; screenButtons[0].Click += (sender, e) => this.toggleTail(sender, e); screenButtons[1] = Helper.CreateButton(14, 29, 5, 1, "FADE"); screenButtons[1].Font = form.buttonFont; screenButtons[1].Click += (sender, e) => this.toggleFade(sender, e); screenIndicators[0] = Helper.CreateIndicator(1, 28, 5, 1, ""); screenIndicators[1] = Helper.CreateIndicator(14, 28, 5, 1, ""); }