Skip to content

Commit

Permalink
feat: configure audio for dialogue interface
Browse files Browse the repository at this point in the history
  • Loading branch information
aarthificial committed Sep 27, 2023
1 parent 04e556c commit 1daec05
Show file tree
Hide file tree
Showing 32 changed files with 577 additions and 220 deletions.
8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueEnterEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueEnterEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueExitEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueExitEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueProceedEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueProceedEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueSelectOptionEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueSkipEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/DialogueSkipEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/InteractionEnterEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/InteractionEnterEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions Assets/Audio/Events/Dialogue/InteractionHoverEvent.asset

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Assets/Audio/Events/Dialogue/InteractionHoverEvent.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Editor/Utils/BackdropHandlePropertyDrawer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using UnityEditor;
using View;

namespace Editor.Utils {
[CustomPropertyDrawer(typeof(Backdrop.Handle))]
public class BackdropHandlePropertyDrawer : WrapperPropertyDrawer {
protected override string WrappedName => "_backdrop";
}
}
3 changes: 3 additions & 0 deletions Assets/Editor/Utils/BackdropHandlePropertyDrawer.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions Assets/Editor/Utils/FMODEventInstancePropertyDrawer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Audio;
using UnityEditor;

namespace Editor.Utils {
[CustomPropertyDrawer(typeof(FMODEventInstance))]
public class FMODEventInstancePropertyDrawer : WrapperPropertyDrawer {
protected override string WrappedName => nameof(FMODEventInstance.Event);
}
}
3 changes: 3 additions & 0 deletions Assets/Editor/Utils/FMODEventInstancePropertyDrawer.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions Assets/Editor/Utils/WrapperPropertyDrawer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using UnityEditor;
using UnityEngine;
using Utils;

namespace Editor.Utils {
public abstract class WrapperPropertyDrawer : PropertyDrawer {
protected virtual string WrappedName { get; }

public override void OnGUI(
Rect position,
SerializedProperty property,
GUIContent label
) {
var wrappedProperty = property.FindPropertyRelative(WrappedName);
EditorGUI.PropertyField(position, wrappedProperty, label, true);
}
}
}
3 changes: 3 additions & 0 deletions Assets/Editor/Utils/WrapperPropertyDrawer.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1daec05

Please sign in to comment.