| | |
| | | public static string generalItemTip; |
| | | public static string generalItemTip2; |
| | | |
| | | public static int moneyType; |
| | | public static int moneyNeedCount; |
| | | |
| | | public static List<Item> getItems { get; private set; } |
| | | public static string replaceItemName; |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | |
| | | public static void MoneyIconToggleConfirmByType(ToggleCheckType type, int moneyCnt, int _moneyType, string fullTip, Action func) |
| | | { |
| | | if (toggleCheckDict.ContainsKey(type) && toggleCheckDict[type]) |
| | | { |
| | | func?.Invoke(); |
| | | return; |
| | | } |
| | | |
| | | public static string moneyTitle; |
| | | public static string moneyTopInfo; |
| | | public static string moneybtnOkText; |
| | | public static int moneyType; |
| | | public static int moneyNeedCount; |
| | | public static ulong moneyHaveCount; |
| | | public static string moneyToggleText { get; private set; } |
| | | public static bool moneytoggleOpen { get; private set; } |
| | | public static bool moneytoggleOpenState { get; private set; } |
| | | MoneyIconToggleConfirm(moneyCnt, _moneyType, fullTip, Language.Get("ConfirmCancel102"), (bool isOk, bool isToggle) => |
| | | { |
| | | if (isOk) |
| | | { |
| | | func?.Invoke(); |
| | | toggleCheckDict[type] = isToggle; |
| | | } |
| | | |
| | | // public static Action<bool, bool> OnMoneyToggleConfirmAct; |
| | | // public static void MoneyIconToggleConfirm(string title, string topInfo,string okTxt, int type, |
| | | // int needCnt, ulong haveCnt, Action<bool, bool> func, bool toggleOpen = false, string toggleTxt = "", bool toggleOpenState = false) |
| | | // { |
| | | // moneyTitle = title; |
| | | // moneyTopInfo = topInfo; |
| | | // moneybtnOkText = okTxt; |
| | | // moneyType = type; |
| | | // moneyNeedCount = needCnt; |
| | | // moneyHaveCount = haveCnt; |
| | | // moneyToggleText = toggleTxt; |
| | | // moneytoggleOpen = toggleOpen; |
| | | // moneytoggleOpenState = toggleOpenState; |
| | | // OnMoneyToggleConfirmAct = func; |
| | | // if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>()) |
| | | // { |
| | | // UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>(); |
| | | // } |
| | | // } |
| | | }); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public static Action<bool, bool> OnMoneyToggleConfirmAct; |
| | | public static void MoneyIconToggleConfirm(int moneyCnt, int _moneyType, string content, string toggleTxt, Action<bool, bool> func, bool _toggle = false) |
| | | { |
| | | generalContent = content; |
| | | toggleContent = toggleTxt; |
| | | OnToggleConfirmEvent = func; |
| | | toggleOpenState = _toggle; |
| | | moneyType = _moneyType; |
| | | moneyNeedCount = moneyCnt; |
| | | if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>()) |
| | | { |
| | | UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | { |
| | | Auction = 0, //拍卖行 |
| | | WashCancel = 1, //洗练取消 |
| | | GoldRush = 2, //淘金 |
| | | } |
| | | |
| | | |