| | |
| | | /// <param name="needCount 需要数量"></param>
|
| | | /// <param name="needTips">0 不响应 1 弹提示 2 弹获取途径tips</param>
|
| | | /// <returns></returns>
|
| | | public static bool CheckItemCount(PackType packType, int itemId, ulong needCount, int needTips = 0)
|
| | | public static bool CheckItemCount(PackType packType, int itemId, long needCount, int needTips = 0)
|
| | | {
|
| | | if (needCount <= 0)
|
| | | {
|
| | |
| | | return isEnough;
|
| | | }
|
| | |
|
| | | public static bool CheckCurrencyCount(int moneyType, ulong needCount, bool needTips = false)
|
| | | public static bool CheckCurrencyCount(int moneyType, long needCount, bool needTips = false)
|
| | | {
|
| | | if (needCount <= 0)
|
| | | {
|
| | | return true;
|
| | | }
|
| | |
|
| | | ulong haveCount = UIHelper.GetMoneyCnt(moneyType);
|
| | | long haveCount = UIHelper.GetMoneyCnt(moneyType);
|
| | |
|
| | | bool isEnough = haveCount >= needCount;
|
| | |
|
| | |
| | | #endregion
|
| | |
|
| | | //设置玩家货币显示
|
| | | public string OnChangeCoinsUnit(ulong value)
|
| | | public string OnChangeCoinsUnit(long value)
|
| | | {
|
| | | return UIHelper.ReplaceLargeNum(value);
|
| | | }
|