/// <summary> /// Adds panel footer controls (pack name textfield and buttons). /// </summary> /// <param name="yPos">Reference Y position</param> protected void PanelFooter(float yPos) { // Additional space before name textfield. float currentY = yPos + RowHeight; // Pack name textfield. PackNameField = UIControls.BigTextField(panel, 140f, currentY); PackNameField.isEnabled = false; UILabel packNameLabel = UIControls.AddLabel(PackNameField, -100f, (PackNameField.height - 18f) / 2, Translations.Translate("RPR_OPT_EDT_NAM")); // Space for buttons. currentY += 50f; // 'Add new' button. UIButton addNewButton = UIControls.AddButton(panel, 20f, currentY, Translations.Translate("RPR_OPT_NEW")); addNewButton.eventClicked += AddPack; // Save pack button. saveButton = UIControls.AddButton(panel, 250f, currentY, Translations.Translate("RPR_OPT_SAA")); saveButton.eventClicked += Save; // Delete pack button. deleteButton = UIControls.AddButton(panel, 480f, currentY, Translations.Translate("RPR_OPT_DEL")); deleteButton.eventClicked += DeletePack; }