⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nicknamestyle.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc
{
    using System;
    using System.Drawing;
    using System.Xml;

    public class NickNameStyle : EStyleBase
    {
        public Color _displayNameColor;
        public Font _displayNameFont;
        public Bitmap _dropDownImage;
        public EAlignment _horAlignment;
        private static NickNameStyle _instance = new NickNameStyle();
        public System.Drawing.Point _location;
        public Bitmap _mouseDownBackgroundImage;
        public Bitmap _mouseOverBackgroundImage;
        public Color _onlineStatusColor;
        public Font _onlineStatusFont;
        public Size _size;
        public EAlignment _verAlignment;
        public EAlignment _xAlignment;
        public EAlignment _yAlignment;

        protected override void LoadStyle(XmlElement elem)
        {
            this.SetDefault();
            this._location.X = base.GetIntegerAttribute(elem, "left");
            this._location.Y = base.GetIntegerAttribute(elem, "top");
            this._size.Width = base.GetIntegerAttribute(elem, "width");
            this._size.Height = base.GetIntegerAttribute(elem, "height");
            this._xAlignment = EStyleBase.AlignmentStringToValue(base.GetStringAttribute(elem, "xAlignment"), EAlignment.left);
            this._yAlignment = EStyleBase.AlignmentStringToValue(base.GetStringAttribute(elem, "yAlignment"), EAlignment.top);
            this._horAlignment = EStyleBase.AlignmentStringToValue(base.GetStringAttribute(elem, "horizontalAlignment"), EAlignment.left);
            this._verAlignment = EStyleBase.AlignmentStringToValue(base.GetStringAttribute(elem, "virticalAlignment"), EAlignment.top);
            if (elem.HasAttribute("displayNameColor"))
            {
                this._displayNameColor = base.GetColorAttribute(elem, "displayNameColor");
            }
            if (elem.HasAttribute("onlineStatusColor"))
            {
                this._onlineStatusColor = base.GetColorAttribute(elem, "onlineStatusColor");
            }
            this._dropDownImage = base.GetImageAttribute(elem, "dropDownImage");
            this._mouseOverBackgroundImage = base.GetImageAttribute(elem, "mouseHoverImage");
            this._mouseDownBackgroundImage = base.GetImageAttribute(elem, "mouseDownImage");
        }

        private void SetDefault()
        {
            this._displayNameColor = Color.FromArgb(100, 100, 100);
            this._displayNameFont = new Font("SimSun", 9f, FontStyle.Bold);
            this._onlineStatusColor = Color.FromArgb(100, 100, 100);
            this._onlineStatusFont = new Font("SimSun", 9f);
            this._dropDownImage = null;
            this._mouseOverBackgroundImage = null;
            this._mouseDownBackgroundImage = null;
        }

        public static NickNameStyle Instance
        {
            get
            {
                return _instance;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -