objectelement.cs
来自「破解的飞信源代码」· CS 代码 · 共 66 行
CS
66 行
namespace Imps.Utils.TagParser
{
using System;
public class ObjectElement : TagElement
{
public ObjectElement(string name) : base(name)
{
}
public string Data
{
get
{
return base.GetAttributeString("data", "");
}
}
public int Height
{
get
{
return base.GetAttributeInt("height", -1);
}
}
public string Title
{
get
{
return base.GetAttributeString("title", "");
}
}
public ObjectType Type
{
get
{
switch (base.GetAttributeString("type", ""))
{
case "E":
case "Emotion":
return ObjectType.Emotion;
case "CE":
case "CustomizedEmotion":
return ObjectType.CustomizedEmotion;
case "Image":
return ObjectType.Image;
}
return ObjectType.Other;
}
}
public int Width
{
get
{
return base.GetAttributeInt("width", -1);
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?