Ejemplo n.º 1
0
 public static void makeMenu()
 {
     //Modding.Logger.Log("in makemenu");
     panel = new CanvasPanel(canvas, new Vector2(225, 108), new Vector2(1000, 500));
     panel.AddText("tracker", "", new Vector2(50f, 25f), new Vector2(1000f, 500f), fontType, 30);
     panel.SetActive(true, true);
     //Modding.Logger.Log("made a panel");
 }
Ejemplo n.º 2
0
        public void AddPanel(string name, Vector2 pos, Vector2 sz)
        {
            CanvasPanel panel = new CanvasPanel(canvas, position + pos, sz);

            panels.Add(name, panel);
        }