public void OnLevelWasLoaded(int level)
 {
     if (addEventSystemIfNeeded)
     {
         UITools.RequireEventSystem();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Hide the main panel and all of the templates on start.
 /// </summary>
 public virtual void Start()
 {
     UITools.RequireEventSystem();
     Tools.SetGameObjectActive(mainPanel, false);
     Tools.SetGameObjectActive(abandonPopup, false);
     Tools.SetGameObjectActive(questGroupTemplate, false);
     Tools.SetGameObjectActive(questTemplate, false);
     SetStateButtonListeners();
     SetStateToggleButtons();
     if (DialogueDebug.LogWarnings)
     {
         if (mainPanel == null)
         {
             Debug.LogWarning(string.Format("{0}: {1} Main Panel is unassigned", new object[] { DialogueDebug.Prefix, name }));
         }
         if (questTable == null)
         {
             Debug.LogWarning(string.Format("{0}: {1} Quest Table is unassigned", new object[] { DialogueDebug.Prefix, name }));
         }
         if (useGroups && ((questTemplate == null || !questTemplate.ArePropertiesAssigned)))
         {
             Debug.LogWarning(string.Format("{0}: {1} Quest Group Template or one of its properties is unassigned", new object[] { DialogueDebug.Prefix, name }));
         }
         if (questTemplate == null || !questTemplate.ArePropertiesAssigned)
         {
             Debug.LogWarning(string.Format("{0}: {1} Quest Template or one of its properties is unassigned", new object[] { DialogueDebug.Prefix, name }));
         }
     }
 }
 public void OnSceneLoaded(UnityEngine.SceneManagement.Scene scene, UnityEngine.SceneManagement.LoadSceneMode mode)
 {
     if (addEventSystemIfNeeded)
     {
         UITools.RequireEventSystem();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Logs warnings if any critical controls are unassigned.
 /// </summary>
 private void FindControls()
 {
     UITools.RequireEventSystem();
     qteControls = new UnityUIQTEControls(qteIndicators);
     //dialogue.npcSubtitle.dialogueControls = dialogue;
     //dialogue.pcSubtitle.dialogueControls = dialogue;
     //dialogue.responseMenu.dialogueUI = this;
     if (DialogueDebug.LogErrors)
     {
         if (DialogueDebug.LogWarnings)
         {
             if (dialogue.npcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI NPC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.pcSubtitle.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI PC Subtitle Line needs to be assigned.", DialogueDebug.Prefix));
             }
             if (dialogue.responseMenu.buttons.Length == 0 && dialogue.responseMenu.buttonTemplate == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Response buttons need to be assigned.", DialogueDebug.Prefix));
             }
             if (alert.line == null)
             {
                 Debug.LogWarning(string.Format("{0}: UnityUIDialogueUI Alert Line needs to be assigned.", DialogueDebug.Prefix));
             }
         }
     }
 }
Esempio n. 5
0
 public override void Awake()
 {
     m_isAwake = true;
     base.Awake();
     UITools.RequireEventSystem();
     InitializeTemplates();
 }
 public override void Awake()
 {
     base.Awake();
     UITools.RequireEventSystem();
     selectionPanelContentManager = new StandardUIInstancedContentManager();
     detailsPanelContentManager   = new StandardUIInstancedContentManager();
     InitializeTemplates();
 }
 public override void Awake()
 {
     m_isAwake = true;
     base.Awake();
     if (addEventSystemIfNeeded)
     {
         UITools.RequireEventSystem();
     }
     InitializeTemplates();
 }
Esempio n. 8
0
 private void VerifyAssignments()
 {
     UITools.RequireEventSystem();
     if (DialogueDebug.logWarnings)
     {
         if (alertUIElements.alertText.gameObject == null)
         {
             Debug.LogWarning("Dialogue System: No UI text element is assigned to Standard Dialogue UI's Alert UI Elements.", this);
         }
         if (conversationUIElements.subtitlePanels.Length == 0)
         {
             Debug.LogWarning("Dialogue System: No subtitle panels are assigned to Standard Dialogue UI.", this);
         }
         if (conversationUIElements.menuPanels.Length == 0)
         {
             Debug.LogWarning("Dialogue System: No response menu panels are assigned to Standard Dialogue UI.", this);
         }
     }
 }
Esempio n. 9
0
 public void OnLevelWasLoaded(int level)
 {
     UITools.RequireEventSystem();
 }