static TcdEditer() { Preview = new TimeCircuitsScaleform("bttf_2d_gui"); Preview.SetVisible("red", false); Preview.SetVisible("green", false); Preview.SetVisible("yellow", false); InstrumentalMenu = new InstrumentalMenu(); AddButtons(); }
public TCDSlot(string slotType, TimeCircuitsScaleform scaleform, TimeCircuits circuits) { SlotType = slotType; ScreenTCD = scaleform; TimeCircuits = circuits; Scaleform = new TCDRowScaleform(slotType); RenderTarget = new RenderTarget(new Model("bttf_3d_row_" + slotType), "bttf_tcd_row_" + slotType, circuits.Vehicle, offsets[slotType], new Vector3(355.9951f, 0.04288517f, 352.7451f)); RenderTarget.CreateProp(); Scaleform.DrawInPauseMenu = true; amProp = new AnimateProp(circuits.Delorean, new Model($"bttf_{slotType}_am"), Vector3.Zero, Vector3.Zero); pmProp = new AnimateProp(circuits.Delorean, new Model($"bttf_{slotType}_pm"), Vector3.Zero, Vector3.Zero); RenderTarget.OnRenderTargetDraw += OnRenderTargetDraw; date = new DateTime(); }