Main/Assets/Code/Logic/MsgPrompt/MsgBoxInfo.cs

75 lines
1.8 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Thousandto.Code.Global;
using Thousandto.Plugins.Common;
using System;
using Thousandto.Core.Base;
namespace Thousandto.Code.Logic
{
/// <summary>
/// 对话框的数据
/// </summary>
public class MsgBoxInfo:MsgInfoBase
{
//第一个按钮
private MsgBoxButton _button1;
//第二个按钮
private MsgBoxButton _button2;
//点击背景关闭
private bool _isClickBGClose = false;
//半透信息值
private float _alphaValue = 1;
//消息Box类型
private MsgBoxInfoTypeCode _msgBoxInfoType;
//MsgBox的回调
private MyAction<MsgBoxResultCode> _onCallBack;
//隐藏后是否执行回调
public bool IsDoCallBackHideAfter { get; set; }
public MyAction<MsgBoxResultCode> OnCallBack
{
get { return _onCallBack; }
set { _onCallBack = value; }
}
public MsgBoxButton Button1
{
get { return _button1; }
set { _button1 = value; }
}
public MsgBoxButton Button2
{
get { return _button2; }
set { _button2 = value; }
}
public bool IsClickBGClose
{
get { return _isClickBGClose; }
set { _isClickBGClose = value; }
}
public float AlphaValue
{
get { return _alphaValue; }
set { _alphaValue = value; }
}
public MsgBoxInfoTypeCode MsgBoxInfoType
{
get
{
return _msgBoxInfoType;
}
set
{
_msgBoxInfoType = value;
}
}
}
}