void SelectNextSettings() { FeedbackManager.SendFeedback("event.MenuUpAndDown", this); if (selectedSettingIndex + 1 < settingsParentScript.availableSettingsToOrganize.Count) { selectedSettingIndex++; selectedSetting = settingsParentScript.SelectSetting(selectedSettingIndex); SetDescriptionTexts(selectedSetting); } }
void ChangeCategory(int _plusOrMinus) { int i_addition = 0; if (_plusOrMinus != 0) { i_addition = (int)Mathf.Sign(_plusOrMinus); } if (selectedCategoryIndex + i_addition >= 0 && selectedCategoryIndex + i_addition < menuCategories.Count) { FeedbackManager.SendFeedback("event.SwitchSettingsPage", this); selectedCategoryIndex += i_addition; settingsParentScript = menuCategories[selectedCategoryIndex].GetComponent <SettingsMenuOrganizer>(); DisplayCategory(); selectedSettingIndex = 0; selectedSetting = settingsParentScript.SelectSetting(selectedSettingIndex); // Always reset to the first setting of the new category SetDescriptionTexts(selectedSetting); } else { FeedbackManager.SendFeedback("event.MenuImpossibleAction", this); } if (selectedCategoryIndex > 0) { LBImage.SetAlpha(1); } else { LBImage.SetAlpha(unselectedCategoryTitleOpacity); } if (selectedCategoryIndex >= menuCategories.Count - 1) { RBImage.SetAlpha(unselectedCategoryTitleOpacity); } else { RBImage.SetAlpha(1); } }