Esempio n. 1
0
 public CalibriLabel(GameWrapper i_Game, eFontSize i_FontSize)
     : this(i_Game)
 {
     if (i_FontSize == eFontSize.Normal)
     {
         TexturePath = @"Fonts/Calibri";
     }
     else if (i_FontSize == eFontSize.Large)
     {
         TexturePath = @"Fonts/CalibriLarge";
     }
     else if (i_FontSize == eFontSize.Huge)
     {
         TexturePath = @"Fonts/CalibriHuge";
     }
 }
Esempio n. 2
0
        public GameMenuItem(string i_ItemName, GameScreen i_GameScreen, Color i_Color, eFontSize i_FontSize = eFontSize.Big, params MethodKey[] i_Methods)
            : base(i_ItemName, i_Methods)
        {
            switch(i_FontSize)
            {
                case eFontSize.Medium:
                    m_TextSpriteType = SpritesFactory.eSpriteType.MediumText;
                    break;
                case eFontSize.Small:
                    m_TextSpriteType = SpritesFactory.eSpriteType.SmallText;
                    break;
            }

            m_Text = SpritesFactory.CreateSprite(i_GameScreen, m_TextSpriteType) as Text;
            m_Text.TextString = i_ItemName;
            m_Text.TintColor = r_OriginalColor = i_Color;
            m_GameScreen = i_GameScreen;
            m_MoveBetweenItemsSound = SoundFactory.CreateSound(this.m_GameScreen, SoundFactory.eSoundType.MenuMove);
        }
Esempio n. 3
0
        public GameMenuItem(string i_ItemName, GameScreen i_GameScreen, Color i_Color, eFontSize i_FontSize = eFontSize.Big, params MethodKey[] i_Methods)
            : base(i_ItemName, i_Methods)
        {
            switch (i_FontSize)
            {
            case eFontSize.Medium:
                m_TextSpriteType = SpritesFactory.eSpriteType.MediumText;
                break;

            case eFontSize.Small:
                m_TextSpriteType = SpritesFactory.eSpriteType.SmallText;
                break;
            }

            m_Text                  = SpritesFactory.CreateSprite(i_GameScreen, m_TextSpriteType) as Text;
            m_Text.TextString       = i_ItemName;
            m_Text.TintColor        = r_OriginalColor = i_Color;
            m_GameScreen            = i_GameScreen;
            m_MoveBetweenItemsSound = SoundFactory.CreateSound(this.m_GameScreen, SoundFactory.eSoundType.MenuMove);
        }