You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
870 B
38 lines
870 B
4 years ago
|
using AX.MessageSystem;
|
||
|
/// <summary>
|
||
|
/// 小地图按钮
|
||
|
/// </summary>
|
||
|
public class MiniMapButton : BaseButton {
|
||
|
/// <summary>
|
||
|
/// 按钮类型
|
||
|
/// </summary>
|
||
|
public MiniMapBtnType Type;
|
||
|
public override void RespondFun()
|
||
|
{
|
||
|
//根据按钮类型来发送消息通知管理类处理
|
||
|
switch (Type)
|
||
|
{
|
||
|
case MiniMapBtnType.Shrink:
|
||
|
MessageDispatcher.SendMessage(MessageName.MiniMapEnlarge.ToString());
|
||
|
break;
|
||
|
case MiniMapBtnType.Enlarge:
|
||
|
MessageDispatcher.SendMessage(MessageName.MiniMapShrink.ToString());
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
/// <summary>
|
||
|
/// 按钮类型
|
||
|
/// </summary>
|
||
|
public enum MiniMapBtnType
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 缩小
|
||
|
/// </summary>
|
||
|
Shrink,
|
||
|
/// <summary>
|
||
|
/// 放大
|
||
|
/// </summary>
|
||
|
Enlarge
|
||
|
}
|