Skip to content

Commit 1d97adf

Browse files
Comments, renames, AddComponent paths
1 parent 6c13179 commit 1d97adf

16 files changed

+32
-7
lines changed

Editor/Inspector/MpfEventSoundInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace VisualPinball.Engine.Mpf.Unity.Editor
1919
{
20-
[CustomEditor(typeof(MpfEventSound)), CanEditMultipleObjects]
20+
[CustomEditor(typeof(EventSound)), CanEditMultipleObjects]
2121
public class MpfEventSoundInspector : SoundComponentInspector
2222
{
2323
[SerializeField]

Editor/Inspector/MpfModeSoundInspector.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
namespace VisualPinball.Engine.Mpf.Unity.Editor
1919
{
20-
[CustomEditor(typeof(MpfModeSound)), CanEditMultipleObjects]
20+
[CustomEditor(typeof(ModeSound)), CanEditMultipleObjects]
2121
public class MpfModeSoundInspector : BinaryEventSoundInspector
2222
{
2323
[SerializeField]

Runtime/MediaController/Messages/Trigger/MpfEventListener.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414

1515
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Messages.Trigger
1616
{
17+
/// <summary>
18+
/// Provides an event handler for arbitrary MPF events
19+
/// </summary>
1720
public class MpfEventListener : IDisposable
1821
{
19-
[SerializeField]
2022
private string _eventName;
2123

2224
private BcpInterface _bcpInterface;

Runtime/MediaController/Sound/MpfEventSound.cs renamed to Runtime/MediaController/Sound/EventSound.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Sound
1818
{
19-
[AddComponentMenu("Visual Pinball/Sound/Mpf Event Sound")]
20-
public class MpfEventSound : EventSoundComponent<MpfEventListener, EventArgs>
19+
[AddComponentMenu("Pinball/Sound/MPF Event Sound")]
20+
public class EventSound : EventSoundComponent<MpfEventListener, EventArgs>
2121
{
2222
[SerializeField]
2323
private string _eventName;
File renamed without changes.

Runtime/MediaController/Sound/MpfModeSound.cs renamed to Runtime/MediaController/Sound/ModeSound.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Sound
1717
{
18-
[AddComponentMenu("Visual Pinball/Sound/Mpf Mode Sound")]
19-
public class MpfModeSound : BinaryEventSoundComponent<ModeMonitor, bool>
18+
[AddComponentMenu("Pinball/Sound/MPF Mode Sound")]
19+
public class ModeSound : BinaryEventSoundComponent<ModeMonitor, bool>
2020
{
2121
[SerializeField]
2222
private string _modeName;
File renamed without changes.

Runtime/MediaController/Text/CurrentPlayerText.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1010
// SOFTWARE.
1111

12+
using UnityEngine;
1213
using VisualPinball.Engine.Mpf.Unity.MediaController.Messages;
1314
using VisualPinball.Engine.Mpf.Unity.MediaController.Messages.PlayerTurnStart;
1415

1516
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Text
1617
{
18+
[AddComponentMenu("Pinball/MPF Media Controller/MPF Current Player Text")]
1719
public class CurrentPlayerText : MonitoredVariableText<int, PlayerTurnStartMessage>
1820
{
1921
protected override MonitorBase<int, PlayerTurnStartMessage> CreateMonitor(

Runtime/MediaController/Text/MachineVariable/FloatMachineVariableText.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1010
// SOFTWARE.
1111

12+
using UnityEngine;
13+
1214
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Text
1315
{
16+
[AddComponentMenu("Pinball/MPF Media Controller/MPF Machine Variable Text (Float)")]
1417
public class FloatMachineVariableText : MachineVariableText<float> { }
1518
}

Runtime/MediaController/Text/MachineVariable/IntMachineVariableText.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1010
// SOFTWARE.
1111

12+
using UnityEngine;
13+
1214
namespace VisualPinball.Engine.Mpf.Unity.MediaController.Text
1315
{
16+
[AddComponentMenu("Pinball/MPF Media Controller/MPF Machine Variable Text (Int)")]
1417
public class IntMachineVariableText : MachineVariableText<int> { }
1518
}

0 commit comments

Comments
 (0)