private void ChangeSelectionLeft(int index) { if (MENU_OPTIONS[index].Length > 2) { switch (index) { case 0: // Text Speed if (options.text_speed != TextSpeeds.Slow) { options.text_speed -= 1; } break; case 1: // Battle Effects if (options.battle_effect != BattleEffects.On) { options.battle_effect -= 1; } break; case 2: // Battle Style if (options.battle_style != BattleStyles.Switch) { options.battle_style -= 1; } break; default: break; } } else { if (index == MESSAGE_FRAME_OPTION_INDEX) { if (options.message_frame == 0) { options.message_frame = (MessageFrames)(Enum.GetValues(typeof(MessageFrames)).Length - 1); } else { options.message_frame -= 1; } message_panel.sprite = ui_manager.GetMessageSkin(options.message_frame); message_text_field.color = ui_manager.GetBestTextColor(message_panel); } else if (index == MENU_FRAME_OPTION_INDEX) { if (options.menu_frame == 0) { options.menu_frame = (MenuFrames)(Enum.GetValues(typeof(MenuFrames)).Length - 1); } else { options.menu_frame -= 1; } title_panel.sprite = ui_manager.GetMenuSkin(options.menu_frame); title_text_field.color = ui_manager.GetBestTextColor(title_panel); options_panel.sprite = ui_manager.GetMenuSkin(options.menu_frame); options_text_field.color = ui_manager.GetBestTextColor(options_panel); options_selection_text_field.color = ui_manager.GetBestTextColor(options_panel); } } BuildMenuText(); }