📄 moodphasestyle.cs
字号:
namespace Imps.Client.Pc
{
using System;
using System.Drawing;
using System.Xml;
public class MoodPhaseStyle : EStyleBase
{
public Bitmap _dropDownImage;
public EAlignment _horAlignment;
private static MoodPhaseStyle _instance = new MoodPhaseStyle();
public System.Drawing.Point _location;
public Bitmap _mouseDownBackgroundImage;
public Bitmap _mouseOverBackgroundImage;
public Size _size;
public Color _textColor;
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("textColor"))
{
this._textColor = base.GetColorAttribute(elem, "textColor");
}
this._dropDownImage = base.GetImageAttribute(elem, "dropDownImage");
this._mouseOverBackgroundImage = base.GetImageAttribute(elem, "mouseHoverImage");
this._mouseDownBackgroundImage = base.GetImageAttribute(elem, "mouseDownImage");
}
private void SetDefault()
{
this._textColor = Color.FromArgb(100, 100, 100);
this._dropDownImage = null;
this._mouseOverBackgroundImage = null;
this._mouseDownBackgroundImage = null;
}
public static MoodPhaseStyle Instance
{
get
{
return _instance;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -