Example #1
0
        public void SetupHighscores()
        {
            NoDataFailure = new Gwen.Control.Label(BaseCanvas);
            NoDataFailure.SetText("No Highscore Data Retrieved");
            NoDataFailure.AutoSizeToContents = true;
            NoDataFailure.SetPosition(100, 150);

            TopScoresLabel = new Gwen.Control.Label(BaseCanvas);
            TopScoresLabel.SetText("Highscores");
            TopScoresLabel.SetSize(100, 50);
            TopScoresLabel.SetPosition(250, 50);

            TopScoresList = new Gwen.Control.ListBox(BaseCanvas);
            TopScoresList.SetSize(220, 210);
            TopScoresList.SetPosition(180, 70);

            TopScoresBackButton = new Gwen.Control.Button(BaseCanvas);
            TopScoresBackButton.SetText("Back");
            TopScoresBackButton.AutoSizeToContents = true;
            TopScoresBackButton.SetPosition(50, 350);
            TopScoresBackButton.Clicked += (B, Args) =>
            {
                ActiveScreen = Screen.Menu;
            };
        }
Example #2
0
 public LuaListRowFactory(Gwen.Control.ListBox listBox)
     : base(listBox)
 {
 }
Example #3
0
 public static void Init()
 {
     Gwen.Control.TabButton button = tabControl.AddPage("Console");
     tabControl.Padding = new Padding(2, 2, 2, 2);
     Gwen.Control.Base page = button.Page;
     {
         consoleInput = new Gwen.Control.TextBox(page);
         consoleInput.SetBounds(0, 87, tabControl.Width - 17, 25);
         consoleOutput = new Gwen.Control.ListBox(page);
         consoleOutput.SetBounds(0, 0, tabControl.Width - 17, tabControl.Height - 65);
         consoleOutput.Disable();
         consoleOutput.AddRow("Type \"help\" for a list of commands.");
     }
 }
Example #4
0
 public static new ListBox Create(Internal.ControlBase parent)
 {
     Gwen.Control.ListBox listBox = new Gwen.Control.ListBox(parent.Target);
     listBox.RowFactory = new LuaListRowFactory(listBox);
     return(new ListBox(listBox));
 }