Skip to content

Commit 622c2a4

Browse files
committed
Major refactor of parser, improved documentation, added partial support for actions.
1 parent 23ab8c6 commit 622c2a4

File tree

73 files changed

+805
-942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+805
-942
lines changed

Editor/TextEffectEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BP.TextMotionPro;
1+
using BP.TextMotion;
22
using UnityEditor;
33

44
namespace BP.TextMotionProEditor

Editor/TextEffectsProfileEditor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using BP.TextMotionPro;
1+
using BP.TextMotion;
22
using System;
33
using System.Collections.Generic;
44
using System.Linq;

Editor/TextMotionRendererEditor.cs renamed to Editor/TextMotionProEditor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using BP.TextMotionPro;
1+
using BP.TextMotion;
22
using UnityEditor;
33
using UnityEngine;
44
using UnityEngine.UIElements;
55

66
namespace BP.TextMotionEditor
77
{
8-
[CustomEditor(typeof(TextMotionRenderer)), CanEditMultipleObjects]
9-
public class TextMotionRendererEditor : Editor
8+
[CustomEditor(typeof(TextMotionPro)), CanEditMultipleObjects]
9+
public class TextMotionProEditor : Editor
1010
{
1111
[SerializeField] private VisualTreeAsset treeAsset;
1212
public override VisualElement CreateInspectorGUI()
File renamed without changes.

Editor/UXML_EffectEntry.uxml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
22
<engine:VisualElement name="effect-element" style="flex-grow: 1; margin-bottom: 5px;">
3-
<editor:Toolbar style="border-top-width: 1px;">
3+
<editor:Toolbar style="border-top-width: 1px; border-bottom-width: 0; background-color: rgba(255, 255, 255, 0.05); align-items: center; justify-content: space-between;">
44
<engine:Label text="Wave Effect" name="label" style="justify-content: flex-start; align-self: auto; -unity-text-align: middle-left;" />
5-
<editor:ToolbarSpacer style="flex-grow: 1;" />
6-
<editor:ToolbarButton text="⋮" name="options-button" style="font-size: 23px; border-right-width: 0; border-left-width: 0;" />
5+
<editor:ToolbarButton text="⋮" name="options-button" style="font-size: 23px; border-right-width: 0; border-left-width: 0; background-color: rgba(60, 60, 60, 0);" />
76
</editor:Toolbar>
7+
<editor:ToolbarSpacer style="flex-grow: 1;" />
88
<engine:GroupBox name="content" style="margin-top: 0;" />
99
</engine:VisualElement>
1010
</engine:UXML>

Editor/UXML_MotionAsset.uxml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<engine:Template name="UXML_EffectEntry" src="project://database/Assets/TextMotion%20Pro/Editor/UXML_EffectEntry.uxml?fileID=9197481963319205126&amp;guid=93f36a28fa20e7c47b7fddaffe2c77bc&amp;type=3#UXML_EffectEntry" />
33
<Style src="project://database/Assets/TextMotion%20Pro/Editor/USS_MotionAsset.uss?fileID=7433441132597879392&amp;guid=78f264ab9f905c54baea00c777d4582a&amp;type=3#USS_MotionAsset" />
44
<engine:VisualElement style="flex-grow: 1; margin-right: -6px; margin-left: -14px;">
5-
<engine:Label text="Motion Asset" style="-unity-text-align: upper-center; -unity-font-style: bold; font-size: 16px;" />
65
<engine:VisualElement name="effects-list" style="flex-grow: 1;">
76
<engine:Instance template="UXML_EffectEntry" name="UXML_EffectEntry" />
87
</engine:VisualElement>

Editor/UXML_TextMotion Pro.uxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
2-
<editor:ObjectField label="Profile" binding-path="effectsProfile" />
2+
<editor:ObjectField label="Profile" binding-path="effectsProfile" type="BP.TextMotion.MotionProfile, BP.TextMotion" />
3+
<engine:Toggle label="Run in Editor" binding-path="runInEditor" />
34
<engine:Slider label="Frame Rate" value="42" high-value="100" show-input-field="true" binding-path="frameRate" />
45
<engine:Vector2IntField label="Visibility" binding-path="visibilityRange" />
5-
<engine:Toggle label="Run in Editor" />
66
</engine:UXML>

Examples/NewMotionProfile.asset

Lines changed: 0 additions & 91 deletions
This file was deleted.

Examples/Wave.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)