예제 #1
0
 void OnHelpModeEntryChanged(SetHelpModeIDAction.HelpModeEntryID newData)
 {
     if (newData == SetHelpModeIDAction.HelpModeEntryID.None)
     {
         m_ProjectListButton.selected = false;
     }
 }
예제 #2
0
 void OnHelpModeEntryChanged(SetHelpModeIDAction.HelpModeEntryID newData)
 {
     if (newData == SetHelpModeIDAction.HelpModeEntryID.None)
     {
         m_MeasureToolButton.selected = false;
     }
 }
 void OnHelpModeEntryChanged(SetHelpModeIDAction.HelpModeEntryID id)
 {
     if (id != SetHelpModeIDAction.HelpModeEntryID.None)
     {
         m_DeltaDnaRequest.TrackButtonEvent(m_DeltaDnaRequest.userId, $"HelpMode_{id.ToString()}");
     }
 }
예제 #4
0
 void OnHelpModeEntryChanged(SetHelpModeIDAction.HelpModeEntryID data)
 {
     if (m_DialogModeSelector.GetValue() == SetDialogModeAction.DialogMode.Help)
     {
         Display(data);
     }
 }
예제 #5
0
        public static bool SetHelpID(SetHelpModeIDAction.HelpModeEntryID entryId)
        {
            if (s_Instance.m_DialogModeSelector.GetValue() == SetDialogModeAction.DialogMode.Help)
            {
                Dispatcher.Dispatch(SetDeltaDNAButtonAction.From($"HelpMode_{entryId.ToString()}"));
                Dispatcher.Dispatch(SetHelpModeIDAction.From(entryId));
                return(true);
            }

            return(false);
        }
예제 #6
0
 public void Display(SetHelpModeIDAction.HelpModeEntryID helpModeId)
 {
     Assert.IsNotNull(m_Data.entries);
     if (helpModeId == SetHelpModeIDAction.HelpModeEntryID.None)
     {
         return;
     }
     foreach (var entry in m_Data.entries)
     {
         if (entry.helpModeEntryId == helpModeId)
         {
             DisplayEntry(entry, false);
             return;
         }
     }
     Debug.LogError($"Could not find help dialog data corresponding to id [{helpModeId}]");
 }