diff --git a/src/Titano.App/Editor/CameraTab.cs b/src/Titano.App/Editor/CameraTab.cs index b964b43a..b346e4ca 100644 --- a/src/Titano.App/Editor/CameraTab.cs +++ b/src/Titano.App/Editor/CameraTab.cs @@ -106,6 +106,9 @@ public sealed class CameraTab : EditorTab public string AddKeyToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : Keys.Any(k => k.Frame == Editor.CurrentIndex) ? "Tooltips.Editor.Camera.KeyExists" : "Tooltips.Editor.Camera.AddKey"); + /// How to edit the keyframe curve, or why it waits. + public string CurveToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : "Tooltips.Editor.Camera.Curve"); + public string RemoveKeyToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : HasSelectedKey ? "Tooltips.Editor.Camera.RemoveKey" : "Tooltips.Editor.Camera.NoKey"); /// Run by the curve editor after each finished edit. @@ -153,6 +156,7 @@ public sealed class CameraTab : EditorTab base.OnBusyChanged(); OnPropertyChanged(nameof(AddKeyToolTip)); OnPropertyChanged(nameof(RemoveKeyToolTip)); + OnPropertyChanged(nameof(CurveToolTip)); } /// A margin of the free crop (); all zero = the whole frame. @@ -243,6 +247,9 @@ public sealed class TimeTab : EditorTab /// Run by the curve editor after each finished edit. public ICommand CommitCurveCommand { get; } + /// How to edit the remap curve, or why it waits. + public string CurveToolTip => Loc.L(Editor.IsBusy ? "Tooltips.Editor.Busy" : "Tooltips.Editor.Time.Curve"); + /// "3,600 frames → 2 min 30 s · 24 fps". public string? PlanText { get => _planText; private set => Set(ref _planText, value); } @@ -315,6 +322,12 @@ public sealed class TimeTab : EditorTab public override void OnCurrentFrameChanged() => OnPropertyChanged(nameof(Playhead)); + public override void OnBusyChanged() + { + base.OnBusyChanged(); + OnPropertyChanged(nameof(CurveToolTip)); + } + private static Func? Spline(IReadOnlyList points) { if (points.Count < 2) return null; diff --git a/src/Titano.App/Editor/EditorMeasures.xaml b/src/Titano.App/Editor/EditorMeasures.xaml index 18fd29c6..3486ba0c 100644 --- a/src/Titano.App/Editor/EditorMeasures.xaml +++ b/src/Titano.App/Editor/EditorMeasures.xaml @@ -156,10 +156,11 @@ -