| | |
| | |
|
| | | //花仙玉购买的二次确认框(本次登录) 默认提示 MysticalQG104 是否花费<color=#109d06>{0}</color>仙玉进行购买?
|
| | | //type 对应枚举 BuyStoreItemCheckType 方便记忆
|
| | | public void UseMoneyCheck(int money, Action func, int type = 0, string tip = "MysticalQG104")
|
| | | public void UseMoneyCheck(int money, Action func, int type = 0, string tip = "MysticalQG104", string fullTip = "")
|
| | | {
|
| | | if (money == 0)
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), Language.Get(tip, money),
|
| | | Language.Get("ConfirmCancel102"), (Action<bool, bool>)((bool isOk, bool isToggle) =>
|
| | | ConfirmCancel.ToggleConfirmCancel(Language.Get("Mail101"), fullTip == "" ? Language.Get(tip, money) : fullTip,
|
| | | Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | |
| | | buyItemCheckDict[type] = isToggle;
|
| | | }
|
| | |
|
| | | }));
|
| | | });
|
| | | }
|
| | |
|
| | |
|