public override void Draw() { Graphics.SetBackgroundColor(85 / 255f, 77 / 255f, 216 / 255f); Love.Misc.FPSGraph.Draw(); Graphics.SetColor(Color.White); Graphics.Translate(100, 100); userInterface.Draw(0, 0, (x, y, w, h, text, attr) => { Graphics.Rectangle(DrawMode.Line, x, y, w, h); Graphics.Print($"{(attr.TryGetValue("id", out object id) ? id : "")}", x, h + y - Graphics.GetFont().GetHeight()); if (text != null) { Graphics.Printf(text.Trim(), x, y, w, AlignMode.Center); } });
public override void Draw() { Graphics.SetBackgroundColor(85 / 255f, 77 / 255f, 216 / 255f); Love.Misc.FPSGraph.Draw(); Graphics.SetColor(Color.White); if (useFactory) { fac.Draw(100, 100); } else { userInterface.Draw(100, 100, (float x, float y, float w, float h, string text, Dictionary <string, object> attr) => { Graphics.Rectangle(DrawMode.Line, x, y, w, h); Graphics.Print($"{(attr.TryGetValue("id", out object id) ? id : "")}", x, h + y - Graphics.GetFont().GetHeight()); if (text != null) { Graphics.Printf(text.Trim(), x, y, w, AlignMode.Center); } });
public virtual void Draw(float x, float y, ShadowPlay <LoveBridge.Element> .DrawNodeFunc defaultDrawFunc, Dictionary <string, ShadowPlay <LoveBridge.Element> .DrawNodeFunc> themeDictionary = null) { shadowPlay.Draw(x, y, defaultDrawFunc, themeDictionary); }