コード例 #1
0
ファイル: GUIM.cs プロジェクト: UnforeseenOcean/Warmode
 private void LoadEnd()
 {
     GUIM.fontlist[0] = ContentLoader_.LoadFont("Play-Regular");
     GUIM.fontlist[1] = ContentLoader_.LoadFont("Play-Bold");
     GUIM.tDebug      = TEX.GetTextureByName("red");
     GUIM.tBar[0]     = TEX.GetTextureByName("tr");
     GUIM.tBar[1]     = TEX.GetTextureByName("scroll_middle");
     GUIM.tBar[2]     = TEX.GetTextureByName("tr");
     GUIM.tBar[3]     = TEX.GetTextureByName("slider_normal");
     GUIM.tBar[4]     = TEX.GetTextureByName("slider_active");
     GUIM.tBar[5]     = TEX.GetTextureByName("slider_back");
     GUIM.tButton     = TEX.GetTextureByName("button");
 }
コード例 #2
0
 public static void Init()
 {
     GUI2.colorlist[0] = new Color(0f, 0f, 0f, 1f);
     GUI2.colorlist[1] = new Color(1f, 1f, 1f, 1f);
     GUI2.colorlist[3] = new Color(0.25f, 1f, 0.25f, 1f);
     GUI2.colorlist[2] = new Color(1f, 0.2f, 0f, 1f);
     GUI2.colorlist[4] = new Color(0f, 0.5f, 1f, 1f);
     GUI2.colorlist[5] = new Color(1f, 0.2f, 0f, 1f);
     GUI2.colorlist[6] = new Color(1f, 1f, 0f, 1f);
     GUI2.colorlist[7] = new Color(0.5f, 0.5f, 0.5f, 1f);
     GUI2.fontlist[0]  = ContentLoader_.LoadFont("Archangelsk");
     GUI2.fontlist[1]  = ContentLoader_.LoadFont("Kelson Sans Regular RU");
     GUI2.fontlist[2]  = ContentLoader_.LoadFont("Kelson Sans Bold RU");
 }