public void RenderGUI()
        {
            using var ui = uiManager.BeginImmediateDrawRel(0, 1, 0, 1);
            ui.BeginVerticalBox(new Vector4(0, 0, 0, 0.5f), 3);
            var wowPos = Position.ToWoWPosition();

            ui.Text("calibri", $"X: {wowPos.X:0.00} Y: {wowPos.Y:0.00} Z: {wowPos.Z:0.00}", 13, Vector4.One);
        }
Esempio n. 2
0
 public void RenderGUI()
 {
     if (loadingToken != null)
     {
         using var ui = uiManager.BeginImmediateDrawRel(0.5f, 1f, 0.5f, 1f);
         ui.BeginVerticalBox(new Vector4(0, 0, 0, 0.5f), 2);
         if (EssentialLoadingInProgress)
         {
             ui.Text("calibri", "Loading essential things", 14, Vector4.One);
         }
         else
         {
             ui.Text("calibri", "Loading less important things", 14, Vector4.One);
         }
     }
 }
        public void RenderGUI(float delta)
        {
            if (lastNotification != null)
            {
                float t = Math.Min(lastNotificationTime / 2500f, 1);

                using var ui = uiManager.BeginImmediateDrawRel(0.5f, 0.5f, 0.5f, 0.5f);

                ui.BeginVerticalBox(new Vector4(0, 0, 0, 0.5f).WithW(0.4f * t), Padding / 2);
                ui.BeginVerticalBox(new Vector4(0, 0, 0, 0.7f).WithW(0.6f * t), Padding / 2);
                ui.Text(Font, lastNotification, 18, Vector4.One.WithW(t));
                ui.EndBox();

                lastNotificationTime -= delta;
                if (lastNotificationTime < 0)
                {
                    lastNotification = null;
                }
            }
        }