public static void RenderUi() { if (ImNode.Focused != null) { if (last != ImNode.Focused) { last = ImNode.Focused; str.Label = Locale.Get(ImNode.Focused.LocaleId); } } str.Render(); }
public override void Render() { if (!Engine.Instance.State.Paused) { base.Render(); if (Str != null) { Str.Render(); if ((AlwaysShowArrow || ShowArrow) && Str.Finished && !Str.ShouldntRender) { Graphics.Color = Tint; Graphics.Print("<", Font.Small, Position + new Vector2(Width - 8, Height - 8 + (float)Math.Sin(Engine.Time * 4f) * 1.5f * Display.UiScale)); Graphics.Color = ColorUtils.WhiteColor; } } } }