Styles.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using UnityEngine;
  2. namespace UnityEditor.Timeline.Signals
  3. {
  4. static class Styles
  5. {
  6. public static readonly GUIContent RetroactiveLabel = EditorGUIUtility.TrTextContent("Retroactive", "Use retroactive to emit this signal even if playback starts afterwards.");
  7. public static readonly GUIContent EmitOnceLabel = EditorGUIUtility.TrTextContent("Emit Once", "Emit the signal once during loops.");
  8. public static readonly GUIContent EmitSignalLabel = EditorGUIUtility.TrTextContent("Emit Signal", "Select which Signal Asset to emit.");
  9. public static readonly GUIContent ObjectLabel = EditorGUIUtility.TrTextContent("Receiver Component on", "The Signal Receiver Component on the bound GameObject.");
  10. public static readonly GUIContent CreateNewSignal = EditorGUIUtility.TrTextContent("Create Signal…");
  11. public static readonly GUIContent AddSignalReceiverComponent = EditorGUIUtility.TrTextContent("Add Signal Receiver", "Creates a Signal Receiver component on the track binding and the reaction for the current signal.");
  12. public static readonly GUIContent EmptySignalList = EditorGUIUtility.TrTextContent("None");
  13. public static readonly GUIContent AddReactionButton = EditorGUIUtility.TrTextContent("Add Reaction");
  14. public static readonly GUIContent NewSignalWindowTitle = EditorGUIUtility.TrTextContent("Create Signal Key");
  15. public static readonly GUIContent NewSignalDefaultName = EditorGUIUtility.TrTextContent("New Signal");
  16. public static readonly GUIContent NewSignalWindowMessage = EditorGUIUtility.TrTextContent("Create Signal Key");
  17. public static readonly string SignalListDuplicateOption = L10n.Tr("Duplicate");
  18. public static readonly string SignalListDeleteOption = L10n.Tr("Delete");
  19. public static readonly string NoBoundGO = L10n.Tr("Track has no bound GameObject.");
  20. public static readonly string MultiEditNotSupportedOnDifferentBindings = L10n.Tr("Multi-edit not supported for SignalReceivers on tracks bound to different GameObjects.");
  21. public static readonly string MultiEditNotSupportedOnDifferentSignals = L10n.Tr("Multi-edit not supported for SignalReceivers when SignalEmitters use different Signals.");
  22. public static readonly string UndoCreateSignalAsset = L10n.Tr("Create New Signal Asset");
  23. public static readonly string UndoAddReaction = L10n.Tr("Add Signal Receiver Reaction");
  24. public static readonly string NoReaction = L10n.Tr("No reaction for {0} has been defined in this receiver");
  25. public static readonly string NoSignalReceiverComponent = L10n.Tr("There is no Signal Receiver component on {0}");
  26. public static readonly string ProjectHasNoSignalAsset = L10n.Tr("Your project contains no Signal assets");
  27. //Icons
  28. public static readonly GUIStyle OptionsStyle = DirectorStyles.GetGUIStyle("Icon.Options");
  29. public static readonly GUIContent SignalEmitterIcon = EditorGUIUtility.IconContent("SignalEmitter Icon");
  30. }
  31. }