| | |
| | | waitEquipOP.Clear(); |
| | | lastShowEquipIndex = -1; |
| | | lastDropIndexs.Clear(); |
| | | waitEquipOPPack = false; |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | public override void Init() |
| | | { |
| | | base.Init(); |
| | | GetCmdArray(); |
| | | LaunchInHot.Instance.OnApplicationOut += OnApplicationOut; |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | |
| | | //货币确认框:有显示勾选的 |
| | | 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) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | //货币确认框:不显示勾选的 |
| | | public static void MoneyIconConfirm(int moneyCnt, int _moneyType, string content, Action<bool, bool> func) |
| | | { |
| | | generalContent = content; |
| | | OnToggleConfirmEvent = func; |
| | | moneyType = _moneyType; |
| | | moneyNeedCount = moneyCnt; |
| | | if (!UIManager.Instance.IsOpened<MoneyIconToggleConfirmWin>()) |
| | | { |
| | | UIManager.Instance.OpenWindow<MoneyIconToggleConfirmWin>(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | public enum ToggleCheckType |
| | |
| | | protected override void OnPreOpen() |
| | | { |
| | | m_Content.text = ConfirmCancel.generalContent; |
| | | m_ToggleTxt.text = ConfirmCancel.toggleContent; |
| | | m_Toggle.isOn = ConfirmCancel.toggleOpenState; |
| | | //代表不需要显示勾选框 |
| | | if (ConfirmCancel.toggleContent == "") |
| | | { |
| | | m_Toggle.SetActive(false); |
| | | m_Toggle.isOn = false; |
| | | } |
| | | else |
| | | { |
| | | m_Toggle.SetActive(true); |
| | | m_ToggleTxt.text = ConfirmCancel.toggleContent; |
| | | m_Toggle.isOn = ConfirmCancel.toggleOpenState; |
| | | } |
| | | |
| | | |
| | | moneyText.text = UIHelper.ShowUseMoney(ConfirmCancel.moneyType, ConfirmCancel.moneyNeedCount); |
| | | moneyIcon.SetIconWithMoneyType(ConfirmCancel.moneyType); |