コード例 #1
0
ファイル: SkinNeonBlue.cs プロジェクト: VividMaster/Rebound
 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
ファイル: SkinNeonBlue.cs プロジェクト: VividMaster/Rebound
 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
ファイル: UIWindowDock.cs プロジェクト: VividMaster/Rebound
 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
ファイル: UISKin.cs プロジェクト: VividMaster/Vivid3D2
 public virtual void DrawText(int x, int y, string text)
 {
     VFontRenderer.Draw(SmallFont, text, x, y);
 }
コード例 #6
0
ファイル: UISKin.cs プロジェクト: VividMaster/Vivid3D2
 public virtual void DrawText(int x, int y, string text, Vector4 col)
 {
     VFontRenderer.Draw(SmallFont, text, x, y, col);
 }
コード例 #7
0
ファイル: UIForm.cs プロジェクト: VividMaster/Rebound
 public void DrawText(string txt, int x, int y)
 {
     VFontRenderer.Draw(UI.Font, txt, GX + x, GY + y);
 }