mirror of
https://gitgud.io/AbstractConcept/rimworld-animation-studio.git
synced 2024-08-15 00:43:27 +00:00
23 lines
718 B
C#
23 lines
718 B
C#
using UnityEngine;
|
|
using UnityEngine.Timeline;
|
|
|
|
namespace UnityEditor.Timeline.Signals
|
|
{
|
|
[CustomTimelineEditor(typeof(SignalEmitter))]
|
|
class SignalEmitterEditor : MarkerEditor
|
|
{
|
|
static readonly string MissingAssetError = LocalizationDatabase.GetLocalizedString("No signal assigned");
|
|
|
|
public override MarkerDrawOptions GetMarkerOptions(IMarker marker)
|
|
{
|
|
var options = base.GetMarkerOptions(marker);
|
|
SignalEmitter emitter = (SignalEmitter)marker;
|
|
if (emitter.asset != null)
|
|
options.tooltip = emitter.asset.name;
|
|
else
|
|
options.errorText = MissingAssetError;
|
|
|
|
return options;
|
|
}
|
|
}
|
|
}
|