示例#1
0
 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));
     }
 }
示例#2
0
 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);
 }
示例#3
0
 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();
         }
     }
 }
示例#4
0
 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));
 }
示例#5
0
 public virtual void DrawText(int x, int y, string text)
 {
     VFontRenderer.Draw(SmallFont, text, x, y);
 }
示例#6
0
 public virtual void DrawText(int x, int y, string text, Vector4 col)
 {
     VFontRenderer.Draw(SmallFont, text, x, y, col);
 }
示例#7
0
 public void DrawText(string txt, int x, int y)
 {
     VFontRenderer.Draw(UI.Font, txt, GX + x, GY + y);
 }