Exemplo n.º 1
0
    public override void OnEditorGUI(UEDS.Setting pSetting)
    {
        int val = (int)pSetting.GetValue();

        pSetting.SetValue(EditorGUILayout.IntField(
                              pSetting.mSettingName,
                              val));
    }
    public override void OnEditorGUI(UEDS.Setting pSetting)
    {
        string val = (string)pSetting.GetValue();

        pSetting.SetValue(EditorGUILayout.TextField(
                              pSetting.mSettingName,
                              val));
    }
Exemplo n.º 3
0
    public virtual void PreEditorGUI(UEDS.Setting pSetting)
    {
        renderedDirty = pSetting.isDirty;

        if (renderedDirty)
        {
            GUILayout.BeginHorizontal("TE NodeBoxSelected");
        }
        else
        {
            GUILayout.BeginHorizontal("TE NodeBox");
        }
    }
Exemplo n.º 4
0
    public virtual void RenderDescription(UEDS.Setting pSetting)
    {
        if (!mShowDescription)
        {
            return;
        }

        GUILayout.BeginVertical(UEDSStyles.infoGroup);

        if (pSetting.Description != null)
        {
            EditorGUILayout.HelpBox(pSetting.Description, MessageType.Info);
        }

        GUILayout.Label("Property Name: " + pSetting.mSettingName, EditorStyles.whiteMiniLabel);
        GUILayout.Label("Property Type: " + pSetting.mType.ToString(), EditorStyles.whiteMiniLabel);
        GUILayout.Label("Property ValueType: " + pSetting.mValueType.ToString(), EditorStyles.whiteMiniLabel);
        GUILayout.Label("Property Default Value: " + pSetting.GetDefault(pSetting.mValueType).ToString(), EditorStyles.whiteMiniLabel);

        GUILayout.EndVertical();
    }
 public override void OnEditorGUI(UEDS.Setting pSetting)
 {
     pSetting.SetValue(EditorGUILayout.ColorField(
                           pSetting.DisplayName,
                           (UnityEngine.Color)pSetting.GetValue()));
 }
Exemplo n.º 6
0
 public override void OnEditorGUI(UEDS.Setting pSetting)
 {
     pSetting.SetValue(EditorGUILayout.FloatField(
                           pSetting.mSettingName,
                           (float)pSetting.GetValue()));
 }
Exemplo n.º 7
0
 public abstract void OnEditorGUI(UEDS.Setting pSetting);
Exemplo n.º 8
0
 public virtual void PostEditorGUI(UEDS.Setting pSetting)
 {
     GUILayout.EndHorizontal();
 }