示例#1
0
 internal void ClearData()
 {
     if (songDescription)
     {
         songDescription.SetText("");
     }
 }
 public void SetDetails(AdvancedPost post)
 {
     titleText.text = post.Title;
     image.texture  = post.Texture;
     scrollView.SetText(post.Description);
     scrollView.SetText("Placeholder");
     scrollView.SetText(post.Description);
 }
 public void OnNoteWasChanged(CustomNote customNote)
 {
     if (string.IsNullOrWhiteSpace(customNote.ErrorMessage))
     {
         noteDescription.SetText($"{customNote.Descriptor.NoteName}:\n\n{Utils.SafeUnescape(customNote.Descriptor.Description)}");
     }
     else
     {
         noteDescription.SetText(string.Empty);
     }
 }
        public void OnNoteWasChanged(CustomNote customNote)
        {
            if (string.IsNullOrWhiteSpace(customNote.ErrorMessage))
            {
                noteDescription.SetText($"{customNote.Descriptor.NoteName}:\n\n{Utils.SafeUnescape(customNote.Descriptor.Description)}");
            }
            else
            {
                noteDescription.SetText(string.Empty);
            }

            NotifyPropertyChanged(nameof(modEnabled));
            NotifyPropertyChanged(nameof(noteSize));
            NotifyPropertyChanged(nameof(hmdOnly));
            NotifyPropertyChanged(nameof(autoDisable));
        }
        public void OnNoteWasChanged(CustomNote customNote)
        {
            if (string.IsNullOrWhiteSpace(customNote.ErrorMessage))
            {
                noteDescription.SetText($"{customNote.Descriptor.NoteName}:\n\n{Utils.SafeUnescape(customNote.Descriptor.Description)}");
            }
            else
            {
                noteDescription.SetText(string.Empty);
            }

            if (sizeSlider != null)
            {
                sizeSlider.ReceiveValue();
            }
            if (hmdCheckbox != null)
            {
                hmdCheckbox.ReceiveValue();
            }
        }
示例#6
0
 public void OnNoteWasChanged(CustomNote customNote)
 {
     if (!string.IsNullOrWhiteSpace(customNote.ErrorMessage))
     {
         errorDescription.gameObject.SetActive(true);
         errorDescription.SetText($"{customNote.Descriptor?.NoteName}:\n\n{Utils.SafeUnescape(customNote.ErrorMessage)}");
     }
     else
     {
         errorDescription.gameObject.SetActive(false);
     }
 }
示例#7
0
 public void OnMaterialWasChanged(CustomMaterial customMaterial)
 {
     if (!string.IsNullOrWhiteSpace(customMaterial?.ErrorMessage))
     {
         errorDescription.gameObject.SetActive(true);
         errorDescription.SetText($"{customMaterial.Descriptor?.MaterialName}:\n\n{Utils.SafeUnescape(customMaterial.ErrorMessage)}");
     }
     else
     {
         errorDescription.gameObject.SetActive(false);
     }
 }
 public void OnSaberWasChanged(CustomSaberData customSaber)
 {
     if (!string.IsNullOrWhiteSpace(customSaber?.ErrorMessage))
     {
         errorDescription.gameObject.SetActive(true);
         errorDescription.SetText($"{customSaber.Descriptor?.SaberName}:\n\n{Utils.SafeUnescape(customSaber.ErrorMessage)}");
     }
     else
     {
         errorDescription.gameObject.SetActive(false);
     }
 }
示例#9
0
 public void SetDetails(Post post)
 {
     titleText.text = post.title;
     image.texture  = post.texture;
     scrollView.SetText(post.content);
 }
 void OnEnable()
 {
     scrollView?.SetText(scrollView.GetPrivateField <TextMeshProUGUI>("_text").text);
 }
 void OnEnable()
 {
     scrollView?.SetText(scrollView.GetField <TextMeshProUGUI, TextPageScrollView>("_text").text);
     scrollView?.RefreshButtons();
 }
示例#12
0
 /// <summary>
 /// Sets the panel directly via message
 /// </summary>
 /// <param name="message">Message to be shown</param>
 public static void SetPanelDirectly(string message, string key = null)
 {
     currentKey     = key;
     currentMessage = message;
     textPageScrollView.SetText(message);
 }