Ejemplo n.º 1
0
        public void AddCharacterSelection(string response)
        {
            CharacterSelect = new CharacterSelectHUD(DrawHelper.CenteredToScreenWidth(720), 400);
            CharacterSelect.Init(response);

            Background.AddChild(CharacterSelect);
        }
Ejemplo n.º 2
0
        public override void OnScreenCreate()
        {
            Title         = new TextDisplay(0, 0, "BRME", 30, new RGBColor(255, 105, 24));
            Title.X       = DrawHelper.CenteredToScreenWidth(Title.Width);
            Title.Y       = 20;
            Title.Outline = true;

            PlayButton   = new TextButton("Play", 30);
            PlayButton.X = DrawHelper.CenteredToScreenWidth(PlayButton.Width);
            PlayButton.Y = DrawHelper.CenteredToScreenHeight(PlayButton.Height);
            PlayButton.Y = 700;
            PlayButton.TextDisplay.Outline = true;
            PlayButton.AddEventListener(Event.CLICKLEFT, OnPlay);
            PlayButton.AddEventListener(Event.MOUSEOVER, OnPlayButtonOver);
            PlayButton.AddEventListener(Event.MOUSEOUT, OnPlayButtonOut);

            Background = new FilledRectangle(AssetLibrary.Images["titleScreenBackGround"])
            {
                X = 0,
                Y = 0
            };

            Background.AddChild(Title);
            Background.AddChild(PlayButton);

            NetworkClient.SendPacket(new ClientResponse()
            {
                From    = "GetUnlockedCharacters",
                Result  = 0,
                Content = ""
            });
        }
Ejemplo n.º 3
0
        public PlayerInfoTable()
            : base(DrawHelper.CenteredToScreenWidth(600), DrawHelper.CenteredToScreenHeight(600), "Guest", 600, 600)
        {
            IsZeroApplicaple = true;

            Icons = new InfoIcon(265, 45, onInventory, onStats);

            Inventory = new InventoryView(100, 325);
            StatsView = new StatView(50, 125);

            AddChild(Inventory);
            AddChild(Icons);

            Title.SpriteColor = new Color(249, 214, 214);
            Title.Y           = 13;
        }
Ejemplo n.º 4
0
 public OptionsTable()
     : base(DrawHelper.CenteredToScreenWidth(400), DrawHelper.CenteredToScreenHeight(400), "Options", 400, 400, new RGBColor(255, 255, 255), 0.9f)
 {
     IsZeroApplicaple = true;
 }