Пример #1
0
        public void Draw(Renderer sb)
        {
            // Draw frame & background
            sb.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);
            sb.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);
            sb.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);

            m_LevelLabel.Draw(sb);
            m_Level.Draw(sb);
            m_ExpBar.Draw(sb);
            m_ExpText.Draw(sb);

            m_LevelsAreaFrame.Draw(sb);
            m_BtnLeft.Draw(sb);
            m_BtnRight.Draw(sb);

            m_DetailsLevelLabel.Draw(sb);
            m_DetailsRequiredPoints.Draw(sb);
            m_HintsLabel.Draw(sb);
            m_Hints.Draw(sb);
            m_MegaHintsLabel.Draw(sb);
            m_MegaHints.Draw(sb);
            m_UndoSizeLabel.Draw(sb);
            m_UndoSize.Draw(sb);
            m_ExpBonusLabel.Draw(sb);
            m_ExpBonus.Draw(sb);
            m_DisableTimer.Draw(sb);
            m_DisableExpBonus.Draw(sb);
            m_ErrorDetector.Draw(sb);
            m_ErrorDetector2.Draw(sb);

            m_Close.Draw(sb);
        }
Пример #2
0
        public void Draw(Renderer spriteBatch, int screenWidth, int screenHeight)
        {
            // Draw frame
            spriteBatch.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);
            spriteBatch.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);
            spriteBatch.Draw(Assets.TransparentBox, m_Rect, Color.DarkGray);

            // Draw title
            m_Title.Draw(spriteBatch);

            // Draw Success/Failure
            m_Success.Draw(spriteBatch);

            // Draw Time
            m_TimeLabel.Draw(spriteBatch);
            m_Time.Draw(spriteBatch);

            // Draw Par Time
            m_ParLabel.Draw(spriteBatch);
            m_Par.Draw(spriteBatch);

            // Draw Exp
            m_ExpBaseLabel.Draw(spriteBatch);
            m_ExpBase.Draw(spriteBatch);
            m_ExpBonusLabel.Draw(spriteBatch);
            m_ExpBonus.Draw(spriteBatch);
            m_ExpTotal.Draw(spriteBatch);
            m_VipBonusExp.Draw(spriteBatch);
            m_ExpTotalLabel.Draw(spriteBatch);
            spriteBatch.Draw(Assets.GoldBarHorizontal, m_ScoreTotalBar, Color.White);

            // Draw level up
            m_LevelLabel.Draw(spriteBatch);
            m_Level.Draw(spriteBatch);
            m_ExpBar.Draw(spriteBatch);
            m_ExpPoints.Draw(spriteBatch);

            // Draw unlock
            m_Unlock.Draw(spriteBatch);

            // Draw Buttons
            foreach (UIButton b in m_Buttons)
            {
                b.Draw(spriteBatch);
            }

            if (m_AnimStep == AnimStep.WaitForServerData)
            {
                Assets.WaitIcon.Draw(spriteBatch, m_WaitRect, Color.White);
            }
        }
Пример #3
0
        public override void Draw(Renderer spriteBatch)
        {
            if (m_CoinsDialog != null)
            {
                m_CoinsDialog.Draw(spriteBatch);
                return;
            }
            if (m_VipDialog != null)
            {
                m_VipDialog.Draw(spriteBatch);
                return;
            }

            foreach (Tower t in m_Towers)
            {
                t.Draw(spriteBatch);
            }

            m_LevelLabel.Draw(spriteBatch);
            m_Level.Draw(spriteBatch);
            m_ExpBar.Draw(spriteBatch);
            m_ResetTutorial.Draw(spriteBatch);
            m_Options.Draw(spriteBatch);
            m_BuyCoins.Draw(spriteBatch);
            m_Exit.Draw(spriteBatch);
            m_SignOut.Draw(spriteBatch);
            m_Coins.Draw(spriteBatch);
            m_VIP.Draw(spriteBatch);


            if (m_FloorSelect != null)
            {
                m_FloorSelect.Draw(spriteBatch);
            }

            if (m_SoundDialog != null)
            {
                m_SoundDialog.Draw(spriteBatch);
            }
            if (m_OptionsDialog != null)
            {
                m_OptionsDialog.Draw(spriteBatch);
            }

            if (m_MessageBox != null)
            {
                m_MessageBox.Draw(spriteBatch);
            }
        }