Broken UI system
This commit is contained in:
@@ -13,10 +13,22 @@ namespace SplashEdit.RuntimeCode
|
||||
[Tooltip("What property this track drives.")]
|
||||
public PSXTrackType TrackType;
|
||||
|
||||
[Tooltip("Target GameObject name (must match a PSXObjectExporter). Leave empty for camera tracks.")]
|
||||
[Tooltip("Target GameObject name (must match a PSXObjectExporter). Leave empty for camera/UI tracks.")]
|
||||
public string ObjectName = "";
|
||||
|
||||
[Tooltip("For UI tracks: canvas name (e.g. 'hud'). Used by UICanvasVisible and to resolve elements.")]
|
||||
public string UICanvasName = "";
|
||||
|
||||
[Tooltip("For UI element tracks: element name within the canvas. Used by UIElementVisible, UIProgress, UIPosition, UIColor.")]
|
||||
public string UIElementName = "";
|
||||
|
||||
[Tooltip("Keyframes for this track. Sort by frame number.")]
|
||||
public List<PSXKeyframe> Keyframes = new List<PSXKeyframe>();
|
||||
|
||||
/// <summary>Returns true if this track type targets a UI canvas or element.</summary>
|
||||
public bool IsUITrack => TrackType >= PSXTrackType.UICanvasVisible && TrackType <= PSXTrackType.UIColor;
|
||||
|
||||
/// <summary>Returns true if this track type targets a UI element (not just a canvas).</summary>
|
||||
public bool IsUIElementTrack => TrackType >= PSXTrackType.UIElementVisible && TrackType <= PSXTrackType.UIColor;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user