Ejemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public MainGUI()
 {
     SingleplayerButton = new TextButton(CraftyLang.GetData("singleplayer"), new Point(-1,400));
     SingleplayerButton.OnClick += SingleplayerButton_OnClick;
     MultiplayerButton = new TextButton(CraftyLang.GetData("multiplayer"), new Point(-1, 500));
     SettingsButton = new TextButton(CraftyLang.GetData("settings"), new Point(-1, 600));
     SettingsButton.OnClick += SettingsButton_OnClick;
     ExitButton = new TextButton(CraftyLang.GetData("quit"), new Point(-1, 700));
     ExitButton.OnClick += ExitButton_OnClick;
     ColoredBackground = new ColoredBackground(new Color(127, 140, 141));
     Cursor = new Cursor("cursor");
     Title = new RotateLabel(CraftySettings.Name, new Point(-1, 150), new Color(243, 156, 18), CraftyContent.GetFont("gdc128"));
 }
Ejemplo n.º 2
0
        public MainSettingsGUI()
        {
            FullScreenButton = new TextButton(CraftyLang.GetData("fullscreen") + " : " + CraftyLang.GetData(CraftyConfig.Fullscreen.ToYesNoString()), new Point(-1, 400));
            FullScreenButton.OnClick += FullscreenButton_OnClick;

            AntiAliasingbutton = new TextButton(CraftyLang.GetData("antialiasing") + " : " + CraftyLang.GetData(CraftyConfig.AntiAlisaing.ToYesNoString()), new Point(-1, 500));
            AntiAliasingbutton.OnClick += AntiAliasingbutton_OnClick;

            ReturnButton = new TextButton(CraftyLang.GetData("back"), new Point(-1, 700));
            ReturnButton.OnClick += ReturnButton_OnClick;
            ColoredBackground = new ColoredBackground(new Color(127, 140, 141));
            Cursor = new Cursor("cursor");
            Title = new RotateLabel(CraftySettings.Name, new Point(-1, 150), new Color(243, 156, 18), CraftyContent.GetFont("gdc128"));
        }