public override void DrawWindow(UIWindow w) { WinBackCol.W = w.Alpha * UISys.AlphaMod; // VPen.Rect(w.WidX, w.WidY, w.WidW, w.WidH, WinBord, WinBackCol); VPen.Rect(w.WidX, w.WidY, w.WidW, w.WidH, WinCon, WinBackCol); if (w.DrawTitle) { WinTitCol.W = w.Alpha * UISys.AlphaMod; VPen.Rect(w.WidX, w.WidY, w.WidW, TitleHeight, WinTitle, WinTitCol); VFontRenderer.Draw(SmallFont, w.Name, w.WidX + 5, w.WidY + 2, new Vector4(1, 1, 1, UISys.AlphaMod)); } }
public override void DrawPanel(UIPanel p) { if (p.Flat) { VPen.Rect(p.WidX, p.WidY, p.WidW, p.WidH, new Vector4(0.7f, 0.7f, 0.7f, 0.8f)); } else { VPen.Rect(p.WidX, p.WidY, p.WidW, p.WidH, PanelBG, new Vector4(0.7f, 0.7f, 0.7f, 0.9f)); } VFontRenderer.Draw(SmallFont, p.Name, p.WidX + 5, p.WidY + 5); }
public override void Draw() { VFontRenderer.Draw(UISys.Skin().SmallFont, Name, WidX + 5, WidY + 5, new OpenTK.Vector4(1, 1, 1, 1)); if (WinOver == false) { VPen.Rect(WidX, WidY, WidW, 50, new OpenTK.Vector4(0, 0, 0.5f, 0.1f)); } else { VPen.Rect(WidX, WidY, WidW, 50, new OpenTK.Vector4(0, 0, 0.5f, 0.35f)); if (StarEngine.Input.VInput.MB[0] == false && UISys.ActiveWindow.Docked == false) { DockWin(); } } }
public override void DrawBoxText(int x, int y, string text) { VFontRenderer.Draw(SmallFont, text, x, y, new Vector4(0.1f, 0.1f, 0.1f, 0.9f * UISys.AlphaMod)); }
public virtual void DrawText(int x, int y, string text) { VFontRenderer.Draw(SmallFont, text, x, y); }
public virtual void DrawText(int x, int y, string text, Vector4 col) { VFontRenderer.Draw(SmallFont, text, x, y, col); }
public void DrawText(string txt, int x, int y) { VFontRenderer.Draw(UI.Font, txt, GX + x, GY + y); }