Example #1
0
        public LLEItem(LLEItemList list, Texture2D texture, SpriteFont font, string title)
            : base(new Vector2(-500, -500), texture, font, title, null)
        {
            mList = list;

            mSpacingW = 8;

            mSpacingH = 8;

            setWH((int)font.MeasureString(title).X + (mSpacingW * 2), (int)font.MeasureString(title).Y + (mSpacingH * 2));

            setDefaultColors();

            onClickEvent = changeIndex;
        }
Example #2
0
        public LLEItem(LLEItemList list, Texture2D texture, Texture2D icon)
            : base(new Vector2(-500, -500), texture, null, "", null)
        {
            mList = list;

            mIcon = icon;

            mSpacingW = 8;

            mSpacingH = 8;

            setWH(mIcon.Width + (mSpacingW * 2), mIcon.Height + (mSpacingH * 2));

            setDefaultColors();

            onClickEvent = changeIndex;
        }