コード例 #1
0
        public CButton(CButton button)
        {
            _PartyModeID = button._PartyModeID;
            _Theme       = new SThemeButton
            {
                Skin         = button._Theme.Skin,
                SkinSelected = button._Theme.SkinSelected
            };

            MaxRect    = button.MaxRect;
            Color      = button.Color;
            SelColor   = button.SelColor;
            Texture    = button.Texture;
            SelTexture = button.SelTexture;

            Text        = new CText(button.Text);
            _SelText    = _SelText == null ? null : new CText(button._SelText);
            Selected    = false;
            EditMode    = false;
            _Selectable = button._Selectable;

            _Reflection       = button._Reflection;
            _ReflectionHeight = button._ReflectionHeight;
            _ReflectionSpace  = button._ReflectionSpace;

            _SelReflection       = button._SelReflection;
            _SelReflectionHeight = button._SelReflectionHeight;
            _SelReflectionSpace  = button._SelReflectionSpace;
        }
コード例 #2
0
        public CButton(SThemeButton theme, int partyModeID, bool buttonText = false)
        {
            _PartyModeID = partyModeID;
            _Theme       = theme;

            Text     = new CText(_Theme.Text, _PartyModeID, buttonText);
            _SelText = _Theme.SelText.HasValue ? new CText(_Theme.SelText.Value, _PartyModeID, buttonText) : null;

            Selected = false;
            EditMode = false;

            ThemeLoaded = true;
        }