-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(new node): note nodes can now be added to graphs
Also includes an overhaul of dark and light mode theme displays. Some of the displays were completely broken due to changes to Unity's UI system
- Loading branch information
1 parent
09e8596
commit 45585fe
Showing
21 changed files
with
482 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Assets/com.fluid.dialogue/Editor/NodeEditors/NoteEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using CleverCrow.Fluid.Dialogues.Nodes; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Editors.NodeDisplays { | ||
[NodeType(typeof(NodeNoteData))] | ||
public class NoteEditor : NodeEditorBase { | ||
protected override Color NodeColor { get; } = Color.yellow; | ||
protected override float NodeWidth { get; } = 200; | ||
|
||
protected override void OnPrintBody (Event e) { | ||
serializedObject.Update(); | ||
EditorGUILayout.PropertyField(serializedObject.FindProperty("note"), GUIContent.none); | ||
serializedObject.ApplyModifiedProperties(); | ||
} | ||
|
||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Assets/com.fluid.dialogue/Editor/NodeEditors/NoteEditor.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
Assets/com.fluid.dialogue/Editor/Utilities/Texture2DExtensions.cs
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
Assets/com.fluid.dialogue/Editor/Utilities/Texture2DExtensions.cs.meta
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
using UnityEditor; | ||
|
||
namespace CleverCrow.Fluid.Dialogues.Editors { | ||
public static class ThemeUtility { | ||
public static bool IsDarkTheme => EditorGUIUtility.isProSkin; | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Assets/com.fluid.dialogue/Editor/Utilities/ThemeUtility.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.