Example #1
0
        internal override void load()
        {
            base.load();

            Music.sharedInstance.play(GameMusic.MusicType.menu);

            gameWorld.loadStars();

            PlayerData playerData = MemoryCard.current.playerData;

            buttonBack = new Button("button_55x55", 8, 604, HorizontalAlignment.left, VerticalAlignment.bottom);
            buttonBack.setIcon("Back");
            buttonBack.set(GameColors.controlBlue, BlendState.Additive);
            addChild(buttonBack);


            control      = new Control("box_xx89", 0.0f, -2.0f);
            control.size = new Vector2(currentSize.X, control.size.Y);
            addChild(control);

            ControlPremiumPoints controlPremiumPoints = new ControlPremiumPoints(8, 15);

            controlPremiumPoints.setLabelText(playerData.premiumPoints);
            addChild(controlPremiumPoints);

            ControlPoints controlPoints = new ControlPoints(223, 15);

            controlPoints.setLabelText(playerData.points);
            addChild(controlPoints);
        }
Example #2
0
        internal override void load()
        {
            base.load();

            Music.sharedInstance.play(GameMusic.MusicType.menu);

            gameWorld.loadStars();

            PlayerData playerData = MemoryCard.current.playerData;

            mothershipSlots = new MothershipSlots(0, 289, HorizontalAlignment.center, VerticalAlignment.center);
            mothershipSlots.load(playerData.mothership.slots);
            addChild(mothershipSlots);

            buttonPlay = new Button("button_233x55", 71, 604, HorizontalAlignment.center, VerticalAlignment.bottom);
            buttonPlay.setIcon("Play");
            buttonPlay.set(GameColors.controlRed, BlendState.Additive);
            addChild(buttonPlay);

            Button buttonBuy = new Button("button_55x55", 312, 604, HorizontalAlignment.center, VerticalAlignment.bottom);

            buttonBuy.setIcon("Add Shopping Cart");
            buttonBuy.set(GameColors.controlYellow, BlendState.Additive);
            addChild(buttonBuy);
            buttonBuy.isHidden = true;

            buttonShips = new Button("button_55x55", 8, 604, HorizontalAlignment.left, VerticalAlignment.bottom);
            buttonShips.setIcon("Rocket");
            buttonShips.set(GameColors.controlBlue, BlendState.Additive);
            addChild(buttonShips);


            Button buttonPlayOnline = new Button("button_55x55", 249, 95, HorizontalAlignment.right, VerticalAlignment.top);

            buttonPlayOnline.setIcon("Bluetooth");
            buttonPlayOnline.set(GameColors.controlRed, BlendState.Additive);
            addChild(buttonPlayOnline);

            buttonSettings = new Button("button_55x55", 312, 95, HorizontalAlignment.right, VerticalAlignment.top);
            buttonSettings.setIcon("Settings");
            buttonSettings.set(GameColors.controlBlue, BlendState.Additive);
            addChild(buttonSettings);

            Button buttonGameCenter = new Button("button_55x55", 312, 158, HorizontalAlignment.right, VerticalAlignment.top);

            buttonGameCenter.setIcon("Game Center");
            buttonGameCenter.set(GameColors.controlBlue, BlendState.Additive);
            addChild(buttonGameCenter);
            buttonGameCenter.isHidden = true;

            Button buttonFacebook = new Button("button_55x55", 312, 221, HorizontalAlignment.right, VerticalAlignment.top);

            buttonFacebook.setIcon("Facebook");
            buttonFacebook.set(GameColors.controlBlue, BlendState.Additive);
            addChild(buttonFacebook);
            buttonFacebook.isHidden = true;

            ControlMission controlMission = new ControlMission();

            addChild(controlMission);


            control      = new Control("box_xx89", 0.0f, -2.0f);
            control.size = new Vector2(currentSize.X, control.size.Y);
            addChild(control);

            ControlPremiumPoints controlPremiumPoints = new ControlPremiumPoints(8, 15);

            controlPremiumPoints.setLabelText(playerData.premiumPoints);
            addChild(controlPremiumPoints);

            ControlPoints controlPoints = new ControlPoints(223, 15);

            controlPoints.setLabelText(playerData.points);
            addChild(controlPoints);
        }