Exemplo n.º 1
0
        public override void loadContent(AssetManager content)
        {
            base.loadContent(content);
            //this.clearElements();
            List <GuiList> battleLabels = OngoingBattles.getBattleLabels(font);

            foreach (GuiList list in battleLabels)
            {
                foreach (GuiLabel label in list.AllLabels)
                {
                    label.Font = content.getAsset <SpriteFont>(font);
                }
                this.addElement(list);
            }
        }
Exemplo n.º 2
0
        protected override void Update(GameTime gameTime)
        {
            inputHelper.Update(gameTime);
            // Press escape to exit, will most likely have to be removed
            // at some point because we like to have an onscreen exit button
            ScreenManager.Instance.update(gameTime, inputHelper);
            if (Keyboard.GetState().IsKeyDown(Keys.Escape))
            {
                Exit();
            }
            //while (anyBattle.proceed()) { }

            /*if (testButton.isClicked(inputHelper))
             * {
             *  anyBattle.writeLog();
             *  anyBattle.proceed();
             * }*/

            // Pass the Update into the base "Game" class
            OngoingBattles.update(gameTime);
            base.Update(gameTime);
        }