protected override void MakeWidgets()
        {
            widgetIndex = 0;

            MakeInput(Get(0), 330, false, 32, "&gUsername..")
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, -120);
            MakeInput(Get(1), 330, false, 64, "&gIP address:Port number..")
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, -75);
            MakeInput(Get(2), 330, false, 32, "&gMppass..")
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, -30);

            connectIndex = widgetIndex;
            Makers.Button(this, "Connect", 110, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -110, 20);
            backIndex = widgetIndex;
            Makers.Button(this, "Back", 80, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 125, 20);

            statusIndex = widgetIndex;
            Makers.Label(this, "", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, 70);
            Makers.Label(this, "Use classicube.net for skins", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 30, 100);

            ccSkinsIndex = widgetIndex;
            Makers.Checkbox(this, true, 24)
            .SetLocation(Anchor.Centre, Anchor.Centre, -110, 100);
        }
예제 #2
0
        protected override void MakeWidgets()
        {
            widgetIndex   = 0;
            usernameIndex = widgetIndex;
            MakeInput(Get(0), 280, false, 16, "&gUsername..")
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, -120);
            MakeInput(Get(1), 280, true, 64, "&gPassword..")
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, -75);

            loginIndex = widgetIndex;
            Makers.Button(this, "Sign in", 100, buttonHeight, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -90, -25);
            statusIndex = widgetIndex;
            Makers.Label(this, Get(statusIndex), textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, 20);


            resIndex = widgetIndex;
            Makers.Button(this, "Resume", 100, buttonHeight, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 90, -25);
            dcIndex = widgetIndex;
            Makers.Button(this, "Direct connect", 200, buttonHeight, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, 60);
            spIndex = widgetIndex;
            Makers.Button(this, "Singleplayer", 200, buttonHeight, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, 110);

            sslIndex = widgetIndex;
            bool sslVisible = widgets[sslIndex] != null && widgets[sslIndex].Visible;

            Makers.Checkbox(this, true, 30)
            .SetLocation(Anchor.Centre, Anchor.Centre, 160, -20);
            Makers.Label(this, "Skip SSL check", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 250, -20);
            widgets[sslIndex].Visible     = sslVisible;
            widgets[sslIndex + 1].Visible = sslVisible;

            Makers.Label(this, updateText, inputHintFont)
            .SetLocation(Anchor.Max, Anchor.Max, -10, -45);

            settingsIndex = widgetIndex;
            Makers.Button(this, "Options", 100, buttonHeight, titleFont)
            .SetLocation(Anchor.Max, Anchor.Max, -6, -6);
        }
예제 #3
0
        protected override void MakeWidgets()
        {
            widgetIndex = 0;

            updatesIndex = widgetIndex;
            Makers.Button(this, "Updates", 110, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -135, -120);
            Makers.Label(this, "&eGet the latest stuff", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 10, -120);

            modeIndex = widgetIndex;
            Makers.Button(this, "Mode", 110, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -135, -70);
            Makers.Label(this, "&eChange the enabled features", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 55, -70);

            coloursIndex = widgetIndex;
            Makers.Button(this, "Colours", 110, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -135, -20);
            Makers.Label(this, "&eChange how the launcher looks", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 65, -20);

            if (game.ClassicBackground)
            {
                widgets[coloursIndex].Visible     = false;
                widgets[coloursIndex + 1].Visible = false;
            }

            clientIndex = widgetIndex;
            Makers.Checkbox(this, Client.CClient, 24)
            .SetLocation(Anchor.Centre, Anchor.Centre, -175, 130);
            Makers.Label(this, "Try experimental new client", textFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, -45, 130);

            backIndex = widgetIndex;
            Makers.Button(this, "Back", 80, 35, titleFont)
            .SetLocation(Anchor.Centre, Anchor.Centre, 0, 170);
        }