private void Start() { // Get References ui_manager = FindObjectOfType <UIManager>(); // Set Windowskin and Text Color panel.sprite = ui_manager.GetCurrentMessageSkin(); text_field.color = ui_manager.GetBestTextColor(panel); // Initialize View Settings text_field_width = text_field.rectTransform.rect.width; message = text_field.text; pause_arrow.enabled = false; text_field.text = null; // Divide Message message_lines = BreakUpMessage(); num_lines = message_lines.Length; num_lines_written = 0; // Ready for Interaction speed = Constants.TEXT_SPEEDS[(int)ui_manager.text_speed]; awaiting_action = false; writing = false; on_final_line = false; finished = false; }
private void Start() { // Get References ui_manager = FindObjectOfType <UIManager>(); // Get Current Options Settings options = new Options(); options.text_speed = ui_manager.text_speed; // TODO get other current option settings options.menu_frame = ui_manager.menu_frame; options.message_frame = ui_manager.message_frame; // Set Windowskin and Text Color title_panel.sprite = ui_manager.GetCurrentMenuSkin(); title_text_field.color = ui_manager.GetBestTextColor(title_panel); options_panel.sprite = ui_manager.GetCurrentMenuSkin(); options_text_field.color = ui_manager.GetBestTextColor(options_panel); options_selection_text_field.color = ui_manager.GetBestTextColor(options_panel); message_panel.sprite = ui_manager.GetCurrentMessageSkin(); message_text_field.color = ui_manager.GetBestTextColor(message_panel); // Build Menu num_options = MENU_OPTIONS.Length; current_selection = 0; BuildMenuText(); message_text_field.text = GetMessageText(current_selection); setting_changed = false; awaiting_input = true; }