Exemplo n.º 1
0
        public GameUI(CurrentChampionState ccs, PingCounter ping, GameScore score)
        {
            ChampionState = ccs;

            UIFPSCounter = new FPSCounter();
            AddChild(UIFPSCounter, 2);
            UIPingCounter = ping;
            AddChild(UIPingCounter, 2);

            /*Map = new DrawableImage("UIObjects/map");
             * AddChild(Map);*/
            SpellBackground = new DrawableImage("UIObjects/spellBackground");
            AddChild(SpellBackground);

            LifeDropshadow = new DrawableImage("UIObjects/lifeDrop");
            LifeDropshadow.RelativeOrigin = new Vector2(0f, 1f);
            AddChild(LifeDropshadow);
            ResourceDropShadow = new DrawableImage("UIObjects/manaDrop");
            ResourceDropShadow.RelativeOrigin = new Vector2(0f, 1f);
            //AddChild(ResourceDropShadow);

            Life = new DrawableImage("UIObjects/life");
            Life.RelativeOrigin = new Vector2(0f, 1f);
            AddChild(Life);
            Resource = new DrawableImage("UIObjects/mana");
            Resource.RelativeOrigin = new Vector2(0f, 1f);
            //AddChild(Resource);

            ScoreBackground = new DrawableImage("UIObjects/boxBackground");
            AddChild(ScoreBackground);
            MoneyBackground = new DrawableImage("UIObjects/boxBackground");
            AddChild(MoneyBackground);

            /*ObjectBackground = new DrawableImage("UIObjects/boxBackground");
             * AddChild(ObjectBackground);*/


            UISpellMenu = new SpellMenu(ChampionState);
            AddChild(UISpellMenu, 3);

            GameScore = score;
        }
Exemplo n.º 2
0
        public GameUI(CurrentChampionState ccs, PingCounter ping, GameScore score)
        {
			ChampionState = ccs;

			UIFPSCounter = new FPSCounter();
			AddChild(UIFPSCounter,2);
			UIPingCounter = ping;
			AddChild(UIPingCounter,2);

			/*Map = new DrawableImage("UIObjects/map");
			AddChild(Map);*/
			SpellBackground = new DrawableImage("UIObjects/spellBackground");
			AddChild(SpellBackground);

			LifeDropshadow = new DrawableImage("UIObjects/lifeDrop");
			LifeDropshadow.RelativeOrigin = new Vector2(0f,1f);
			AddChild(LifeDropshadow);
			ResourceDropShadow = new DrawableImage("UIObjects/manaDrop");
			ResourceDropShadow.RelativeOrigin = new Vector2(0f,1f);
			//AddChild(ResourceDropShadow);

			Life = new DrawableImage("UIObjects/life");
			Life.RelativeOrigin = new Vector2(0f,1f);
			AddChild(Life);
			Resource = new DrawableImage("UIObjects/mana");
			Resource.RelativeOrigin = new Vector2(0f,1f);
			//AddChild(Resource);

			ScoreBackground = new DrawableImage("UIObjects/boxBackground");
			AddChild(ScoreBackground);
			MoneyBackground = new DrawableImage("UIObjects/boxBackground");
			AddChild(MoneyBackground);
			/*ObjectBackground = new DrawableImage("UIObjects/boxBackground");
			AddChild(ObjectBackground);*/


			UISpellMenu = new SpellMenu(ChampionState);
			AddChild(UISpellMenu,3);

			GameScore = score;
        }