public virtual void ApplyLayoutingInfo(BarLayoutingInfo info) { PreNotes.Width = info.GetPreBeatSize(Beat); OnNotes.Width = info.GetOnBeatSize(Beat); OnNotes.X = PreNotes.X + PreNotes.Width; OnTimeX = OnNotes.X + OnNotes.Width / 2; OnNotes.UpdateBeamingHelper(); }
public virtual void RegisterLayoutingInfo(BarLayoutingInfo layoutings) { var preBeatStretch = PreNotes.Width + OnNotes.Width / 2; layoutings.AddBeatSpring(Beat, MinWidth, preBeatStretch); // store sizes for special renderers like the EffectBarRenderer layoutings.SetPreBeatSize(Beat, PreNotes.Width); layoutings.SetOnBeatSize(Beat, OnNotes.Width); }
public void ApplyLayoutingInfo(BarLayoutingInfo info) { for (int i = 0, j = BeatGlyphs.Count; i < j; i++) { var b = BeatGlyphs[i]; b.ApplyLayoutingInfo(info); } ScaleToForce(Renderer.Settings.StretchForce); }
public void RegisterLayoutingInfo(BarLayoutingInfo info) { info.UpdateVoiceSize(Width); for (int i = 0, j = BeatGlyphs.Count; i < j; i++) { var b = BeatGlyphs[i]; b.RegisterLayoutingInfo(info); } }
public void RegisterLayoutingInfo(BarLayoutingInfo info) { info.UpdateVoiceSize(Width); var beatGlyphs = BeatGlyphs; foreach (var b in beatGlyphs) { b.RegisterLayoutingInfo(info); } }
public void ApplyLayoutingInfo(BarLayoutingInfo info) { var beatGlyphs = BeatGlyphs; foreach (var b in beatGlyphs) { b.ApplyLayoutingInfo(info); } ScaleToForce(Math.Max(Renderer.Settings.StretchForce, info.MinStretchForce)); }
public virtual void ApplyLayoutingInfo(BarLayoutingInfo info) { var offset = info.GetBeatCenterX(Beat) - OnNotes.CenterX; PreNotes.X = offset; PreNotes.Width = info.GetPreBeatSize(Beat); OnNotes.Width = info.GetOnBeatSize(Beat); OnNotes.X = PreNotes.X + PreNotes.Width; OnNotes.UpdateBeamingHelper(); }
public void ApplyLayoutingInfo(BarLayoutingInfo info) { if (UseLayoutingInfo) { PreNotes.Width = info.GetPreBeatSize(Beat); OnNotes.Width = info.GetOnBeatSize(Beat); OnNotes.X = PreNotes.X + PreNotes.Width; OnTimeX = OnNotes.X + OnNotes.Width / 2; } }
public virtual void RegisterLayoutingInfo(BarLayoutingInfo layoutings) { var preBeatStretch = OnTimeX; var postBeatStretch = 0f; foreach (var tie in Ties) { if (tie.Width > postBeatStretch) { postBeatStretch = tie.Width; } } postBeatStretch += OnNotes.X + (OnNotes.Width - OnNotes.CenterX); layoutings.AddBeatSpring(Beat, preBeatStretch, postBeatStretch); // store sizes for special renderers like the EffectBarRenderer layoutings.SetPreBeatSize(Beat, PreNotes.Width); layoutings.SetOnBeatSize(Beat, OnNotes.Width); layoutings.SetBeatCenterX(Beat, OnNotes.CenterX); }
public virtual void RegisterLayoutingInfo(BarLayoutingInfo info) { LayoutingInfo = info; var preSize = _preBeatGlyphs.Width; if (info.PreBeatSize < preSize) { info.PreBeatSize = preSize; } foreach (var voice in _voiceContainers) { var c = _voiceContainers[voice]; c.RegisterLayoutingInfo(info); } var postSize = _postBeatGlyphs.Width; if (info.PostBeatSize < postSize) { info.PostBeatSize = postSize; } }