예제 #1
0
        public static void RenderUi()
        {
            if (ImNode.Focused != null)
            {
                if (last != ImNode.Focused)
                {
                    last      = ImNode.Focused;
                    str.Label = Locale.Get(ImNode.Focused.LocaleId);
                }
            }

            str.Render();
        }
예제 #2
0
        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;
                    }
                }
            }
        }