Пример #1
0
        /// <summary>
        /// Renders the control using specified skin.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        protected override void render(Skin.SkinBase skin)
        {
            /* SORRY */
            if (IsEditing != lastEditing)
            {
                onEditingChanged();
                lastEditing = IsEditing;
            }

            if (IsHovered != lastHover)
            {
                onHoverChanged();
                lastHover = IsHovered;
            }
            /* SORRY */

            skin.DrawPropertyRow(this, label.Right, IsEditing, IsHovered | property.IsHovered);
        }
Пример #2
0
        /// <summary>
        /// Renders the control using specified skin.
        /// </summary>
        /// <param name="skin">Skin to use.</param>
        protected override void Render(Skin.SkinBase skin)
        {
            /* SORRY */
            if (IsEditing != m_LastEditing)
            {
                OnEditingChanged();
                m_LastEditing = IsEditing;
            }

            if (IsHovered != m_LastHover)
            {
                OnHoverChanged();
                m_LastHover = IsHovered;
            }
            /* SORRY */

            skin.DrawPropertyRow(this, m_Label.Right + m_Label.Margin.Right, IsEditing, IsHovered | m_Property.IsHovered);
        }