public TaeEventSimulationEnvironment(TaeEditAnimEventGraph graph, Model mdl) { MODEL = mdl; Graph = graph; InitAllEntries(); }
public TaeUndoableAction(TaeEditAnimEventGraph graph, Action doAction, Action undoAction, IEnumerable <ITaeClonable> itemsToCapture) { Graph = graph; ItemsToCapture = itemsToCapture; DoAction = doAction; UndoAction = undoAction; }
public static TaeEditAnimEventBox ClipToEvent(TaeEditAnimEventGraph graph, Clip c, bool isBigEndian) { var newEvent = new TAE.Event(c.EventStartTime, c.EventEndTime, c.EventType, c.EventUnk04, c.EventParamBytes, isBigEndian); var newEventBox = new TaeEditAnimEventBox(graph, newEvent); newEventBox.Row = c.EventRow; return(newEventBox); }
public TaeClipboardContents(TaeEditAnimEventGraph graph, IEnumerable <TaeEditAnimEventBox> events, int startRow, float startTime, bool isBigEndian) { ParentGraph = graph; StartRow = startRow; StartTime = startTime; EventClips = events.Select(x => EventToClip(x, isBigEndian)); IsBigEndian = isBigEndian; }
public TaeUndoRestorableGraphState(TaeEditAnimEventGraph graph, IEnumerable <ITaeClonable> stuffToClone) { Graph = graph; VariousItemClones = stuffToClone.Select(thing => TaeCloneStateItem.NewOrDefault(thing)); BoxClones = new TaeCloneStateEnumerable <TaeEditAnimEventBox>(graph.EventBoxes); GroupRegionClones = new TaeCloneStateEnumerable <TaeEventGroupRegion>(graph.GroupRegions); lock (graph._lock_EventBoxManagement) SortedByRowClone = graph.sortedByRow.ToDictionary(kvp => kvp.Key, kvp => kvp.Value.ToList()); }
public TaeEditAnimEventBox(TaeEditAnimEventGraph owner, TimeActEventBase myEvent) { //BGColor = TaeMiscUtils.GetRandomPastelColor(); OwnerPane = owner; MyEvent = myEvent; UpdateEventText(); myEvent.RowChanged += MyEvent_RowChanged; }
public TaeUndoableAction(TaeEditAnimEventGraph graph, Action doAction, Action undoAction, TaeUndoRestorableGraphState customPreState) { Graph = graph; ItemsToCapture = null; StateOnUndo = customPreState; IsCustomPreState = true; ItemsToCapture = new List <ITaeClonable>(); DoAction = doAction; UndoAction = undoAction; }
public static void Update(TaeEditAnimEventGraph graph, float time) { Clear(); List <TaeEditAnimEventBox> eventsByTime = null; lock (graph._lock_EventBoxManagement) { eventsByTime = graph.EventBoxes .Where(b => b.MyEvent.Template != null) .OrderBy(b => b.MyEvent.StartTime) .ToList(); } foreach (var ev in eventsByTime) { // ScreenFadeInFromColor if (ev.MyEvent.Type == 0 && ev.MyEvent.StartTime <= time) { float r = Convert.ToByte(ev.MyEvent.Parameters["Red"]) / 255f; float g = Convert.ToByte(ev.MyEvent.Parameters["Green"]) / 255f; float b = Convert.ToByte(ev.MyEvent.Parameters["Blue"]) / 255f; float a = Utils.MapRange(MathHelper.Clamp(time, ev.MyEvent.StartTime, ev.MyEvent.EndTime), ev.MyEvent.StartTime, ev.MyEvent.EndTime, 1, 0); a = a * a; CurrentFadeColor = new Color(r, g, b, a); } // ScreenFadeOutToColor else if (ev.MyEvent.Type == 1 && ev.MyEvent.StartTime <= time) { float r = Convert.ToByte(ev.MyEvent.Parameters["Red"]) / 255f; float g = Convert.ToByte(ev.MyEvent.Parameters["Green"]) / 255f; float b = Convert.ToByte(ev.MyEvent.Parameters["Blue"]) / 255f; float a = Utils.MapRange(MathHelper.Clamp(time, ev.MyEvent.StartTime, ev.MyEvent.EndTime), ev.MyEvent.StartTime, ev.MyEvent.EndTime, 0, 1); a = a * a; CurrentFadeColor = new Color(r, g, b, a); } } }
public TaeEventGroupRegion(TaeEditAnimEventGraph graph, TAE.Animation anim, TAE.EventGroup group) { Graph = graph; TaeAnim = anim; Group = group; }
public TaeClipboardContents(TaeEditAnimEventGraph graph) { ParentGraph = graph; }