Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | Register(typeof(HC005_tagGCCrossRealmPKBillboardInfo), typeof(DTCC005_tagGCCrossRealmPKBillboardInfo));
|
| | | Register(typeof(HC006_tagGCCrossRealmPKSeasonState), typeof(DTCC006_tagGCCrossRealmPKSeasonState));
|
| | | Register(typeof(HA815_tagMCZhuXianDecomposeResult), typeof(DTCA815_tagMCZhuXianDecomposeResult));
|
| | | Register(typeof(HAA1F_tagMCLuckyTreasureInfo), typeof(DTCAA1F_tagMCLuckyTreasureInfo));
|
| | | Register(typeof(HAA1E_tagMCLuckyTreasureResultInfo), typeof(DTCAA1E_tagMCLuckyTreasureResultInfo));
|
| | |
|
| | | #region 背包
|
| | | Register(typeof(H0724_tagRolePackCanUseCount), typeof(DTC0724_tagRolePackCanUseCount));
|
| | |
| | | checkClientTimer = Time.time + 60f;
|
| | | checkAssetVersionTimer = Time.time + 70f;
|
| | |
|
| | | WindowCenter.Instance.Open<MessageWin>();
|
| | | WindowCenter.Instance.Close<FightingPKWin>();
|
| | |
|
| | | if (VersionUtility.Instance.InIosAuditTime())
|
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, February 13, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class CrossRealmPKDanAwardConfig : ConfigBase { |
| | | |
| | | public int id { get ; private set ; }
|
| | | public string CrossZoneName { get ; private set; } |
| | | public int SeasonID { get ; private set ; }
|
| | | public int DanLV { get ; private set ; }
|
| | | public string DanLVAwardList { get ; private set; } |
| | | public string SeasonAwardList { get ; private set; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return id.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | |
| | | CrossZoneName = rawContents[1].Trim();
|
| | | |
| | | SeasonID=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | |
| | | DanLV=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | DanLVAwardList = rawContents[4].Trim();
|
| | | |
| | | SeasonAwardList = rawContents[5].Trim(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 96531a774cbac5a44a470f8684588371 |
| | | timeCreated: 1550050945 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, December 27, 2018 |
| | | // [ Date ]: Wednesday, February 13, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | fileFormatVersion: 2 |
| | | guid: f10a2faba8659904ab5c13d1a770a7e2 |
| | | timeCreated: 1545893867 |
| | | timeCreated: 1550050368 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Wednesday, February 13, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | | using System; |
| | | |
| | | namespace TableConfig { |
| | | |
| | | |
| | | public partial class LoginRewardConfig : ConfigBase { |
| | | |
| | | public int Id { get ; private set ; }
|
| | | public int ActionType { get ; private set ; }
|
| | | public string Description { get ; private set; } |
| | | public int jump { get ; private set ; }
|
| | | public int order { get ; private set ; }
|
| | | public int DailyQusetId { get ; private set ; }
|
| | | public int SpecialDisplayType { get ; private set ; } |
| | | |
| | | public override string getKey() |
| | | { |
| | | return Id.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | try |
| | | { |
| | | Id=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; |
| | | |
| | | ActionType=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | |
| | | Description = rawContents[2].Trim();
|
| | | |
| | | jump=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | |
| | | order=IsNumeric(rawContents[4]) ? int.Parse(rawContents[4]):0; |
| | | |
| | | DailyQusetId=IsNumeric(rawContents[5]) ? int.Parse(rawContents[5]):0; |
| | | |
| | | SpecialDisplayType=IsNumeric(rawContents[6]) ? int.Parse(rawContents[6]):0; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | DebugEx.Log(ex); |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 20bbea206a1a28d428792f768452039b |
| | | timeCreated: 1550027145 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | AddAsyncTask<FestivalRedpackTaskConfig>();
|
| | | AddAsyncTask<HolidayHomingConfig>();
|
| | | AddAsyncTask<HolidayHomingPointConfig>();
|
| | | |
| | | AddAsyncTask<LoginRewardConfig>();
|
| | | AddAsyncTask<CrossRealmPKDanAwardConfig>();
|
| | | while (!AllCompleted())
|
| | | {
|
| | | var completedCount = 0;
|
| | |
| | | PlayerSkillData data = GetSKillById(id);
|
| | | if (data == null)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("ThisSkillIsNotObtained_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("ThisSkillIsNotObtained_Z"));
|
| | | return;
|
| | | }
|
| | | if (data.skillCfg.UseType == 0)
|
| | |
| | | if (data.skillCfg == null || PlayerDatas.Instance.baseData.LV < data.skillCfg.LearnLVReq
|
| | | || data.skillCfg.FuncType != SkillModel.ACT_SKILL_TYPE)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1009"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1009"));
|
| | | return;
|
| | | }
|
| | | bool change = false;
|
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AA 08 开始幸运鉴宝 #tagCMStartLuckyTreasure
|
| | |
|
| | | public class CAA08_tagCMStartLuckyTreasure : GameNetPackBasic {
|
| | |
|
| | | public CAA08_tagCMStartLuckyTreasure () {
|
| | | combineCmd = (ushort)0x03FE;
|
| | | _cmd = (ushort)0xAA08;
|
| | | }
|
| | |
|
| | | public override void WriteToBytes () {
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 225d2cb7faa21894990324cc70551fc9 |
| | | timeCreated: 1550036943 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | |
| | | |
| | | public class DTC3202_tagServerResponse : DtcBasic { |
| | | public class DTC3202_tagServerResponse : DtcBasic
|
| | | { |
| | | |
| | | public override void Done(GameNetPackBasic vNetPack) { |
| | | public override void Done(GameNetPackBasic vNetPack)
|
| | | { |
| | | |
| | | base.Done(vNetPack); |
| | | |
| | | #if UNITY_EDITOR |
| | | H3202_tagServerResponse vNetData = vNetPack as H3202_tagServerResponse; |
| | | |
| | | if (vNetData != null) { |
| | | if (vNetData != null)
|
| | | { |
| | | DebugEx.LogFormat("---------- 收到服务端信息: {0}", vNetData.Message); |
| | | MessageWin.Inst.RevGMMsg(vNetData.Message); |
| | | ServerTipDetails.ReceivePackage(vNetData.Message); |
| | | } |
| | | #endif |
| | | } |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | | // AA 1E 幸运鉴宝结果信息 #tagMCLuckyTreasureResultInfo
|
| | |
|
| | |
|
| | |
|
| | | public class DTCAA1E_tagMCLuckyTreasureResultInfo : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HAA1E_tagMCLuckyTreasureResultInfo vNetData = vNetPack as HAA1E_tagMCLuckyTreasureResultInfo;
|
| | | ModelCenter.Instance.GetModel<LuckyTreasureModel>().UpdateLuckyTreasureResult(vNetData);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 2bcf78c754cc56f429694d6f8fd9f3c0 |
| | | timeCreated: 1550036943 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using Snxxz.UI;
|
| | | // AA 1F 幸运鉴宝活动信息 #tagMCLuckyTreasureInfo
|
| | |
|
| | |
|
| | |
|
| | | public class DTCAA1F_tagMCLuckyTreasureInfo : DtcBasic {
|
| | |
|
| | | public override void Done(GameNetPackBasic vNetPack) {
|
| | |
|
| | | base.Done(vNetPack);
|
| | |
|
| | | HAA1F_tagMCLuckyTreasureInfo vNetData = vNetPack as HAA1F_tagMCLuckyTreasureInfo;
|
| | | OperationTimeHepler.Instance.UpdateLuckyTreasure(vNetData);
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 73e9ffc8024789740a625c583b4cd026 |
| | | timeCreated: 1550036944 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AA 1E 幸运鉴宝结果信息 #tagMCLuckyTreasureResultInfo
|
| | |
|
| | | public class HAA1E_tagMCLuckyTreasureResultInfo : GameNetPackBasic {
|
| | | public ushort LuckyPoint; // 当前幸运点
|
| | | public byte HasFree; // 是否免费过
|
| | | public uint ItemID; // 物品ID
|
| | | public ushort ItemCnt; //物品数量
|
| | | public byte IsBind; // 是否绑定
|
| | |
|
| | | public HAA1E_tagMCLuckyTreasureResultInfo () {
|
| | | _cmd = (ushort)0xAA1E;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out LuckyPoint, vBytes, NetDataType.WORD);
|
| | | TransBytes (out HasFree, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out ItemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ItemCnt, vBytes, NetDataType.WORD);
|
| | | TransBytes (out IsBind, vBytes, NetDataType.BYTE);
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c5a095dc04a8c324fb1a80f21d824b47 |
| | | timeCreated: 1550036944 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | |
|
| | | // AA 1F 幸运鉴宝活动信息 #tagMCLuckyTreasureInfo
|
| | |
|
| | | public class HAA1F_tagMCLuckyTreasureInfo : GameNetPackBasic {
|
| | | public string StartDate; // 开始日期 y-m-d
|
| | | public string EndtDate; // 结束日期 y-m-d
|
| | | public byte ResetType; // 重置类型,0-0点重置;1-5点重置
|
| | | public ushort LimitLV; // 限制等级
|
| | | public ushort LuckyPoint; // 总幸运值
|
| | | public ushort Count; // 物品数
|
| | | public tagMCLuckyTreasureItem[] ItemList; // 随机库物品信息
|
| | |
|
| | | public HAA1F_tagMCLuckyTreasureInfo () {
|
| | | _cmd = (ushort)0xAA1F;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out StartDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out EndtDate, vBytes, NetDataType.Chars, 10);
|
| | | TransBytes (out ResetType, vBytes, NetDataType.BYTE);
|
| | | TransBytes (out LimitLV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out LuckyPoint, vBytes, NetDataType.WORD);
|
| | | TransBytes (out Count, vBytes, NetDataType.WORD);
|
| | | ItemList = new tagMCLuckyTreasureItem[Count];
|
| | | for (int i = 0; i < Count; i ++) {
|
| | | ItemList[i] = new tagMCLuckyTreasureItem();
|
| | | TransBytes (out ItemList[i].ItemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out ItemList[i].ItemCnt, vBytes, NetDataType.WORD);
|
| | | TransBytes (out ItemList[i].IsBind, vBytes, NetDataType.BYTE);
|
| | | }
|
| | | }
|
| | |
|
| | | public struct tagMCLuckyTreasureItem {
|
| | | public uint ItemID; // 物品ID
|
| | | public ushort ItemCnt; // 物品数量
|
| | | public byte IsBind; // 是否绑定
|
| | | }
|
| | |
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: b7f45b59365fc6848935aa59177a83a2 |
| | | timeCreated: 1550036944 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | public override void End() |
| | | { |
| | | WindowCenter.Instance.Open<MessageWin>(); |
| | | Application.backgroundLoadingPriority = ThreadPriority.BelowNormal; |
| | | DebugEx.LogFormat("StageLoad => Load Scene : {0} Finished.", command.toMapId); |
| | | } |
| | |
| | | #endif |
| | | } |
| | | |
| | | public LoginRewardModel __Gen_Delegate_Imp239(object p0) |
| | | public Snxxz.UI.LuckyTreasureModel __Gen_Delegate_Imp239(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel __gen_ret = (Snxxz.UI.LuckyTreasureModel)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.LuckyTreasureModel)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public LoginRewardModel __Gen_Delegate_Imp240(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FestivalRedpackModel __Gen_Delegate_Imp240(object p0) |
| | | public Snxxz.UI.FestivalRedpackModel __Gen_Delegate_Imp241(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp241(object p0) |
| | | public Snxxz.UI.AchievementModel __Gen_Delegate_Imp242(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RedEnvelopeModel __Gen_Delegate_Imp242(object p0) |
| | | public Snxxz.UI.RedEnvelopeModel __Gen_Delegate_Imp243(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.DateTime __Gen_Delegate_Imp243(object p0, object p1) |
| | | public System.DateTime __Gen_Delegate_Imp244(object p0, object p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp244(object p0, object p1, int p2) |
| | | public bool __Gen_Delegate_Imp245(object p0, object p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp245(object p0, int p1, out Snxxz.UI.FestivalRedpack p2) |
| | | public bool __Gen_Delegate_Imp246(object p0, int p1, out Snxxz.UI.FestivalRedpack p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp246(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.FestivalRedpackAchievement> p2) |
| | | public bool __Gen_Delegate_Imp247(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.FestivalRedpackAchievement> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp247(object p0, Snxxz.UI.Operation p1, int p2) |
| | | public void __Gen_Delegate_Imp248(object p0, Snxxz.UI.Operation p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp248(object p0) |
| | | public Snxxz.UI.FlashSaleModel __Gen_Delegate_Imp249(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp249(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | public void __Gen_Delegate_Imp250(object p0, Snxxz.UI.OperationFlashSale.FlashSaleGift p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp250(object p0) |
| | | public Snxxz.UI.OperationLuckyTreasure __Gen_Delegate_Imp251(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | |
| | | PCall(L, 1, 1, errFunc); |
| | | |
| | | |
| | | Snxxz.UI.OperationLuckyTreasure __gen_ret = (Snxxz.UI.OperationLuckyTreasure)translator.GetObject(L, errFunc + 1, typeof(Snxxz.UI.OperationLuckyTreasure)); |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | return __gen_ret; |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp252(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | translator.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MysticalPurchaseModel __Gen_Delegate_Imp253(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp251(object p0) |
| | | public Snxxz.UI.ImpactRankModel __Gen_Delegate_Imp254(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp252(object p0) |
| | | public Snxxz.UI.OSRedEnvelopeModel __Gen_Delegate_Imp255(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp253(object p0) |
| | | public Snxxz.UI.FairyLeagueModel __Gen_Delegate_Imp256(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp254(object p0) |
| | | public Snxxz.UI.FairyGrabBossModel __Gen_Delegate_Imp257(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp255(object p0) |
| | | public Snxxz.UI.OSGiftModel __Gen_Delegate_Imp258(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp256(object p0, Snxxz.UI.Operation p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | | { |
| | | #endif |
| | | RealStatePtr L = luaEnv.rawL; |
| | | int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); |
| | | ObjectTranslator translator = luaEnv.translator; |
| | | translator.PushAny(L, p0); |
| | | translator.Push(L, p1); |
| | | |
| | | PCall(L, 2, 0, errFunc); |
| | | |
| | | |
| | | |
| | | LuaAPI.lua_settop(L, errFunc - 1); |
| | | |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | } |
| | | #endif |
| | | } |
| | | |
| | | public OpenServiceAchievementModel __Gen_Delegate_Imp257(object p0) |
| | | public OpenServiceAchievementModel __Gen_Delegate_Imp259(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp258(object p0, int p1, object p2, int p3, int p4) |
| | | public void __Gen_Delegate_Imp260(object p0, int p1, object p2, int p3, int p4) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public SpringFestivalModel __Gen_Delegate_Imp259(object p0) |
| | | public SpringFestivalModel __Gen_Delegate_Imp261(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.ActivateShow.ActivateFunc __Gen_Delegate_Imp260() |
| | | public Snxxz.UI.ActivateShow.ActivateFunc __Gen_Delegate_Imp262() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp261(Snxxz.UI.ActivateShow.ActivateFunc p0) |
| | | public void __Gen_Delegate_Imp263(Snxxz.UI.ActivateShow.ActivateFunc p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp262() |
| | | public string __Gen_Delegate_Imp264() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp263(int p0, int p1, int p2) |
| | | public void __Gen_Delegate_Imp265(int p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp264(int p0, int p1, int p2, int p3) |
| | | public void __Gen_Delegate_Imp266(int p0, int p1, int p2, int p3) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp265(object p0) |
| | | public Snxxz.UI.RealmModel __Gen_Delegate_Imp267(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp266() |
| | | public Snxxz.UI.MagicianModel __Gen_Delegate_Imp268() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp267(uint p0, out System.Collections.Generic.Dictionary<int, int> p1) |
| | | public bool __Gen_Delegate_Imp269(uint p0, out System.Collections.Generic.Dictionary<int, int> p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp268(uint p0, int p1, out int p2) |
| | | public bool __Gen_Delegate_Imp270(uint p0, int p1, out int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public byte __Gen_Delegate_Imp269(int p0, int p1) |
| | | public byte __Gen_Delegate_Imp271(int p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp270(int p0, int p1, bool p2) |
| | | public void __Gen_Delegate_Imp272(int p0, int p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp271(Snxxz.UI.EquipShowSwitch.EquipShowSwitchType p0, uint p1) |
| | | public bool __Gen_Delegate_Imp273(Snxxz.UI.EquipShowSwitch.EquipShowSwitchType p0, uint p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp272(uint p0) |
| | | public void __Gen_Delegate_Imp274(uint p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp273(object p0) |
| | | public System.Collections.Generic.Dictionary<int, string> __Gen_Delegate_Imp275(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public int[] __Gen_Delegate_Imp274(object p0, int p1) |
| | | public int[] __Gen_Delegate_Imp276(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp275(object p0, int p1, int p2, int p3, out int p4) |
| | | public bool __Gen_Delegate_Imp277(object p0, int p1, int p2, int p3, out int p4) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp276(object p0, int p1) |
| | | public Snxxz.UI.GodWeaponInfo __Gen_Delegate_Imp278(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp277(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | public bool __Gen_Delegate_Imp279(object p0, int p1, out System.Collections.Generic.List<Snxxz.UI.GodWeaponCondition> p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public bool __Gen_Delegate_Imp278(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | public bool __Gen_Delegate_Imp280(object p0, int p1, out Snxxz.UI.AutoHammerCost p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, int> __Gen_Delegate_Imp279(object p0, int p1, int p2) |
| | | public System.Collections.Generic.Dictionary<int, int> __Gen_Delegate_Imp281(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public string __Gen_Delegate_Imp280(object p0, int p1, int p2) |
| | | public string __Gen_Delegate_Imp282(object p0, int p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp281(object p0) |
| | | public Snxxz.UI.FuncSwitchModel __Gen_Delegate_Imp283(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp282(object p0) |
| | | public System.Collections.Generic.Dictionary<int, Snxxz.UI.FuncSwitchModel.FuncSwithData> __Gen_Delegate_Imp284(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp283(object p0) |
| | | public Snxxz.UI.TestModel __Gen_Delegate_Imp285(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UIEffect __Gen_Delegate_Imp284(object p0) |
| | | public UIEffect __Gen_Delegate_Imp286(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig __Gen_Delegate_Imp285(object p0) |
| | | public Treasure3DConfig __Gen_Delegate_Imp287(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp286(object p0, int p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp288(object p0, int p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp287(object p0, UnityEngine.Vector3 p1) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp289(object p0, UnityEngine.Vector3 p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp288(object p0, bool p1, bool p2) |
| | | public void __Gen_Delegate_Imp290(object p0, bool p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp289(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | public void __Gen_Delegate_Imp291(object p0, Snxxz.UI.TreasureAnimation.TreasureShowStep p1) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp290(object p0, bool p1, int p2) |
| | | public void __Gen_Delegate_Imp292(object p0, bool p1, int p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp291(object p0) |
| | | public UnityEngine.Vector3 __Gen_Delegate_Imp293(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp292(object p0) |
| | | public Treasure3DConfig.TreasureParam __Gen_Delegate_Imp294(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp293() |
| | | public Snxxz.UI.UI3DTreasureSelectStage __Gen_Delegate_Imp295() |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public TreasureCategory __Gen_Delegate_Imp294(object p0) |
| | | public TreasureCategory __Gen_Delegate_Imp296(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp295(object p0, bool p1, TreasureCategory p2) |
| | | public void __Gen_Delegate_Imp297(object p0, bool p1, TreasureCategory p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp296(object p0, TreasureCategory p1, object p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp298(object p0, TreasureCategory p1, object p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public void __Gen_Delegate_Imp297(object p0, TreasureCategory p1, bool p2) |
| | | public void __Gen_Delegate_Imp299(object p0, TreasureCategory p1, bool p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp298(object p0, object p1, float p2) |
| | | public System.Collections.IEnumerator __Gen_Delegate_Imp300(object p0, object p1, float p2) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | #endif |
| | | } |
| | | |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp299(object p0) |
| | | public Snxxz.UI.SignInModel __Gen_Delegate_Imp301(object p0) |
| | | { |
| | | #if THREAD_SAFE || HOTFIX_ENABLE |
| | | lock (luaEnv.luaEnvLock) |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(LoginRewardModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 10, 8, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 14, 11, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRewardNumber", _m_GetRewardNumber); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCarryOutNum", _m_GetCarryOutNum); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "SendLoginAwardInfo", _m_SendLoginAwardInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetDay", _m_GetDay); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOpenFeatures", _m_IsOpenFeatures); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsJumpOpen", _m_IsJumpOpen); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "LoginAwardInfoUpdate", _e_LoginAwardInfoUpdate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoginAwardInfoDic", _g_get_LoginAwardInfoDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoginAwardInfoDic", _g_get_LoginAwardInfoDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoginAwardDayDic", _g_get_LoginAwardDayDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "LoginAwardDic", _g_get_LoginAwardDic); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "RedPointDic", _g_get_RedPointDic); |
| | |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetDay(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.GetDay( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsOpenFeatures(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsOpenFeatures( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsJumpOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsJumpOpen( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsAdvance(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_priorityOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.priorityOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_LoginAwardInfoDic(RealStatePtr L) |
| | |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onStateUpate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | LoginRewardModel gen_to_be_invoked = (LoginRewardModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.onStateUpate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onStateUpate -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to LoginRewardModel.onStateUpate!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class LuaWindowUtilityWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(LuaWindowUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Open", _m_Open_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Get", _m_Get_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "Close", _m_Close_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "CloseAll", _m_CloseAll_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "DestroyWin", _m_DestroyWin_xlua_st_); |
| | | Utils.RegisterFunc(L, Utils.CLS_IDX, "IsOpen", _m_IsOpen_xlua_st_); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | LuaWindowUtility gen_ret = new LuaWindowUtility(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to LuaWindowUtility constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Open_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | bool __forceSync = LuaAPI.lua_toboolean(L, 2); |
| | | int __functionalOrder = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | LuaWindowUtility.Open( __name, __forceSync, __functionalOrder ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 2)) |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | bool __forceSync = LuaAPI.lua_toboolean(L, 2); |
| | | |
| | | LuaWindowUtility.Open( __name, __forceSync ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | LuaWindowUtility.Open( __name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to LuaWindowUtility.Open!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Get_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | Snxxz.UI.Window gen_ret = LuaWindowUtility.Get( __name ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Close_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | LuaWindowUtility.Close( __name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CloseAll_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | LuaWindowUtility.CloseAll( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DestroyWin_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | LuaWindowUtility.DestroyWin( __name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsOpen_xlua_st_(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | |
| | | |
| | | |
| | | { |
| | | string __name = LuaAPI.lua_tostring(L, 1); |
| | | |
| | | bool gen_ret = LuaWindowUtility.IsOpen( __name ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 8c8468acc72958c47b63f4ae1361fc21 |
| | | timeCreated: 1550051895 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.FestivalRedpackModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 20, 8); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 23, 21, 8); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "festivalDay", _g_get_festivalDay); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "operationDay", _g_get_operationDay); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "grabRedpackTimes", _g_get_grabRedpackTimes); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "grabTotalJade", _g_get_grabTotalJade); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "redpackVoiceInterval", _g_get_redpackVoiceInterval); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_operationDay(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.FestivalRedpackModel gen_to_be_invoked = (Snxxz.UI.FestivalRedpackModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.operationDay); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_grabRedpackTimes(RealStatePtr L) |
| | | { |
| | | try { |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.ImpactRankModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 28, 19, 6); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 19, 6); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBillCfg", _m_GetBillCfg); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAwardType", _m_GetAwardType); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRankAwardConfig", _m_GetRankAwardConfig); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTagAwardConfig", _m_GetTagAwardConfig); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBillAward", _m_GetBillAward); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBillIndex", _m_GetBillIndex); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetTagIndex", _m_GetTagIndex); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetBillCfg(RealStatePtr L) |
| | | static int _m_GetAwardType(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | |
| | | int __type = LuaAPI.xlua_tointeger(L, 2); |
| | | int __index = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | ConfigBase gen_ret = gen_to_be_invoked.GetBillCfg( __type, __index ); |
| | | Snxxz.UI.ImpactRankModel.ImpactRankAwardType gen_ret = gen_to_be_invoked.GetAwardType( __type, __index ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetRankAwardConfig(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ImpactRankModel gen_to_be_invoked = (Snxxz.UI.ImpactRankModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __type = LuaAPI.xlua_tointeger(L, 2); |
| | | int __index = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | TableConfig.OSCBillRankAwardConfig gen_ret = gen_to_be_invoked.GetRankAwardConfig( __type, __index ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetTagAwardConfig(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.ImpactRankModel gen_to_be_invoked = (Snxxz.UI.ImpactRankModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | int __type = LuaAPI.xlua_tointeger(L, 2); |
| | | int __index = LuaAPI.xlua_tointeger(L, 3); |
| | | |
| | | TableConfig.OSCBillTagAwardConfig gen_ret = gen_to_be_invoked.GetTagAwardConfig( __type, __index ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUILuckyTreasureModelWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.LuckyTreasureModel); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 9, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Init", _m_Init); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBeforePlayerDataInitialize", _m_OnBeforePlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAfterPlayerDataInitialize", _m_OnAfterPlayerDataInitialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnPlayerLoginOk", _m_OnPlayerLoginOk); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnInit", _m_UnInit); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetOperation", _m_GetOperation); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "onStateUpate", _e_onStateUpate); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateResultEvent", _e_UpdateResultEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "resultInfoLocalSave", _g_get_resultInfoLocalSave); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "resultInfolist", _g_get_resultInfolist); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsOpen", _g_get_IsOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsAdvance", _g_get_IsAdvance); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "priorityOpen", _g_get_priorityOpen); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxLuckValue", _g_get_maxLuckValue); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "luckAwardId", _g_get_luckAwardId); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "maxRecordResultNum", _g_get_maxRecordResultNum); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "curLuckValue", _g_get_curLuckValue); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_ret = new Snxxz.UI.LuckyTreasureModel(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LuckyTreasureModel constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Init(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.Init( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnBeforePlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnBeforePlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnAfterPlayerDataInitialize(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnAfterPlayerDataInitialize( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OnPlayerLoginOk(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.OnPlayerLoginOk( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnInit(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | gen_to_be_invoked.UnInit( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetOperation(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | Snxxz.UI.OperationLuckyTreasure gen_ret = gen_to_be_invoked.GetOperation( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_resultInfoLocalSave(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushstring(L, gen_to_be_invoked.resultInfoLocalSave); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_resultInfolist(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.resultInfolist); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_IsAdvance(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsAdvance); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_priorityOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.lua_pushboolean(L, gen_to_be_invoked.priorityOpen); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_maxLuckValue(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxLuckValue); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_luckAwardId(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.luckAwardId); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_maxRecordResultNum(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.maxRecordResultNum); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_curLuckValue(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.curLuckValue); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_onStateUpate(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | System.Action<int> gen_delegate = translator.GetDelegate<System.Action<int>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<int>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.onStateUpate += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.onStateUpate -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LuckyTreasureModel.onStateUpate!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_UpdateResultEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.LuckyTreasureModel gen_to_be_invoked = (Snxxz.UI.LuckyTreasureModel)translator.FastGetCSObj(L, 1); |
| | | System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.UpdateResultEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.UpdateResultEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.LuckyTreasureModel.UpdateResultEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ebf7348e604d2d143b06340db94214d5 |
| | | timeCreated: 1550051902 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.OperationTimeHepler); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 30, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 31, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMultipleExp", _m_UpdateMultipleExp); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateConsumeRebate", _m_UpdateConsumeRebate); |
| | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashSale", _m_UpdateFlashSale); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateFlashRushToBuy", _m_UpdateFlashRushToBuy); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateWishingWellInfo", _m_UpdateWishingWellInfo); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateLuckyTreasure", _m_UpdateLuckyTreasure); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateGiftPackage", _m_UpdateGiftPackage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateBossReborn", _m_UpdateBossReborn); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshFairyCeremonyInfo", _m_RefreshFairyCeremonyInfo); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateLuckyTreasure(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.OperationTimeHepler gen_to_be_invoked = (Snxxz.UI.OperationTimeHepler)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | HAA19_tagMCActWishingWellInfo _package = (HAA19_tagMCActWishingWellInfo)translator.GetObject(L, 2, typeof(HAA19_tagMCActWishingWellInfo)); |
| | | |
| | | gen_to_be_invoked.UpdateLuckyTreasure( _package ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UpdateGiftPackage(RealStatePtr L) |
| | | { |
| | | try { |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using XLua; |
| | | using System.Collections.Generic; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | using Utils = XLua.Utils; |
| | | public class SnxxzUIWindowCenterWrap |
| | | { |
| | | public static void __Register(RealStatePtr L) |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(Snxxz.UI.WindowCenter); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 19, 2, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Get", _m_Get); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "OpenFromLocal", _m_OpenFromLocal); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Open", _m_Open); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Close", _m_Close); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseImmediately", _m_CloseImmediately); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetAll", _m_GetAll); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseAll", _m_CloseAll); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "CloseOthers", _m_CloseOthers); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestoryWinsByStage", _m_DestoryWinsByStage); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "DestroyWin", _m_DestroyWin); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "UnLoadAssetBundle", _m_UnLoadAssetBundle); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsOpen", _m_IsOpen); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistAnyFullScreenOrMaskWin", _m_ExistAnyFullScreenOrMaskWin); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "ExistAnyFullScreenOrMaskWinLEqual", _m_ExistAnyFullScreenOrMaskWinLEqual); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowBeforeOpenEvent", _e_windowBeforeOpenEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowAfterOpenEvent", _e_windowAfterOpenEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowBeforeCloseEvent", _e_windowBeforeCloseEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "windowAfterCloseEvent", _e_windowAfterCloseEvent); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "jumpWindowCloseEvent", _e_jumpWindowCloseEvent); |
| | | |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "uiRoot", _g_get_uiRoot); |
| | | Utils.RegisterFunc(L, Utils.GETTER_IDX, "asyncLoad", _g_get_asyncLoad); |
| | | |
| | | |
| | | |
| | | Utils.EndObjectRegister(type, L, translator, null, null, |
| | | null, null, null); |
| | | |
| | | Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Utils.EndClassRegister(type, L, translator); |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int __CreateInstance(RealStatePtr L) |
| | | { |
| | | |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | if(LuaAPI.lua_gettop(L) == 1) |
| | | { |
| | | |
| | | Snxxz.UI.WindowCenter gen_ret = new Snxxz.UI.WindowCenter(); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } |
| | | catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter constructor!"); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Get(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | Snxxz.UI.Window gen_ret = gen_to_be_invoked.Get( _name ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_OpenFromLocal(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.OpenFromLocal( _name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Open(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | bool _forceSync = LuaAPI.lua_toboolean(L, 3); |
| | | int _functionOrder = LuaAPI.xlua_tointeger(L, 4); |
| | | |
| | | gen_to_be_invoked.Open( _name, _forceSync, _functionOrder ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | bool _forceSync = LuaAPI.lua_toboolean(L, 3); |
| | | |
| | | gen_to_be_invoked.Open( _name, _forceSync ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.Open( _name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.Open!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_Close(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.Close( _name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CloseImmediately(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.CloseImmediately( _name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_GetAll(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | System.Collections.Generic.List<string> gen_ret = gen_to_be_invoked.GetAll( ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CloseAll(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | |
| | | if(gen_param_count == 2&& translator.Assignable<Snxxz.UI.WindowCenter.CloseAllIgnoreType>(L, 2)) |
| | | { |
| | | Snxxz.UI.WindowCenter.CloseAllIgnoreType _ignoreType;translator.Get(L, 2, out _ignoreType); |
| | | |
| | | gen_to_be_invoked.CloseAll( _ignoreType ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | if(gen_param_count == 1) |
| | | { |
| | | |
| | | gen_to_be_invoked.CloseAll( ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | return LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.CloseAll!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_CloseOthers(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | System.Collections.Generic.List<string> _windowNames = (System.Collections.Generic.List<string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<string>)); |
| | | Snxxz.UI.WindowCenter.CloseAllIgnoreType _ignoreType;translator.Get(L, 3, out _ignoreType); |
| | | |
| | | gen_to_be_invoked.CloseOthers( _windowNames, _ignoreType ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DestoryWinsByStage(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.WindowCenter.WindowStage _windowStage;translator.Get(L, 2, out _windowStage); |
| | | |
| | | gen_to_be_invoked.DestoryWinsByStage( _windowStage ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_DestroyWin(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | gen_to_be_invoked.DestroyWin( _name ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_UnLoadAssetBundle(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | Snxxz.UI.WindowCenter.WindowStage _windowStage;translator.Get(L, 2, out _windowStage); |
| | | |
| | | gen_to_be_invoked.UnLoadAssetBundle( _windowStage ); |
| | | |
| | | |
| | | |
| | | return 0; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_IsOpen(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | string _name = LuaAPI.lua_tostring(L, 2); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.IsOpen( _name ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExistAnyFullScreenOrMaskWin(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ExistAnyFullScreenOrMaskWin( ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_ExistAnyFullScreenOrMaskWinLEqual(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | |
| | | |
| | | |
| | | { |
| | | WindowType _windowType;translator.Get(L, 2, out _windowType); |
| | | |
| | | bool gen_ret = gen_to_be_invoked.ExistAnyFullScreenOrMaskWinLEqual( _windowType ); |
| | | LuaAPI.lua_pushboolean(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_uiRoot(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.uiRoot); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _g_get_asyncLoad(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | translator.Push(L, gen_to_be_invoked.asyncLoad); |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | return 1; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_windowBeforeOpenEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.windowBeforeOpenEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.windowBeforeOpenEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.windowBeforeOpenEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_windowAfterOpenEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.windowAfterOpenEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.windowAfterOpenEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.windowAfterOpenEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_windowBeforeCloseEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.windowBeforeCloseEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.windowBeforeCloseEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.windowBeforeCloseEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_windowAfterCloseEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.windowAfterCloseEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.windowAfterCloseEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.windowAfterCloseEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _e_jumpWindowCloseEvent(RealStatePtr L) |
| | | { |
| | | try { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | int gen_param_count = LuaAPI.lua_gettop(L); |
| | | Snxxz.UI.WindowCenter gen_to_be_invoked = (Snxxz.UI.WindowCenter)translator.FastGetCSObj(L, 1); |
| | | System.Action<Snxxz.UI.Window> gen_delegate = translator.GetDelegate<System.Action<Snxxz.UI.Window>>(L, 3); |
| | | if (gen_delegate == null) { |
| | | return LuaAPI.luaL_error(L, "#3 need System.Action<Snxxz.UI.Window>!"); |
| | | } |
| | | |
| | | if (gen_param_count == 3) |
| | | { |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { |
| | | gen_to_be_invoked.jumpWindowCloseEvent += gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { |
| | | gen_to_be_invoked.jumpWindowCloseEvent -= gen_delegate; |
| | | return 0; |
| | | } |
| | | |
| | | } |
| | | } catch(System.Exception gen_e) { |
| | | return LuaAPI.luaL_error(L, "c# exception:" + gen_e); |
| | | } |
| | | LuaAPI.luaL_error(L, "invalid arguments to Snxxz.UI.WindowCenter.jumpWindowCloseEvent!"); |
| | | return 0; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: cd420c96a2a274b44b4659ea1bb2353d |
| | | timeCreated: 1550051900 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | #if USE_UNI_LUA |
| | | using LuaAPI = UniLua.Lua; |
| | | using RealStatePtr = UniLua.ILuaState; |
| | | using LuaCSFunction = UniLua.CSharpFunctionDelegate; |
| | | #else |
| | | using LuaAPI = XLua.LuaDLL.Lua; |
| | | using RealStatePtr = System.IntPtr; |
| | | using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; |
| | | #endif |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Reflection; |
| | | |
| | | |
| | | namespace XLua.CSObjectWrap |
| | | { |
| | | public class XLua_Gen_Initer_Register__ |
| | | { |
| | | |
| | | |
| | | static void wrapInit0(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.UI.Image), UnityEngineUIImageWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.UI.Text), UnityEngineUITextWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.UI.Button), UnityEngineUIButtonWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DebugEx), DebugExWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ResourcesPath), ResourcesPathWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(AssetSource), AssetSourceWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Equation), EquationWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LaunchPostProcess), LaunchPostProcessWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Config), ConfigWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PlayerStoneData), PlayerStoneDataWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MarketModel), SnxxzUIMarketModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PlayerDatas), PlayerDatasWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RealmModel), SnxxzUIRealmModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SnxxzGame), SnxxzGameWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GameNetSystem), GameNetSystemWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(AssetBundleUtility), AssetBundleUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GameObjectPoolManager), GameObjectPoolManagerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UILoader), UILoaderWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SDKUtility), SDKUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SFXPlayUtility), SFXPlayUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(AnyCountDownUtility), AnyCountDownUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(AssetPreLoad), AssetPreLoadWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FlyObjectManager), FlyObjectManagerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SkillHelper), SkillHelperWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(StatusMgr), StatusMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(BossFakeLineUtility), BossFakeLineUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(BattleEffectPlayRule), BattleEffectPlayRuleWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GAMgr), GAMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(MapTransferUtility), MapTransferUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PreFightMission), PreFightMissionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PrepareHandler), PrepareHandlerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GuideDialogueModel), GuideDialogueModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GuideMessageModel), GuideMessageModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(NewGuideModel), NewGuideModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(StoryHintModel), StoryHintModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LuaBehaviour), LuaBehaviourWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ConfigUtil), ConfigUtilWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LuaGameNetPackBase), LuaGameNetPackBaseWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LuaGameNetSystem), LuaGameNetSystemWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(object), SystemObjectWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Object), UnityEngineObjectWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Vector2), UnityEngineVector2Wrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Vector3), UnityEngineVector3Wrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Vector4), UnityEngineVector4Wrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Quaternion), UnityEngineQuaternionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Color), UnityEngineColorWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Ray), UnityEngineRayWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Bounds), UnityEngineBoundsWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Ray2D), UnityEngineRay2DWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Time), UnityEngineTimeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.GameObject), UnityEngineGameObjectWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit1(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Component), UnityEngineComponentWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Behaviour), UnityEngineBehaviourWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Transform), UnityEngineTransformWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Resources), UnityEngineResourcesWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.TextAsset), UnityEngineTextAssetWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Keyframe), UnityEngineKeyframeWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.AnimationCurve), UnityEngineAnimationCurveWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.AnimationClip), UnityEngineAnimationClipWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.MonoBehaviour), UnityEngineMonoBehaviourWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem), UnityEngineParticleSystemWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.SkinnedMeshRenderer), UnityEngineSkinnedMeshRendererWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Renderer), UnityEngineRendererWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.WWW), UnityEngineWWWWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Light), UnityEngineLightWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Mathf), UnityEngineMathfWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(System.Collections.Generic.List<int>), SystemCollectionsGenericList_1_SystemInt32_Wrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnityEngine.Debug), UnityEngineDebugWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ModelUtility), ModelUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LuaWindow), LuaWindowWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LuaWindowUtility), LuaWindowUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.AchievementModel), SnxxzUIAchievementModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ActivityModel), SnxxzUIActivityModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(AssetVersionUtility), AssetVersionUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DownLoadAndDiscompressTask), DownLoadAndDiscompressTaskWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(InGameDownLoad), InGameDownLoadWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BetterEquipGetModel), SnxxzUIBetterEquipGetModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ItemUseModel), SnxxzUIItemUseModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PreciousItemGetModel), SnxxzUIPreciousItemGetModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RealmBetterEquipModel), SnxxzUIRealmBetterEquipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(BlastFurnaceModel), BlastFurnaceModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GetItemPathModel), GetItemPathModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PrayForDurgModel), SnxxzUIPrayForDurgModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BossRebornModel), SnxxzUIBossRebornModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BossShowModel), SnxxzUIBossShowModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ChatBubbleModel), SnxxzUIChatBubbleModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ChatCenter), SnxxzUIChatCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(VoiceHttpRequest), VoiceHttpRequestWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(VersionUtility), VersionUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ComposeWinModel), ComposeWinModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SelectEquipModel), SelectEquipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(CrossServerUtility), CrossServerUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.CrossServerBossModel), SnxxzUICrossServerBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.CrossServerOneVsOneModel), SnxxzUICrossServerOneVsOneModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Item_Class), Item_ClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OpponentInformation), SnxxzUIOpponentInformationWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DailyQuestActionTimer), SnxxzUIDailyQuestActionTimerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DailyQuestModel), SnxxzUIDailyQuestModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ResourcesBackModel), SnxxzUIResourcesBackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DebugUtility), DebugUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzModel), SnxxzUIDogzModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzPackModel), SnxxzUIDogzPackModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit2(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DogzDungeonModel), SnxxzUIDogzDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonAssistModel), SnxxzUIDungeonAssistModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.Dungeon), SnxxzUIDungeonWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonLiquidModel), SnxxzUIDungeonLiquidModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DungeonModel), SnxxzUIDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(IceLodeStarAwardClass), IceLodeStarAwardClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TrialDungeonModel), SnxxzUITrialDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyBossModel), SnxxzUIFairyBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyFeastModel), SnxxzUIFairyFeastModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyGrabBossModel), SnxxzUIFairyGrabBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyLeagueModel), SnxxzUIFairyLeagueModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairyModel), SnxxzUIFairyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.KingFairyModel), SnxxzUIKingFairyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UnionTaskModel), UnionTaskModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FairylandCeremonyModel), SnxxzUIFairylandCeremonyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FakeDungeonUtility), FakeDungeonUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDecomposeModel), SnxxzUIFashionDecomposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FashionDressModel), SnxxzUIFashionDressModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BossHomeModel), SnxxzUIBossHomeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.DemonJarModel), SnxxzUIDemonJarModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ElderGodAreaModel), SnxxzUIElderGodAreaModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FindPreciousModel), SnxxzUIFindPreciousModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FindPreciousTimer), SnxxzUIFindPreciousTimerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PersonalBossModel), SnxxzUIPersonalBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RewardPreviewGroup), SnxxzUIRewardPreviewGroupWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WorldBossModel), SnxxzUIWorldBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FriendsModel), FriendsModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GMCmdModel), GMCmdModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatherSoulComposeModel), SnxxzUIGatherSoulComposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatherSoulDungeonModel), SnxxzUIGatherSoulDungeonModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GatheringSoulModel), SnxxzUIGatheringSoulModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.VirtualPackModel), SnxxzUIVirtualPackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GuardModel), SnxxzUIGuardModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.HappyXBModel), SnxxzUIHappyXBModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.HeavenBattleInfo), SnxxzUIHeavenBattleInfoWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(HeavenBattleModel), HeavenBattleModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(HttpRequest), HttpRequestWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastyBossModel), SnxxzUIJadeDynastyBossModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastyDecomposeModel), SnxxzUIJadeDynastyDecomposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastyEquipModel), SnxxzUIJadeDynastyEquipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastyGemModel), SnxxzUIJadeDynastyGemModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastySkillModel), SnxxzUIJadeDynastySkillModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.JadeDynastyTowerModel), SnxxzUIJadeDynastyTowerModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FBHelpPointExchageModel), SnxxzUIFBHelpPointExchageModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.KnapsackTimeCDMgr), SnxxzUIKnapsackTimeCDMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BoxGetItemModel), SnxxzUIBoxGetItemModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ItemOverdueModel), SnxxzUIItemOverdueModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ItemTipsModel), SnxxzUIItemTipsModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PackModelInterface), SnxxzUIPackModelInterfaceWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PackSendQuestMgr), SnxxzUIPackSendQuestMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PlayerPackModel), SnxxzUIPlayerPackModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit3(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TreasureEffectModel), SnxxzUITreasureEffectModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BatchUseModel), SnxxzUIBatchUseModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.KingTreasureShowModel), SnxxzUIKingTreasureShowModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(KnapSackEventMgr), KnapSackEventMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.LoginModel), SnxxzUILoginModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ServerListCenter), ServerListCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.LoginAdModel), SnxxzUILoginAdModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(CapacityDelayModel), CapacityDelayModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoinTaskTipModel), CoinTaskTipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FeatureNoticeModel), FeatureNoticeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MainRedDot), SnxxzUIMainRedDotWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OffLineOnHookModel), SnxxzUIOffLineOnHookModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PKModel), SnxxzUIPKModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.StoryMissionsModel), SnxxzUIStoryMissionsModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TaskAllocation), SnxxzUITaskAllocationWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TipPanel), SnxxzUITipPanelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PutawayData), PutawayDataWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BattleHint), SnxxzUIBattleHintWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GMNotify), SnxxzUIGMNotifyWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SysNotifyMgr), SysNotifyMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(HorseClass), HorseClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FunctionalGuideCenter), SnxxzUIFunctionalGuideCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.NewBieCenter), SnxxzUINewBieCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.NewYearFairylandCeremonyModel), SnxxzUINewYearFairylandCeremonyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OffLineTimeLackModel), SnxxzUIOffLineTimeLackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.AccumulateRechargeModel), SnxxzUIAccumulateRechargeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FestivalRedpackModel), SnxxzUIFestivalRedpackModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FlashRushToBuyModel), SnxxzUIFlashRushToBuyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FlashSaleModel), SnxxzUIFlashSaleModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ImpactRankModel), SnxxzUIImpactRankModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OpenServerActivityCenter), SnxxzUIOpenServerActivityCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(InSevenDayModel), InSevenDayModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LoginRewardModel), LoginRewardModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.LuckyTreasureModel), SnxxzUILuckyTreasureModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MonthlyInvestmentModel), SnxxzUIMonthlyInvestmentModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MysticalPurchaseModel), SnxxzUIMysticalPurchaseModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OSGiftModel), SnxxzUIOSGiftModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OSRedEnvelopeModel), SnxxzUIOSRedEnvelopeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OpenServerActivityNotifyModel), SnxxzUIOpenServerActivityNotifyModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ActionTypeClass), ActionTypeClassWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RedEnvelopeModel), SnxxzUIRedEnvelopeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SpringFestivalModel), SpringFestivalModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WishingPoolModel), SnxxzUIWishingPoolModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PetReinforceModel), PetReinforceModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PetBackpack), PetBackpackWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RidingAndPetActivationModel), SnxxzUIRidingAndPetActivationModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PlayerDeadModel), PlayerDeadModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RankModel), SnxxzUIRankModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(RealmPracticeModel), RealmPracticeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.Redpoint), SnxxzUIRedpointWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RedpointCenter), SnxxzUIRedpointCenterWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MagicianModel), SnxxzUIMagicianModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RoleModel), SnxxzUIRoleModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RolePointModel), SnxxzUIRolePointModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TitleModel), SnxxzUITitleModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RoleParticularModel), SnxxzUIRoleParticularModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RolePromoteModel), SnxxzUIRolePromoteModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RuneComposeModel), SnxxzUIRuneComposeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RuneModel), SnxxzUIRuneModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.RuneTowerModel), SnxxzUIRuneTowerModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(QuickSetting), QuickSettingWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SkillModel), SnxxzUISkillModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TalentModel), SnxxzUITalentModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(CoroutineMgr), CoroutineMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(BuyItemPopModel), BuyItemPopModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.BuySuccessModel), SnxxzUIBuySuccessModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(StoreModel), StoreModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(EquipReinforceModel), EquipReinforceModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PlayerSuitModel), SnxxzUIPlayerSuitModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(EquipWashModel), EquipWashModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GemModel), SnxxzUIGemModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GodBeastModel), GodBeastModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(HowToPlayModel), HowToPlayModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(WashProModel), WashProModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WingsRedDot), SnxxzUIWingsRedDotWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ActivitiesPushMgr), SnxxzUIActivitiesPushMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ChatSetting), ChatSettingWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FuncSwitchModel), SnxxzUIFuncSwitchModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(HangUpSetModel), HangUpSetModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PrivateRemind), PrivateRemindWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SetPrivateModel), SnxxzUISetPrivateModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SettingEffectMgr), SettingEffectMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SettingMgr), SettingMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SystemSetting), SystemSettingWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TaiChiModel), TaiChiModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.GroupDungeonChallengeProcessor), SnxxzUIGroupDungeonChallengeProcessorWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TeamModel), SnxxzUITeamModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(PwdKeyboard), PwdKeyboardWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TreasureModel), SnxxzUITreasureModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TreasureSoulModel), SnxxzUITreasureSoulModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.TreasureFindHostModel), SnxxzUITreasureFindHostModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FairyJadeInvestmentModel), FairyJadeInvestmentModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FirstTimeRechargeModel), SnxxzUIFirstTimeRechargeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LimitedTimePackageItemClassModel), LimitedTimePackageItemClassModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(NeedForWhiteModel), NeedForWhiteModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OSTimeLimitGiftModel), SnxxzUIOSTimeLimitGiftModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.VipInvestModel), SnxxzUIVipInvestModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WheelOfFortuneModel), SnxxzUIWheelOfFortuneModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.VipModel), SnxxzUIVipModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(SpeechTranslate), SpeechTranslateWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.AwardExchangeModel), SnxxzUIAwardExchangeModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ConsumeRebateModel), SnxxzUIConsumeRebateModelWrap.__Register); |
| | | |
| | | } |
| | | |
| | | static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.LevelGiftModel), SnxxzUILevelGiftModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MultipleExpModel), SnxxzUIMultipleExpModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MultipleRealmPointModel), SnxxzUIMultipleRealmPointModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.OperationTimeHepler), SnxxzUIOperationTimeHeplerWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.PrayerModel), SnxxzUIPrayerModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.SignInModel), SnxxzUISignInModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WelfareCenter), SnxxzUIWelfareCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ModelCenter), SnxxzUIModelCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.WindowCenter), SnxxzUIWindowCenterWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(WindowJumpMgr), WindowJumpMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.MapModel), SnxxzUIMapModelWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(WorldMapSkip), WorldMapSkipWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.FunctionButton), SnxxzUIFunctionButtonWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.ItemBehaviour), SnxxzUIItemBehaviourWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeDownMgr), TimeDownMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(Snxxz.UI.UI3DModelExhibition), SnxxzUIUI3DModelExhibitionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ButtonEx), ButtonExWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(EffectMgr), EffectMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeMgr), TimeMgrWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UIEffect), UIEffectWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(ComponentExtersion), ComponentExtersionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(DeviceUtility), DeviceUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(FileExtersion), FileExtersionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GMCommand), GMCommandWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(GlobalTimeEvent), GlobalTimeEventWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LanguageVerify), LanguageVerifyWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(LayerUtility), LayerUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(MaterialUtility), MaterialUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(OperationLogCollect), OperationLogCollectWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(RunTimeExceptionUtility), RunTimeExceptionUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TimeUtility), TimeUtilityWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(TransformExtension), TransformExtensionWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UIHelper), UIHelperWrap.__Register); |
| | | |
| | | |
| | | translator.DelayWrapLoader(typeof(UIUtility), UIUtilityWrap.__Register); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | static void Init(LuaEnv luaenv, ObjectTranslator translator) |
| | | { |
| | | |
| | | wrapInit0(luaenv, translator); |
| | | |
| | | wrapInit1(luaenv, translator); |
| | | |
| | | wrapInit2(luaenv, translator); |
| | | |
| | | wrapInit3(luaenv, translator); |
| | | |
| | | wrapInit4(luaenv, translator); |
| | | |
| | | wrapInit5(luaenv, translator); |
| | | |
| | | |
| | | translator.AddInterfaceBridgeCreator(typeof(System.Collections.IEnumerator), SystemCollectionsIEnumeratorBridge.__Create); |
| | | |
| | | } |
| | | |
| | | static XLua_Gen_Initer_Register__() |
| | | { |
| | | XLua.LuaEnv.AddIniter(Init); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | namespace XLua |
| | | { |
| | | public partial class ObjectTranslator |
| | | { |
| | | static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ s_gen_reg_dumb_obj = new XLua.CSObjectWrap.XLua_Gen_Initer_Register__(); |
| | | static XLua.CSObjectWrap.XLua_Gen_Initer_Register__ gen_reg_dumb_obj {get{return s_gen_reg_dumb_obj;}} |
| | | } |
| | | |
| | | internal partial class InternalGlobals |
| | | { |
| | | |
| | | static InternalGlobals() |
| | | { |
| | | extensionMethodMap = new Dictionary<Type, IEnumerable<MethodInfo>>() |
| | | { |
| | | |
| | | }; |
| | | |
| | | genTryArrayGetPtr = StaticLuaCallbacks.__tryArrayGet; |
| | | genTryArraySetPtr = StaticLuaCallbacks.__tryArraySet; |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 76ab9fef6104ded43916de2a746cc1bb |
| | | timeCreated: 1550051893 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | <type fullname="Snxxz.UI.OpenServerActivityCenter" preserve="all"/> |
| | | <type fullname="InSevenDayModel" preserve="all"/> |
| | | <type fullname="LoginRewardModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.LuckyTreasureModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.MonthlyInvestmentModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.MysticalPurchaseModel" preserve="all"/> |
| | | <type fullname="Snxxz.UI.OSGiftModel" preserve="all"/> |
| | |
| | | case InGameDownLoad.State.Pause:
|
| | | if (Application.internetReachability == NetworkReachability.NotReachable)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.GetFromLocal(24));
|
| | | ServerTipDetails.DisplayNormalTip(Language.GetFromLocal(24));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | {
|
| | | if (string.IsNullOrEmpty(m_UserName.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("UserName_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("UserName_Z"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (string.IsNullOrEmpty(m_IdentityNumber.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("IdentityNumber_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("IdentityNumber_Z"));
|
| | | return;
|
| | | }
|
| | |
|
| | | var identityNumber = m_IdentityNumber.text;
|
| | | if (identityNumber.Length != 15 && identityNumber.Length != 18)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("IdentityNumber_Z1"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("IdentityNumber_Z1"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | private void OnAuthenticationOk(SDKUtility.FP_DoIDAuthentication _result)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(_result.errordesc);
|
| | | ServerTipDetails.DisplayNormalTip(_result.errordesc);
|
| | |
|
| | | if (_result.errorcode == "1")
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip("Material101");
|
| | | ServerTipDetails.DisplayNormalTip("Material101");
|
| | | }
|
| | | AchievementGoto.guideAchievementId = 0;
|
| | | }
|
| | |
| | | var length = GetChatMessageLength(msg);
|
| | | if (length > CHAT_INFO_CNT)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1014"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1014"));
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | int limit = Config.Instance.Get<FuncOpenLVConfig>((int)FuncOpenEnum.Fairy).LimitLV;
|
| | | if (PlayerDatas.Instance.baseData.LV < limit)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1136", limit));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1136", limit));
|
| | | return;
|
| | | }
|
| | | CloseImmediately();
|
| | |
| | | int limit = Config.Instance.Get<FuncOpenLVConfig>((int)FuncOpenEnum.Fairy).LimitLV;
|
| | | if (PlayerDatas.Instance.baseData.LV < limit)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1136", limit));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1136", limit));
|
| | | return;
|
| | | }
|
| | | WindowCenter.Instance.Close<SocialWin>();
|
| | |
| | | isJumpTo = false;
|
| | | if (!composeWinModel.IsEnoughFixedMat(thirdTypeData.itemCompound) || !composeWinModel.IsEnoughUnfixedMat(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | }
|
| | | else if (!composeWinModel.IsEnoughMoney(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1011"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1011"));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | composeWinModel.SendComposeRequest(compoundModel,fixedItemIndexDict,composeEffect,1);
|
| | |
| | | else
|
| | | {
|
| | | isIncreaseRate = false;
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose110", increaseNeedNum, itemConfig.ItemName));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose110", increaseNeedNum, itemConfig.ItemName));
|
| | | }
|
| | | }
|
| | | RefreshComposeSuccessRate();
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | case RoleEquipType.retSpiritAnimal:
|
| | | if (!composeWinModel.IsEnoughUnfixedMat(compoundModel))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | bool isCanCompose = true;
|
| | | if (!composeWinModel.IsEnoughFixedMat(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | isCanCompose = false;
|
| | | }
|
| | | else if (!composeWinModel.IsEnoughMoney(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1011"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1011"));
|
| | | isCanCompose = false;
|
| | | }
|
| | |
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedItemIndexDic();
|
| | |
| | |
|
| | | if (answer.Result == 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose102"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose102"));
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose103"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose103"));
|
| | | }
|
| | |
|
| | | RefreshUI(compoundModel);
|
| | |
| | | bool isCanCompose = true;
|
| | | if (!composeWinModel.IsEnoughFixedMat(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | isCanCompose = false;
|
| | | }
|
| | | else if (!composeWinModel.IsEnoughMoney(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1011"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1011"));
|
| | | isCanCompose = false;
|
| | | }
|
| | |
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (answer.Result == 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose102"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose102"));
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose103"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose103"));
|
| | | }
|
| | |
|
| | | RefreshUI(compoundModel);
|
| | |
| | | int i = 0;
|
| | | if (!IsEnoughUnfixedMat(compoundModel))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | return;
|
| | | }
|
| | | var packType = GetPackTypeByMakerId(compoundModel.makeID);
|
| | |
| | | bool isCanCompose = true;
|
| | | if (!composeWinModel.IsEnoughFixedMat(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Compose101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Compose101"));
|
| | | isCanCompose = false;
|
| | | }
|
| | | else if (!composeWinModel.IsEnoughMoney(thirdTypeData.itemCompound))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1011"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1011"));
|
| | | isCanCompose = false;
|
| | | }
|
| | |
|
| | |
| | | bool isTrailer = composeWinModel.IsTrailerByLevel(compoundModel);
|
| | | if (isTrailer)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("FuncOpenLv", compoundModel.levelNeed));
|
| | | return;
|
| | | }
|
| | | SetFixedMatIndex();
|
| | |
| | | InGameDownLoad.Instance.TryDownLoad(InGameDownLoad.Dominant.Whole);
|
| | | return;
|
| | | }
|
| | | int remainNum = CrossServerOneVsOnePlayerInfo.Instance.GetDayRemainNum();
|
| | | if (remainNum < 1)
|
| | | {
|
| | | WindowCenter.Instance.Open<CrossSeverOneVsOneBuyMatchTimesWin>();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | if (crossServerModel.isClickCoolTime) return;
|
| | |
| | | public bool TryGetMaxRank(out int upScore)
|
| | | {
|
| | | upScore = 0;
|
| | | var preArenaConfig = Config.Instance.Get<CrossServerArenaConfig>(DanLV - 1);
|
| | | var arenaConfig = Config.Instance.Get<CrossServerArenaConfig>(DanLV);
|
| | | if (arenaConfig != null)
|
| | | if (arenaConfig != null && arenaConfig.LVUpScore > 0)
|
| | | {
|
| | | upScore = arenaConfig.LVUpScore;
|
| | | if(preArenaConfig != null)
|
| | | {
|
| | | upScore = arenaConfig.LVUpScore - preArenaConfig.LVUpScore;
|
| | | }
|
| | | else
|
| | | {
|
| | | upScore = arenaConfig.LVUpScore;
|
| | | }
|
| | | }
|
| | | return upScore == 0;
|
| | | }
|
| | |
| | | private int MianOpenLV = 0;//跨服按钮开启条件
|
| | |
|
| | | public string ZoneName = string.Empty;//赛区名
|
| | | private int currentId = 0;
|
| | | public override void Init()
|
| | | {
|
| | | GetSeasonAward();
|
| | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | currentId = 0;
|
| | | ZoneID = 0;
|
| | | SeasonID = 0;
|
| | | PkDanLvNow = 0;
|
| | |
| | | WindowCenter.Instance.Open<CrossServerSettlementWin>();
|
| | | }
|
| | | }
|
| | | private void GetSeasonAward()
|
| | | public void GetSeasonAward()//段位奖励数据获取
|
| | | {
|
| | | var config = Config.Instance.GetAllValues<CrossServerArenaConfig>();
|
| | | for (int i = 0; i < config.Count; i++)
|
| | | // if(currentId)
|
| | | var seasonID = CrossServerOneVsOnePKSeason.Instance.SeasonID;
|
| | | if (seasonID == 0)
|
| | | {
|
| | | var _config = config[i];
|
| | | if (!SegmentRewardDic.ContainsKey(_config.DanLV))
|
| | | {
|
| | | seasonID +=1;
|
| | | }
|
| | | var configPK = Config.Instance.GetAllValues<CrossRealmPKDanAwardConfig>();
|
| | | // var config = Config.Instance.GetAllValues<CrossServerArenaConfig>();
|
| | | for (int i = 0; i < configPK.Count; i++)
|
| | | {
|
| | | var _config = configPK[i];
|
| | | if (!SegmentRewardDic.ContainsKey(_config.DanLV) && _config.SeasonID== seasonID)
|
| | | { |
| | | SeasonAwardClass seasonAwardClass = new SeasonAwardClass();
|
| | | seasonAwardClass.DanLv = _config.DanLV;
|
| | | seasonAwardClass.Name = _config.Name;
|
| | | seasonAwardClass.Score = _config.LVUpScore;
|
| | | var crossServerArena = Config.Instance.Get<CrossServerArenaConfig>(_config.DanLV);
|
| | | if (crossServerArena != null)
|
| | | {
|
| | | seasonAwardClass.Name = crossServerArena.Name;
|
| | | seasonAwardClass.Score = crossServerArena.LVUpScore;
|
| | | } |
| | | var _jsonData = LitJson.JsonMapper.ToObject(_config.DanLVAwardList);
|
| | | List<Item_Class> itemClassList = new List<Item_Class>();
|
| | | for (int j = 0; j < _jsonData.Count; j++)
|
| | |
| | | danLvUpObj.SetActive(!isMaxRank);
|
| | | if (!isMaxRank)
|
| | | {
|
| | | scorePerText.text = StringUtility.Contact(playerInfo.Score, "/", maxScore);
|
| | | scoreSlider.value = (float)playerInfo.Score / maxScore;
|
| | | var preUpScore = Config.Instance.Get<CrossServerArenaConfig>(playerInfo.DanLV - 1);
|
| | | int curScore = playerInfo.Score;
|
| | | if(preUpScore != null)
|
| | | {
|
| | | curScore -= preUpScore.LVUpScore; |
| | | }
|
| | | scorePerText.text = StringUtility.Contact(curScore, "/", maxScore);
|
| | | scoreSlider.value = (float)curScore / maxScore;
|
| | | }
|
| | | }
|
| | | private void ClickHonorStore()
|
| | |
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | CrossServerOneVsOnePlayerInfo.Instance.UpdatePlayerInfoEvent += SetDisplay;
|
| | | SetDisplay();
|
| | | }
|
| | | protected override void OnAfterOpen()
|
| | |
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | |
| | | CrossServerOneVsOnePlayerInfo.Instance.UpdatePlayerInfoEvent -= SetDisplay;
|
| | | }
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
| | |
|
| | | private void ClickBuyTimes()
|
| | | {
|
| | | if (!crossServerModel.TryGetBuyMatchTimes("CrossMatching21")) return;
|
| | |
|
| | | ulong gold = UIHelper.GetMoneyCnt(1);
|
| | | ulong bindGold = UIHelper.GetMoneyCnt(2);
|
| | | ulong sumGold = gold + bindGold;
|
| | |
| | | private void SendBuyTimes()
|
| | | {
|
| | | crossServerModel.SendBuyMatchCount();
|
| | | CloseImmediately();
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(result.errordesc);
|
| | | ServerTipDetails.DisplayNormalTip(result.errordesc);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("LoginFailed_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("LoginFailed_Z"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | var _enterTimes = model.GetEnterTimes(DemonJarModel.DEMONJAR_MAPID);
|
| | | if ((_totalTimes - _enterTimes) >= DemonJarModel.TOTALTIME_LIMIT)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("DemonJar18"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("DemonJar18"));
|
| | | return false;
|
| | | }
|
| | | }
|
| | |
| | | var jadeDynastyBossModel = ModelCenter.Instance.GetModel<JadeDynastyBossModel>();
|
| | | if ((_totalTimes - _enterTimes) >= jadeDynastyBossModel.challengeLimitCount)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("DemonJar18"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("DemonJar18"));
|
| | | return false;
|
| | | }
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | |
| | | SysNotifyMgr.Instance.ShowTip("Multiple_UpLV", dungeonConfig.LVLimitMin);
|
| | | break;
|
| | | case 2:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("InsufficientTL_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("InsufficientTL_Z"));
|
| | | break;
|
| | | case 3:
|
| | | var requireLineId = model.selectedKylinDungeon.lineId - 1;
|
| | |
| | | int limit = Config.Instance.Get<FuncOpenLVConfig>((int)FuncOpenEnum.Fairy).LimitLV;
|
| | | if (PlayerDatas.Instance.baseData.LV < limit)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1106", limit));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1106", limit));
|
| | | return false;
|
| | | }
|
| | | return true;
|
| | |
| | | }
|
| | | if (model.presentFairy < 0 || model.presentFairy >= model.fairyList.Count)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1016"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1016"));
|
| | | return;
|
| | | }
|
| | | PlayerFairyData.FairyData fairy = model.fairyList[model.presentFairy];
|
| | |
| | | FamilyConfig cfg = Config.Instance.Get<FamilyConfig>(fairy.FamilyLV);
|
| | | if (fairy.MemberCount >= cfg.memberCnt)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1017"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1017"));
|
| | | return;
|
| | | }
|
| | | if (model.FairyRequested((int)fairy.FamilyID))
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.mine.FamilyLV == 3 && fairy.MemberCount > 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1018"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1018"));
|
| | | return;
|
| | | }
|
| | | else
|
| | |
| | | {
|
| | | if (!PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanOpenBoss))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1019"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1019"));
|
| | | return;
|
| | | }
|
| | | }
|
| | | if (TimeUtility.Hour < fairyBossModel.FairyBossStartHour || TimeUtility.Hour >= fairyBossModel.FairyBossEndHour)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1020"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1020"));
|
| | | return;
|
| | | }
|
| | | if (PlayerDatas.Instance.fairyData.weekBossOpenCnt >= fairyBossModel.GetFairyBossWeekCount())
|
| | |
| | | }
|
| | | if (PlayerDatas.Instance.fairyData.fairy.FamilyHornor < fairyBossModel.OpenFairyBossNeed)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1124"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1124"));
|
| | | OnFoodGetWay();
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | if (TimeUtility.Hour < fairyBossModel.FairyBossStartHour || TimeUtility.Hour >= fairyBossModel.FairyBossEndHour)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1020"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1020"));
|
| | | return;
|
| | | }
|
| | | ModelCenter.Instance.GetModel<DungeonModel>().SingleChallenge(fairyBossModel.MapId);
|
| | |
| | | {
|
| | | if (DirtyWordConfig.IsDirtWord(notifyInput.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1007"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1007"));
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.LV < model.createFairyLv)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1005"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1005"));
|
| | | return;
|
| | | }
|
| | | if (string.IsNullOrEmpty(creationInput.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1015"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1015"));
|
| | | return;
|
| | | }
|
| | | if (DirtyWordConfig.IsDirtWord(creationInput.text) || UIHelper.HasSpecialCharac(creationInput.text)
|
| | |
| | | {
|
| | | if (presentDuty == changeMember.FamilyLV)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1029"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1029"));
|
| | | return;
|
| | | }
|
| | | FamilyConfig cfg = Config.Instance.Get<FamilyConfig>(PlayerDatas.Instance.fairyData.fairy.FamilyLV);
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.GetEliteList().Count >= cfg.eliteCnt)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1030"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1030"));
|
| | | return;
|
| | | }
|
| | | OnChangeDuty();
|
| | |
| | | {
|
| | | if (PlayerDatas.Instance.fairyData.GetDeputyLeaderList().Count >= cfg.deputyLeaderCnt)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1031"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1031"));
|
| | | return;
|
| | | }
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("L1003"), Language.Get("L1032", changeMember.Name), (bool isOk) =>
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | | #endregion
|
| | | private void Goto()
|
| | |
| | | { |
| | | if (!PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanNotify)) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1019")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1019")); |
| | | return; |
| | | } |
| | | WindowCenter.Instance.Open<FairyChangeTipWin>(); |
| | |
| | | { |
| | | if (!PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanCall)) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1019")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1019")); |
| | | return; |
| | | } |
| | | CA406_tagCGChangeFamilyAcceptJoinType acceptPack = new CA406_tagCGChangeFamilyAcceptJoinType(); |
| | |
| | | { |
| | | if (!PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanCall)) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1019")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1019")); |
| | | return; |
| | | } |
| | | WindowCenter.Instance.Open<FairyRequestWin>(); |
| | |
| | | int limit = Config.Instance.Get<FuncOpenLVConfig>((int)FuncOpenEnum.Fairy).LimitLV;
|
| | | if (PlayerDatas.Instance.baseData.LV < limit)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1106", limit));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1106", limit));
|
| | | return;
|
| | | }
|
| | | if (PlayerDatas.Instance.fairyData.HasFairy)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("HasFairyTip"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("HasFairyTip"));
|
| | | return;
|
| | | }
|
| | | CA602_tagCGRequesJoinFamily rqPack = new CA602_tagCGRequesJoinFamily();
|
| | |
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyMine += OnRefreshFairyMine; |
| | | OnRefreshApplyList(); |
| | | |
| | | if (applyList.Count > 0)
|
| | | {
|
| | | CA402_tagCGViewFamilyRequestInfo pak = new CA402_tagCGViewFamilyRequestInfo();
|
| | | GameNetSystem.Instance.SendInfo(pak);
|
| | | if (applyList.Count > 0) |
| | | { |
| | | CA402_tagCGViewFamilyRequestInfo pak = new CA402_tagCGViewFamilyRequestInfo(); |
| | | GameNetSystem.Instance.SendInfo(pak); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | protected override void OnAfterClose() |
| | | { |
| | | PlayerDatas.Instance.fairyData.OnRefreshApplyList -= OnRefreshApplyList;
|
| | | PlayerDatas.Instance.fairyData.OnRefreshApplyList -= OnRefreshApplyList; |
| | | PlayerDatas.Instance.fairyData.OnRefreshFairyMine -= OnRefreshFairyMine; |
| | | }
|
| | |
|
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private void OnRefreshFairyMine()
|
| | | {
|
| | | if (!PlayerDatas.Instance.fairyData.HasFairy
|
| | | || !PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanCall))
|
| | | {
|
| | | CloseImmediately();
|
| | | }
|
| | | private void OnRefreshFairyMine() |
| | | { |
| | | if (!PlayerDatas.Instance.fairyData.HasFairy |
| | | || !PlayerDatas.Instance.fairyData.IsCanFunc(PlayerFairyData.LimitFunc.CanCall)) |
| | | { |
| | | CloseImmediately(); |
| | | } |
| | | } |
| | | private void OnRefreshFairyInfo() |
| | | { |
| | |
| | | } |
| | | } |
| | | if (!isOnline) { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1097")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1097")); |
| | | return; |
| | | } |
| | | HandleApply(0, true); |
| | |
| | | private void OnAgree(PlayerFairyData.FairyApply apply) |
| | | { |
| | | if (apply.IsOnLine == 0) { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1096")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1096")); |
| | | return; |
| | | } |
| | | HandleApply(apply.PlayerID, true); |
| | |
| | | if (cfg == null) return; |
| | | if (playerid == 0 && isOk) { |
| | | if (applyList.Count > cfg.memberCnt - fairy.MemberCount) { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1027")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1027")); |
| | | return; |
| | | } |
| | | } |
| | | else if (isOk) { |
| | | if (cfg.memberCnt - fairy.MemberCount < 1) { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1028")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1028")); |
| | | return; |
| | | } |
| | | } |
| | |
| | | {
|
| | | if(!isHaveRecieve)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("UnionLiven104"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("UnionLiven104"));
|
| | | }
|
| | | AchievementGoto.guideAchievementId = 0;
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("UnionLiven105"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("UnionLiven105"));
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("UnionLiven104"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("UnionLiven104"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | {
|
| | | if ((totalTimes - enterTimes) >= DemonJarModel.TOTALTIME_LIMIT)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("DemonJar18"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("DemonJar18"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Mail103"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Mail103"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | } |
| | | else |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Friend106")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Friend106")); |
| | | } |
| | | |
| | | } |
| | |
| | | } |
| | | else |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Friend106")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Friend106")); |
| | | } |
| | | } |
| | | |
| | |
| | |
|
| | | private void OnClickGMInfoBtn()
|
| | | {
|
| | | MessageWin.Inst.OnGMOpen();
|
| | | ServerTipDetails.OpenGMPanel();
|
| | | }
|
| | |
|
| | | private void OnClickLookBtn()
|
| | |
| | | var enterTimes = dungeonModel.GetEnterTimes(JadeDynastyBossModel.JADEDYNASTY_MAP);
|
| | | if ((totalTimes - enterTimes) >= model.challengeLimitCount)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("DemonJar18"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("DemonJar18"));
|
| | | return;
|
| | | }
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | |
| | | ItemConfig boxConfig = Config.Instance.Get<ItemConfig>(itemId);
|
| | | if(PlayerDatas.Instance.baseData.LV < boxConfig.UseLV)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("MakeUseItem101",boxConfig.UseLV));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("MakeUseItem101",boxConfig.UseLV));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else if (strCoins.Length >= 19)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("KnapS127"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("KnapS127"));
|
| | | }
|
| | | return strCoins;
|
| | | }
|
| | |
| | | int playerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (playerLv < config.UseLV)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("MakeUseItem101", useItemModel.chinItemModel.UseLV));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("MakeUseItem101", useItemModel.chinItemModel.UseLV));
|
| | | return false;
|
| | | }
|
| | | break;
|
| | |
| | | }
|
| | | if(!isCanUse)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("RoleElixir3"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("RoleElixir3"));
|
| | | }
|
| | | AchievementGoto.guideAchievementId = 0;
|
| | | }
|
| | |
| | | if (useNum > itemModel.itemInfo.ItemCount)
|
| | | {
|
| | | useNum = itemModel.itemInfo.ItemCount;
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("MaxUseNum"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("MaxUseNum"));
|
| | | }
|
| | | else if(useNum < 1)
|
| | | {
|
| | |
| | | if(useNum > itemModel.itemInfo.ItemCount)
|
| | | {
|
| | | useNum = itemModel.itemInfo.ItemCount;
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("MaxUseNum"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("MaxUseNum"));
|
| | | }
|
| | |
|
| | | numText.text = useNum.ToString();
|
| | |
| | | {
|
| | | if(chooseId == 0)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("ItemSwith_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("ItemSwith_Z"));
|
| | | return;
|
| | | }
|
| | | ItemModel itemModel = playerPack.GetItemModelByGUID(BoxModel.guid);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("KnapS129"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("KnapS129"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | if (string.IsNullOrEmpty(m_Account.text) || m_Account.text.Length < 6 || !IsNumberOrAlphabet(m_Account.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Account_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Account_Z"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(m_Password.text) || m_Password.text.Length < 6 || !IsNumberOrAlphabet(m_Password.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Password_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Password_Z"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(result.errordesc);
|
| | | ServerTipDetails.DisplayNormalTip(result.errordesc);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("RegistrationFailed_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("RegistrationFailed_Z"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(result.errordesc);
|
| | | ServerTipDetails.DisplayNormalTip(result.errordesc);
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("LoginFailed_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("LoginFailed_Z"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | if (userNameInput.text.Equals(string.Empty))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameNull"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameNull"));
|
| | | return;
|
| | | }
|
| | | int error = 0;
|
| | |
| | | switch (error)
|
| | | {
|
| | | case 1:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameLimit"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameLimit"));
|
| | | break;
|
| | | case 2:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameShort"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameShort"));
|
| | | break;
|
| | | }
|
| | | return;
|
| | |
| | | if (DirtyWordConfig.IsDirtWord(userNameInput.text) || UIHelper.HasSpecialCharac(userNameInput.text)
|
| | | || DirtyNameConfig.IsDirtName(userNameInput.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1007"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1007"));
|
| | | return;
|
| | | }
|
| | | if (Application.internetReachability == NetworkReachability.NotReachable)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1116"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1116"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (Application.internetReachability == NetworkReachability.NotReachable)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1116"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1116"));
|
| | | return;
|
| | | }
|
| | | C0108_tagCRoleLoginAsk tagCRoleLoginAsk = new C0108_tagCRoleLoginAsk();
|
| | |
| | | if (string.IsNullOrEmpty(_result))
|
| | | {
|
| | | busy = false;
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1117"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1117"));
|
| | | NetLinkWin.Hide();
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | if (stringSet.Length > 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(stringSet[1]);
|
| | | ServerTipDetails.DisplayNormalTip(stringSet[1]);
|
| | | }
|
| | |
|
| | | busy = false;
|
| | |
| | | case VersionAuthority.InterTest:
|
| | | if (string.IsNullOrEmpty(m_Account.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1095"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1095"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | if (CheckOpenLoginAd())
|
| | | {
|
| | | DayRemind.Instance.SetDayRemind(DayRemind.LOGIN_AD_TIP, true);
|
| | | SnxxzGame.Instance.StartCoroutine(Co_OpenAd());
|
| | | var _id = 0;
|
| | | if (TryGetLoginAd(-1, out _id))
|
| | | {
|
| | | presentAdId = _id;
|
| | | todayRemind = true;
|
| | | PopupWindowsProcessor.Instance.Add("LoginAdWin");
|
| | | }
|
| | | login = false;
|
| | | return true;
|
| | | }
|
| | |
| | | {
|
| | | return false;
|
| | | }
|
| | | if (IsDungeon())
|
| | | if (MapUtility.IsDungeon(PlayerDatas.Instance.baseData.MapID))
|
| | | {
|
| | | return false;
|
| | | }
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | private bool IsDungeon()
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | var mapConfig = Config.Instance.Get<MapConfig>(mapId);
|
| | | return mapConfig != null && mapConfig.MapFBType != 0;
|
| | | }
|
| | |
|
| | | public void Goto(int _id)
|
| | | {
|
| | | var config = Config.Instance.Get<LoginAdConfig>(_id);
|
| | | if (config != null)
|
| | | {
|
| | | WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)config.jump);
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_OpenAd()
|
| | | {
|
| | | yield return null;
|
| | | var _id = 0;
|
| | | if (TryGetLoginAd(-1, out _id))
|
| | | {
|
| | | presentAdId = _id;
|
| | | todayRemind = true;
|
| | | WindowCenter.Instance.Open<LoginAdWin>();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | | #endregion
|
| | | private void Display()
|
| | |
| | | return;
|
| | | }
|
| | | CloseImmediately();
|
| | | TipPanel.Instance.IsOPenTip();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (PlayerDatas.Instance.hero.SkillMgr.Get(_skillId).cd > 0)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("SkillCooling_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("SkillCooling_Z"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | TipPanel.Instance.IsOPenTip();
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | | void OnCreateGridLineCell(ScrollerController gridCtrl)//预制体创建
|
| | |
| | | int blank = playerPack.GetReaminGridCount(PackType.rptItem);
|
| | | if (blank < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("BackpackReward_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("BackpackReward_Z"));
|
| | | return;
|
| | | }
|
| | | if (!_AllMissionDict.ContainsKey(_TaskId))
|
| | |
| | | int blank = playerPack.GetReaminGridCount(PackType.rptItem);
|
| | | if (blank < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("BackpackReward_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("BackpackReward_Z"));
|
| | | return;
|
| | | }
|
| | | if (!_AllMissionDict.ContainsKey(_TaskId))
|
| | |
| | | public void IsOPenTip()
|
| | | {
|
| | | var inDungeon = IsDungeon();
|
| | | if (loginAdModel.CheckOpen() || WindowCenter.Instance.IsOpen<LoginAdWin>())//广告
|
| | | loginAdModel.CheckOpen();
|
| | | if (onHookModel.IsOpenOffLineOnHookBool)//脱机挂
|
| | | {
|
| | |
|
| | | }
|
| | | else if (onHookModel.IsOpenOffLineOnHookBool)//脱机挂
|
| | | {
|
| | | WindowCenter.Instance.Open<OffLineOnHookWin>();
|
| | | PopupWindowsProcessor.Instance.Add("OffLineOnHookWin");
|
| | | onHookModel.IsOpenOffLineOnHookBool = false;
|
| | | }
|
| | | else if (firstTimeRechargeModel.IsTryOut == 1 && !inDungeon)//装备试用
|
| | | if (firstTimeRechargeModel.IsTryOut == 1 && !inDungeon)//装备试用
|
| | | {
|
| | | firstTimeRechargeModel.OpenFirstChargeTrialWin();
|
| | | }
|
| | |
|
| | | else if (featureNoticeModel.IsShowFeatureN())//功能预告面板
|
| | | {
|
| | | SysNotifyMgr.Instance.StartCoroutine(featureNoticeModel.WhetherToPlayTheBox());
|
| | |
| | | {
|
| | | if (m_SearchInput.text.Equals(string.Empty))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Market_Text_41"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Market_Text_41"));
|
| | | return;
|
| | | }
|
| | | m_Searching = true;
|
| | |
| | | int gridCnt = PackModel.GetReaminGridCount(PackType.rptItem); |
| | | if (gridCnt < 1) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("KnapS130")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("KnapS130")); |
| | | return; |
| | | } |
| | | C1B03_tagCMPlayerRecaptureBourseItem putoutpack = new C1B03_tagCMPlayerRecaptureBourseItem(); |
| | |
| | | using DG.Tweening;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class MessageWin : Window
|
| | | {
|
| | | private static MessageWin _inst = null;
|
| | | public static MessageWin Inst
|
| | | {
|
| | | get
|
| | | {
|
| | | if (_inst == null)
|
| | | {
|
| | | _inst = WindowCenter.Instance.Get<MessageWin>();
|
| | | }
|
| | |
|
| | | return _inst;
|
| | | }
|
| | | }
|
| | |
|
| | | [SerializeField] RectTransform m_ContianerFixedTip0;
|
| | | [SerializeField] RichText m_FixedTip0;
|
| | |
|
| | | [SerializeField] List<RectTransform> m_ContianerFixedTips;
|
| | | [SerializeField] List<RichText> m_FixedTips;
|
| | | List<bool> m_FixedTipDisplays = new List<bool>();
|
| | |
|
| | | #region GM
|
| | | [SerializeField] GameObject gmPanel;
|
| | | [SerializeField] ScrollerController gmCtrl;
|
| | | [SerializeField] Toggle gmToggle;
|
| | | [SerializeField] Toggle gmUpdateToggle;
|
| | | [SerializeField] Button gmClose;
|
| | | #endregion
|
| | |
|
| | | public void ShowFixedTip(string tip, ArrayList infoList = null)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | m_FixedTip0.SetExtenalData(infoList);
|
| | | m_FixedTip0.text = tip;
|
| | | if (!m_ContianerFixedTip0.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_ContianerFixedTip0.gameObject.SetActive(true);
|
| | | }
|
| | | m_ContianerFixedTip0.DoWaitRestart();
|
| | | }
|
| | |
|
| | | public void ShowFixedTips(string tip, ArrayList infoList = null)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | var _index = m_FixedTipDisplays.FindIndex((x) =>
|
| | | {
|
| | | return !x;
|
| | | });
|
| | | _index = _index == -1 ? 0 : _index;
|
| | | m_FixedTips[_index].SetExtenalData(infoList);
|
| | | m_FixedTips[_index].text = tip;
|
| | | m_FixedTipDisplays[_index] = true;
|
| | | if (!m_ContianerFixedTips[_index].gameObject.activeInHierarchy)
|
| | | {
|
| | | m_ContianerFixedTips[_index].gameObject.SetActive(true);
|
| | | }
|
| | | m_ContianerFixedTips[_index].DoWaitRestart();
|
| | | }
|
| | |
|
| | | private void OnHideFixedTip(Component com)
|
| | | {
|
| | | com.DoWaitStop();
|
| | | com.gameObject.SetActive(false);
|
| | |
|
| | | var _index = m_ContianerFixedTips.FindIndex((x) =>
|
| | | {
|
| | | return x.Equals(com);
|
| | | });
|
| | | if (_index != -1)
|
| | | {
|
| | | m_FixedTipDisplays[_index] = false;
|
| | | }
|
| | | }
|
| | | [SerializeField] RectTransform m_ContainerNormalHint;
|
| | | [SerializeField] RichText m_NormalHint;
|
| | |
|
| | | [SerializeField] RectTransform m_ContainerServerTip;
|
| | | [SerializeField] ScaleTween m_ServerTipScaleTween;
|
| | |
| | | [SerializeField] RichText m_ServerTip;
|
| | | [SerializeField, Header("全服广播停留时间")] float m_ServerTipKeepTime = 1.5f;
|
| | |
|
| | | private bool serverTipPrepared = true;
|
| | | public void ShowServerTip()
|
| | | [SerializeField] RectTransform m_ContainerGM;
|
| | | [SerializeField] ScrollerController m_ScrollControl;
|
| | | [SerializeField] Toggle m_AutoPopToggle;
|
| | | [SerializeField] Toggle m_AutoRefreshToggle;
|
| | | [SerializeField] Button m_GMClose;
|
| | |
|
| | | bool m_ServerTipPrepared = true;
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | if (!serverTipPrepared)
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_ContainerNormalHint.OnWaitCompelete(OnHintDisplayComplete);
|
| | | m_ScrollControl.OnRefreshCell += OnRefreshGmCell;
|
| | | m_ScrollControl.lockType = EnhanceLockType.LockVerticalBottom;
|
| | | m_GMClose.onClick.AddListener(OnGMClose);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | m_ServerTipPrepared = true;
|
| | |
|
| | | #if UNITY_EDITOR
|
| | | m_ContainerGM.gameObject.SetActive(VersionConfig.Get().debugVersion);
|
| | | #else
|
| | | m_ContainerGM.gameObject.SetActive(false);
|
| | | #endif
|
| | | ServerTipDetails.normalHintRefresh += CheckNormalHint;
|
| | | ServerTipDetails.serverHintRefresh += CheckServerHint;
|
| | | ServerTipDetails.gmMessageRefresh += DisplayGM;
|
| | | ServerTipDetails.gmOpenEvent += GmOpenEvent;
|
| | | CheckNormalHint();
|
| | | CheckServerHint();
|
| | | DisplayGM(string.Empty);
|
| | |
|
| | | if (ServerTipDetails.requireOpenGM)
|
| | | {
|
| | | if (hasOnFrom)
|
| | | {
|
| | | OnGMOpen();
|
| | | }
|
| | | ServerTipDetails.requireOpenGM = false;
|
| | | }
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | ServerTipDetails.normalHintRefresh -= CheckNormalHint;
|
| | | ServerTipDetails.serverHintRefresh -= CheckServerHint;
|
| | | ServerTipDetails.gmMessageRefresh -= DisplayGM;
|
| | | ServerTipDetails.gmOpenEvent -= GmOpenEvent;
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | }
|
| | |
|
| | | private void GmOpenEvent()
|
| | | {
|
| | | if (ServerTipDetails.requireOpenGM)
|
| | | {
|
| | | if (hasOnFrom)
|
| | | {
|
| | | OnGMOpen();
|
| | | }
|
| | | ServerTipDetails.requireOpenGM = false;
|
| | | }
|
| | | }
|
| | |
|
| | | void CheckNormalHint()
|
| | | {
|
| | | var hint = ServerTipDetails.RequireNormalHint();
|
| | | if (hint != null)
|
| | | {
|
| | | DisplayNormalHint(hint);
|
| | | }
|
| | | }
|
| | |
|
| | | void DisplayNormalHint(SystemHintData hint)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | m_NormalHint.SetExtenalData(hint.extentionData);
|
| | | m_NormalHint.text = hint.message;
|
| | | if (!m_ContainerNormalHint.gameObject.activeInHierarchy)
|
| | | {
|
| | | m_ContainerNormalHint.gameObject.SetActive(true);
|
| | | }
|
| | | m_ContainerNormalHint.DoWaitRestart();
|
| | | }
|
| | |
|
| | | private void OnHintDisplayComplete(Component com)
|
| | | {
|
| | | com.DoWaitStop();
|
| | | com.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | void CheckServerHint()
|
| | | {
|
| | | if (!m_ServerTipPrepared)
|
| | | {
|
| | | return;
|
| | | }
|
| | | transform.SetAsLastSibling();
|
| | | var _hint = ServerTipDetails.RequireServerTip();
|
| | | if (_hint != null)
|
| | | var hint = ServerTipDetails.RequireServerTip();
|
| | | if (hint != null && gameObject.activeInHierarchy)
|
| | | {
|
| | | serverTipPrepared = false;
|
| | | if (!m_ServerTipScaleTween.gameObject.activeSelf)
|
| | | {
|
| | | m_ServerTipScaleTween.gameObject.SetActive(true);
|
| | | }
|
| | | m_ServerTipScaleTween.SetStartState();
|
| | | m_ServerTipPositionTween.SetStartState();
|
| | | m_ContainerServerTip.gameObject.SetActive(true);
|
| | | m_ServerTip.SetExtenalData(_hint.extentionData);
|
| | | m_ServerTip.text = _hint.message;
|
| | | m_ServerTipScaleTween.Play();
|
| | | TimeMgr.Instance.Register(m_ServerTip, ServerTipStartHide, m_ServerTipKeepTime + m_ServerTipScaleTween.duration);
|
| | | DisplayServerHint(hint);
|
| | | }
|
| | | else
|
| | | {
|
| | | DisableServerTip();
|
| | | }
|
| | | }
|
| | |
|
| | | public void DisplayServerHint(SystemHintData hint)
|
| | | {
|
| | | transform.SetAsLastSibling();
|
| | | m_ServerTipPrepared = false;
|
| | | if (!m_ServerTipScaleTween.gameObject.activeSelf)
|
| | | {
|
| | | m_ServerTipScaleTween.gameObject.SetActive(true);
|
| | | }
|
| | | m_ServerTipScaleTween.SetStartState();
|
| | | m_ServerTipPositionTween.SetStartState();
|
| | | m_ContainerServerTip.gameObject.SetActive(true);
|
| | | m_ServerTip.SetExtenalData(hint.extentionData);
|
| | | m_ServerTip.text = hint.message;
|
| | | m_ServerTipScaleTween.Play();
|
| | | TimeMgr.Instance.Register(m_ServerTip, ServerTipStartHide, m_ServerTipKeepTime + m_ServerTipScaleTween.duration);
|
| | | }
|
| | |
|
| | | private void ServerTipStartHide(Component comp)
|
| | | {
|
| | | m_ServerTipPositionTween.Play();
|
| | |
| | |
|
| | | private void ServerTipTweenComplete(Component comp)
|
| | | {
|
| | | serverTipPrepared = true;
|
| | | m_ServerTipPrepared = true;
|
| | | DisableServerTip();
|
| | | ShowServerTip();
|
| | | CheckServerHint();
|
| | | }
|
| | |
|
| | | private void DisableServerTip()
|
| | |
| | |
|
| | |
|
| | | #region GM
|
| | | private const int MAX_GM = 300;
|
| | | private List<string> gmList = new List<string>();
|
| | | public readonly Regex autoPopRegex = new Regex("参数错误|执行GM命令错误|^###");
|
| | | public void RevGMMsg(string msg)
|
| | | readonly Regex autoPopRegex = new Regex("参数错误|执行GM命令错误|^###");
|
| | | void DisplayGM(string latest)
|
| | | {
|
| | | if (gmList.Count >= MAX_GM)
|
| | | if (!string.IsNullOrEmpty(latest))
|
| | | {
|
| | | gmList.RemoveAt(0);
|
| | | if (m_AutoPopToggle.isOn && hasOnFrom)
|
| | | {
|
| | | RectTransform rt = m_ContainerGM;
|
| | | Vector3 pos = new Vector3(hasOnFrom ? -rt.sizeDelta.x / 2 : rt.sizeDelta.x / 2, 0, 0);
|
| | | rt.DOLocalMove(pos, 1.0f);
|
| | | hasOnFrom = !hasOnFrom;
|
| | | m_GMClose.gameObject.SetActive(!hasOnFrom);
|
| | | }
|
| | | }
|
| | | msg.Replace("###", string.Empty);
|
| | | gmList.Add(msg);
|
| | | if (gmToggle.isOn && hasOnFrom)
|
| | | if (m_ScrollControl.GetNumberOfCells(m_ScrollControl.m_Scorller) >= 300)
|
| | | {
|
| | | RectTransform rt = gmPanel.transform as RectTransform;
|
| | | Vector3 pos = new Vector3(hasOnFrom ? -rt.sizeDelta.x / 2 : rt.sizeDelta.x / 2, 0, 0);
|
| | | rt.DOLocalMove(pos, 1.0f);
|
| | | hasOnFrom = !hasOnFrom;
|
| | | gmClose.gameObject.SetActive(!hasOnFrom);
|
| | | }
|
| | | if (gmCtrl.GetNumberOfCells(gmCtrl.m_Scorller) >= MAX_GM)
|
| | | {
|
| | | gmCtrl.m_Scorller.RefreshActiveCellViews();
|
| | | m_ScrollControl.m_Scorller.RefreshActiveCellViews();
|
| | | return;
|
| | | }
|
| | | gmCtrl.Refresh();
|
| | | for (int i = 0; i < gmList.Count; i++)
|
| | | m_ScrollControl.Refresh();
|
| | | for (int i = 0; i < ServerTipDetails.gmMessages.Count; i++)
|
| | | {
|
| | | gmCtrl.AddCell(ScrollerDataType.Normal, i);
|
| | | m_ScrollControl.AddCell(ScrollerDataType.Normal, i);
|
| | | }
|
| | | gmCtrl.Restart();
|
| | | if (autoPopRegex.IsMatch(msg))
|
| | | m_ScrollControl.Restart();
|
| | | if (autoPopRegex.IsMatch(latest))
|
| | | {
|
| | | if (hasOnFrom)
|
| | | {
|
| | |
| | |
|
| | | private void OnRefreshGmCell(ScrollerDataType type, CellView cell)
|
| | | {
|
| | | if (cell.index < gmList.Count)
|
| | | if (cell.index < ServerTipDetails.gmMessages.Count)
|
| | | {
|
| | | Text text = cell.transform.Find("Text").GetComponent<Text>();
|
| | | text.text = gmList[cell.index];
|
| | | text.text = ServerTipDetails.gmMessages[cell.index];
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!hasOnFrom)
|
| | | {
|
| | | RectTransform rt = gmPanel.transform as RectTransform;
|
| | | RectTransform rt = m_ContainerGM;
|
| | | Vector3 pos = new Vector3(hasOnFrom ? -rt.sizeDelta.x / 2 : rt.sizeDelta.x / 2, 0, 0);
|
| | | rt.DOLocalMove(pos, 1.0f);
|
| | | hasOnFrom = !hasOnFrom;
|
| | | gmClose.gameObject.SetActive(!hasOnFrom);
|
| | | m_GMClose.gameObject.SetActive(!hasOnFrom);
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void OnDisable()
|
| | | {
|
| | | m_ContianerFixedTip0.gameObject.SetActive(false);
|
| | | for (int i = 0; i < m_ContianerFixedTips.Count; i++)
|
| | | {
|
| | | m_ContianerFixedTips[i].gameObject.SetActive(false);
|
| | | }
|
| | | m_ContainerNormalHint.gameObject.SetActive(false);
|
| | | DisableServerTip();
|
| | | StopAllCoroutines();
|
| | | }
|
| | |
| | | private bool hasOnFrom = true;
|
| | | public void OnGMOpen()
|
| | | {
|
| | | RectTransform rt = gmPanel.transform as RectTransform;
|
| | | RectTransform rt = m_ContainerGM;
|
| | | Vector3 pos = new Vector3(hasOnFrom ? -rt.sizeDelta.x / 2 : rt.sizeDelta.x / 2, 0, 0);
|
| | | rt.DOLocalMove(pos, 1.0f);
|
| | | hasOnFrom = !hasOnFrom;
|
| | | gmClose.gameObject.SetActive(!hasOnFrom);
|
| | | }
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | }
|
| | | protected override void AddListeners()
|
| | | {
|
| | | m_ContianerFixedTip0.OnWaitCompelete(OnHideFixedTip);
|
| | | for (int i = 0; i < m_ContianerFixedTips.Count; i++)
|
| | | {
|
| | | m_ContianerFixedTips[i].OnWaitCompelete(OnHideFixedTip);
|
| | | m_FixedTipDisplays.Add(false);
|
| | | }
|
| | | gmCtrl.OnRefreshCell += OnRefreshGmCell;
|
| | | gmCtrl.lockType = EnhanceLockType.LockVerticalBottom;
|
| | | gmClose.onClick.AddListener(OnGMClose);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | #if UNITY_EDITOR
|
| | | gmPanel.SetActive(VersionConfig.Get().debugVersion);
|
| | | #else
|
| | | gmPanel.SetActive(false);
|
| | | #endif
|
| | | serverTipPrepared = true;
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | _inst = null;
|
| | | m_GMClose.gameObject.SetActive(!hasOnFrom);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | #if UNITY_EDITOR
|
| | | if (Input.GetKeyDown(KeyCode.F3))
|
| | | {
|
| | | MessageWin.Inst.OnGMOpen();
|
| | | ServerTipDetails.OpenGMPanel();
|
| | | }
|
| | | #endif
|
| | | }
|
| | |
| | | switch ((SysNotifyType)type[i])
|
| | | {
|
| | | case SysNotifyType.SysFixedTip:
|
| | | MessageWin.Inst.ShowFixedTip(msg, tipInfoList);
|
| | | ServerTipDetails.DisplayNormalTip(msg, tipInfoList);
|
| | | break;
|
| | | case SysNotifyType.SysFixedTip1:
|
| | | MessageWin.Inst.ShowFixedTips(msg, tipInfoList);
|
| | | break;
|
| | | case SysNotifyType.SysScrollTip:
|
| | | ScrollTip.ShowTip(msg, tipInfoList, order);
|
| | | break;
|
| | |
| | | { |
| | | if (_GetMountSkills.ContainsKey(SkillIDNow) && _GetMountSkills[SkillIDNow] >= 3) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1816")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1816")); |
| | | return; |
| | | } |
| | | C0304_tagCAddSkillPoint _C0304 = new C0304_tagCAddSkillPoint(); |
| | |
| | | { |
| | | if (Quantity <= 0) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1817")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1817")); |
| | | } |
| | | else if (Quantity > 0) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1818")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1818")); |
| | | } |
| | | |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1028"));//当前坐骑升阶满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1028"));//当前坐骑升阶满级
|
| | | }
|
| | | }
|
| | | private void SingleUseMountDan(int MountDanNumber)//单次使用坐骑丹
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1028"));//当前坐骑升阶满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1028"));//当前坐骑升阶满级
|
| | | }
|
| | | }
|
| | | IEnumerator AutomaticDomesticated()//自动驯养
|
| | |
| | | }
|
| | | m_AutoTrainBtn.gameObject.SetActive(true);
|
| | | m_StopDomesticateBtn.gameObject.SetActive(false);
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1028"));//当前坐骑升阶满级;
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1028"));//当前坐骑升阶满级;
|
| | | yield break;
|
| | | }
|
| | |
|
| New file |
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class AutoTreasureAwardsRow : MonoBehaviour
|
| | | {
|
| | | [SerializeField] List<AwardItem> awardItems = new List<AwardItem>();
|
| | |
|
| | | LuckyTreasureModel luckyTreasureModel { get { return ModelCenter.Instance.GetModel<LuckyTreasureModel>(); } }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
|
| | | public void SetDisplay(int row)
|
| | | {
|
| | | int length = awardItems.Count;
|
| | | var autoLuckyItems = luckyTreasureModel.autoLuckyItems;
|
| | | for(int i = 0; i < length; i++)
|
| | | {
|
| | | var awardItem = awardItems[i];
|
| | | int index = awardItems.Count * row + i;
|
| | | if(index < autoLuckyItems.Count)
|
| | | {
|
| | | awardItem.itemObj.SetActive(true);
|
| | | var luckyItem = autoLuckyItems[index];
|
| | | ItemCellModel itemCellModel = new ItemCellModel(luckyItem.itemId,false,(ulong)luckyItem.itemCount,luckyItem.isBind);
|
| | | awardItem.itemBaisc.Init(itemCellModel);
|
| | | awardItem.itemBaisc.cellBtn.RemoveAllListeners();
|
| | | awardItem.itemBaisc.cellBtn.AddListener(() =>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(luckyItem.itemId, false, (ulong)luckyItem.itemCount,-1,luckyItem.isBind);
|
| | | tipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | | awardItem.itemObj.SetActive(false);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | [Serializable]
|
| | | public class AwardItem
|
| | | {
|
| | | public GameObject itemObj;
|
| | | public CommonItemBaisc itemBaisc;
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 961051ac0ec5b404cbe2ed7f67288801 |
| | | timeCreated: 1544423586 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class AutomaticTreasureWin : Window
|
| | | {
|
| | | [SerializeField] Button closeBtn;
|
| | | [SerializeField] Button treasureBtn;
|
| | | [SerializeField] Text treasureBtn_Text;
|
| | | [SerializeField] Transform container_Awards;
|
| | | [SerializeField] AutoTreasureAwardsRow awardsRow;
|
| | |
|
| | | LuckyTreasureModel luckyTreasureModel { get { return ModelCenter.Instance.GetModel<LuckyTreasureModel>(); } }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | | List<AutoTreasureAwardsRow> awardsRows = new List<AutoTreasureAwardsRow>();
|
| | | |
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | closeBtn.AddListener(CloseClick);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | luckyTreasureModel.UpdateLuckyResultEvent += UpdateLuckyResult;
|
| | | SetDisplay();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | |
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | luckyTreasureModel.isAutoLuckyTreasure = false;
|
| | | luckyTreasureModel.UpdateLuckyResultEvent -= UpdateLuckyResult;
|
| | | OnDestroyAwardsRow();
|
| | | }
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void SetDisplay()
|
| | | {
|
| | | awardsRows.Clear();
|
| | | UpdateAwardsItem();
|
| | | UpdateLuckyTreasureState();
|
| | | }
|
| | |
|
| | | private void UpdateLuckyResult()
|
| | | {
|
| | | UpdateAwardsItem();
|
| | | }
|
| | |
|
| | | private void UpdateLuckyTreasureState()
|
| | | {
|
| | | treasureBtn.RemoveAllListeners();
|
| | | if (luckyTreasureModel.isAutoLuckyTreasure)
|
| | | {
|
| | | treasureBtn_Text.text = Language.Get("LuckyTreasure104");
|
| | | treasureBtn.AddListener(ClickStopLuckyTreasure);
|
| | | }
|
| | | else
|
| | | {
|
| | | treasureBtn_Text.text = Language.Get("LuckyTreasure105");
|
| | | treasureBtn.AddListener(ClickLuckyTreasure);
|
| | | }
|
| | | }
|
| | |
|
| | | private void ClickStopLuckyTreasure()
|
| | | {
|
| | | luckyTreasureModel.isAutoLuckyTreasure = false;
|
| | | UpdateLuckyTreasureState();
|
| | | }
|
| | |
|
| | | private void ClickLuckyTreasure()
|
| | | {
|
| | | luckyTreasureModel.isAutoLuckyTreasure = true;
|
| | | luckyTreasureModel.SendStartLuckyTreasure();
|
| | | UpdateLuckyTreasureState();
|
| | | }
|
| | |
|
| | | private void UpdateAwardsItem()
|
| | | {
|
| | | CreateAwardsRow();
|
| | | for(int i = 0; i < awardsRows.Count; i++)
|
| | | {
|
| | | var treasureAwardsRow = awardsRows[i];
|
| | | treasureAwardsRow.SetDisplay(i);
|
| | | }
|
| | | }
|
| | |
|
| | | private void CreateAwardsRow()
|
| | | {
|
| | | var autoLuckyItems = luckyTreasureModel.autoLuckyItems;
|
| | | int row = autoLuckyItems.Count / 10;
|
| | | if(autoLuckyItems.Count % 10 > 0)
|
| | | {
|
| | | row += 1;
|
| | | }
|
| | | int startRow = awardsRows.Count;
|
| | | for(int i = startRow; i < row; i++)
|
| | | {
|
| | | AutoTreasureAwardsRow treasureAwardsRow = Instantiate(awardsRow, Vector3.zero, Quaternion.identity, container_Awards);
|
| | | treasureAwardsRow.transform.localScale = Vector3.one;
|
| | | treasureAwardsRow.gameObject.SetActive(true);
|
| | | awardsRows.Add(treasureAwardsRow);
|
| | | }
|
| | | awardsRow.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | private void OnDestroyAwardsRow()
|
| | | {
|
| | | for(int i = 0; i < awardsRows.Count;i++)
|
| | | {
|
| | | DestroyObject(awardsRows[i].gameObject);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1a5a86936f3b05f419bc9803818b90fb |
| | | timeCreated: 1544421577 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | using TableConfig; |
| | | |
| | | namespace Snxxz.UI { |
| | | [XLua.Hotfix] |
| | |
| | | [SerializeField] ItemCell m_ItemCell; |
| | | [SerializeField] Text m_Text1; |
| | | [SerializeField] Text m_Text2; |
| | | [SerializeField] Button m_Button; |
| | | [SerializeField] Text m_ButtonText;
|
| | | [SerializeField] Button m_Btn; |
| | | [SerializeField] Text m_BtnText;
|
| | | [SerializeField] GameObject m_Miss;//错过
|
| | | [SerializeField] GameObject m_Reach;//未达成
|
| | | [SerializeField] GameObject m_Draw;//已领取
|
| | | LoginRewardModel m_LoginRewardModel; |
| | | LoginRewardModel loginRewardModel { get { return m_LoginRewardModel ?? (m_LoginRewardModel = ModelCenter.Instance.GetModel<LoginRewardModel>()); } } |
| | | public Button mButton
|
| | | {
|
| | | get { return m_Button; }
|
| | | set { m_Button = value; }
|
| | | } |
| | | |
| | | LoginRewardModel loginRewardModel { get { return m_LoginRewardModel ?? (m_LoginRewardModel = ModelCenter.Instance.GetModel<LoginRewardModel>()); } }
|
| | | ItemTipsModel m_itemTipsModel;
|
| | | ItemTipsModel itemTipsModel { get { return m_itemTipsModel ?? (m_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>()); } } |
| | | public void GetDisplayInformation(int id)
|
| | | {
|
| | | var config = Config.Instance.Get<LoginRewardConfig>(id);
|
| | | if (config == null)
|
| | | {
|
| | | DebugEx.LogError("登录奖励表没有此ID"+id);
|
| | | return;
|
| | | }
|
| | | if (!loginRewardModel.LoginAwardDic.ContainsKey(id))
|
| | | {
|
| | | DebugEx.LogError("登录条目字典查无次ID" + id);
|
| | | return;
|
| | | }
|
| | | m_Text1.text = config.Description;
|
| | | var LoginAward = loginRewardModel.LoginAwardDic[id];
|
| | | int rewardNum = loginRewardModel.GetRewardNumber(loginRewardModel.SelectedNow, id);//已领奖次数
|
| | | int carryOutNum = loginRewardModel.GetCarryOutNum(loginRewardModel.SelectedNow, id);//已完成次数
|
| | | int number = LoginAward.TotalTimes / LoginAward.SingleTimes;
|
| | | var RemainingNum = 0;
|
| | | if (LoginAward.TotalTimes - rewardNum > 0)
|
| | | {
|
| | | RemainingNum = (LoginAward.TotalTimes - rewardNum) / LoginAward.SingleTimes;
|
| | | }
|
| | | if (LoginAward.TotalTimes - carryOutNum > 0 && RemainingNum > 0)
|
| | | {
|
| | | m_Text2.text = SetText(id);
|
| | | }
|
| | | else
|
| | | {
|
| | | m_Text2.text = Language.Get("OSA_4");
|
| | | }
|
| | | if (LoginAward.WeekPartyItem.Length >= 0)
|
| | | {
|
| | | var Item = LoginAward.WeekPartyItem[0];
|
| | | ItemCellModel cellModel = new ItemCellModel(Item.ItemID, true, (ulong)Item.ItemCnt, Item.IsBind);
|
| | | m_ItemCell.Init(cellModel);
|
| | | m_ItemCell.cellBtn.SetListener(() =>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(Item.ItemID, false, (ulong)Item.ItemCnt, -1, Item.IsBind);
|
| | | itemTipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | | }
|
| | | bool IsOpenPreviewTime = OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.LoginReward);
|
| | | if (loginRewardModel.SelectedNow != loginRewardModel.DayNow || IsOpenPreviewTime)
|
| | | {
|
| | | if (loginRewardModel.SelectedNow > loginRewardModel.DayNow || IsOpenPreviewTime)//还未到达的天数
|
| | | {
|
| | | m_Btn.gameObject.SetActive(false);
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(false);
|
| | | }
|
| | | else//已过的天数
|
| | | {
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / LoginAward.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber > 0)//可领
|
| | | {
|
| | | m_Btn.gameObject.SetActive(true);
|
| | | UIEffect uieffect = m_Btn.GetComponent<UIEffect>();
|
| | | uieffect.Play();
|
| | | m_BtnText.text = Language.Get("RealmPractice109");//领取
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(false);
|
| | | m_Btn.SetListener(() =>
|
| | | {
|
| | | bool _bool = loginRewardModel.IsOpenFeatures();
|
| | | if (_bool)
|
| | | {
|
| | | loginRewardModel.SendLoginAwardInfo(loginRewardModel.SelectedNow, id);
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("SevenDayOver2");
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | if (rewardNum >= number)//已经领完
|
| | | {
|
| | | m_Btn.gameObject.SetActive(false);
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(true);
|
| | | }
|
| | | else//未到达
|
| | | {
|
| | | m_Btn.gameObject.SetActive(false);
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(true);
|
| | | m_Draw.SetActive(false);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / LoginAward.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber > 0)//可领
|
| | | {
|
| | | m_Btn.gameObject.SetActive(true);
|
| | | UIEffect uieffect = m_Btn.GetComponent<UIEffect>();
|
| | | uieffect.Play();
|
| | | m_BtnText.text = Language.Get("RealmPractice109");//领取
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(false);
|
| | | m_Btn.SetListener(() =>
|
| | | {
|
| | | bool _bool = loginRewardModel.IsOpenFeatures();
|
| | | if (_bool)
|
| | | {
|
| | | loginRewardModel.SendLoginAwardInfo(loginRewardModel.SelectedNow, id);
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("SevenDayOver2");
|
| | | }
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | if (rewardNum >= LoginAward.TotalTimes)//已经领完
|
| | | { |
| | | m_Btn.gameObject.SetActive(false);
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(true);
|
| | | }
|
| | | else//未到达(前往)
|
| | | {
|
| | | m_Btn.gameObject.SetActive(true);
|
| | | m_BtnText.text = Language.Get("RealmPractice108");//前往
|
| | | UIEffect uieffect = m_Btn.GetComponent<UIEffect>();
|
| | | uieffect.Stop();
|
| | | m_Miss.SetActive(false);
|
| | | m_Reach.SetActive(false);
|
| | | m_Draw.SetActive(false);
|
| | | m_Btn.SetListener(() =>
|
| | | {
|
| | | WindowJumpMgr.Instance.WindowJumpTo((JumpUIType)config.jump);
|
| | | });
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | string SetText(int ID)
|
| | | {
|
| | | string str = string.Empty;
|
| | | var loginAward = loginRewardModel.LoginAwardDic[ID];
|
| | | int rewardNum = loginRewardModel.GetRewardNumber(loginRewardModel.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = loginRewardModel.GetCarryOutNum(loginRewardModel.SelectedNow, ID);//已完成次数
|
| | | var config = Config.Instance.Get<HolidayHomingConfig>(ID);
|
| | | if (config != null && config.SpecialDisplayType == 1)
|
| | | {
|
| | |
|
| | | if (carryOutNum > 0)
|
| | | {
|
| | | str = "1/1";
|
| | | }
|
| | | else
|
| | | {
|
| | | str = "0/1";
|
| | | }
|
| | | return str;
|
| | | }
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / loginAward.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber > 0)
|
| | | {
|
| | | str = loginAward.SingleTimes + "/" + loginAward.SingleTimes;
|
| | | return str;
|
| | | }
|
| | | else
|
| | | {
|
| | | int type = carryOutNum % loginAward.SingleTimes;
|
| | | str = type + "/" + loginAward.SingleTimes;
|
| | | }
|
| | | return str;
|
| | | } |
| | | } |
| | | |
| | |
| | | return x.Condition.CompareTo(y.Condition);
|
| | | }
|
| | |
|
| | | public ConfigBase GetBillCfg(int _type, int _index)
|
| | | public ImpactRankAwardType GetAwardType(int _type,int _index)
|
| | | {
|
| | | if (_index >= billRankCfgDict[_type].Count)
|
| | | {
|
| | | return billTagCfgDict[_type][_index - billRankCfgDict[_type].Count];
|
| | | return ImpactRankAwardType.Target;
|
| | | }
|
| | | return ImpactRankAwardType.Rank;
|
| | | }
|
| | |
|
| | | public OSCBillRankAwardConfig GetRankAwardConfig(int _type, int _index)
|
| | | {
|
| | | return billRankCfgDict[_type][_index];
|
| | | }
|
| | |
|
| | | public OSCBillTagAwardConfig GetTagAwardConfig(int _type, int _index)
|
| | | {
|
| | | _index = _index - billRankCfgDict[_type].Count;
|
| | | return billTagCfgDict[_type][_index];
|
| | | }
|
| | |
|
| | | public RankAwardItem GetBillAward(int _type, int _index)
|
| | |
| | | }
|
| | | for (int i = 0; i < GetAllBillCfgCount(_type); i++)
|
| | | {
|
| | | var config = GetBillCfg(_type, i);
|
| | | if (config == null || config is OSCBillTagAwardConfig)
|
| | | var type = GetAwardType(_type, i);
|
| | | if (type == ImpactRankAwardType.Target)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | var billRankConfig = config as OSCBillRankAwardConfig;
|
| | | var billRankConfig = GetRankAwardConfig(_type, i);
|
| | | if (_rank < billRankConfig.RankA || _rank > billRankConfig.RankB)
|
| | | {
|
| | | continue;
|
| | |
| | | }
|
| | | for (int i = 0; i < GetAllBillCfgCount(_type); i++)
|
| | | {
|
| | | var _cfg = GetBillCfg(_type, i);
|
| | | var awardType = GetAwardType(_type, i);
|
| | | var _index = GetBillIndex(_type, i);
|
| | | if (_cfg is OSCBillTagAwardConfig)
|
| | | if (awardType == ImpactRankAwardType.Target)
|
| | | {
|
| | | var _cfg = GetTagAwardConfig(_type, i);
|
| | | if (!_playerData.IsTagGet(GetTagIndex(_type, _index)))
|
| | | {
|
| | | var _complete = _playerData.value >= (_cfg as OSCBillTagAwardConfig).Condition;
|
| | | var _complete = _playerData.value >= _cfg.Condition;
|
| | | if (_complete)
|
| | | {
|
| | | _displayIndex = i;
|
| | |
| | | }
|
| | | else if (IsActivityClose(_type))
|
| | | {
|
| | | var _start = (_cfg as OSCBillRankAwardConfig).RankA;
|
| | | var _end = (_cfg as OSCBillRankAwardConfig).RankB;
|
| | | var _cfg = GetRankAwardConfig(_type, i);
|
| | | var _start = _cfg.RankA;
|
| | | var _end = _cfg.RankB;
|
| | | var _rank = PlayerDatas.Instance.rank.GetSelfRank((int)GetRankType(_type));
|
| | | if (_rank != -1 && _rank >= _start
|
| | | && _rank <= _end && !_playerData.billAwardGet)
|
| | |
| | | }
|
| | | for (int i = 0; i < GetAllBillCfgCount(_type); i++)
|
| | | {
|
| | | var _cfg = GetBillCfg(_type, i);
|
| | | var awardType = GetAwardType(_type, i);
|
| | | var _index = GetBillIndex(_type, i);
|
| | | if (_cfg is OSCBillTagAwardConfig)
|
| | | if (awardType==ImpactRankAwardType.Target)
|
| | | {
|
| | | var _cfg = GetTagAwardConfig(_type, i);
|
| | | if (!_playerData.IsTagGet(GetTagIndex(_type, _index)))
|
| | | {
|
| | | var _complete = _playerData.value >= (_cfg as OSCBillTagAwardConfig).Condition;
|
| | |
| | | }
|
| | | else if (IsActivityClose(_type))
|
| | | {
|
| | | var _start = (_cfg as OSCBillRankAwardConfig).RankA;
|
| | | var _end = (_cfg as OSCBillRankAwardConfig).RankB;
|
| | | var _cfg = GetRankAwardConfig(_type, i);
|
| | | var _start = _cfg.RankA;
|
| | | var _end = _cfg.RankB;
|
| | | var _rank = PlayerDatas.Instance.rank.GetSelfRank((int)GetRankType(_type));
|
| | | if (_rank != -1 && _rank >= _start
|
| | | && _rank <= _end && !_playerData.billAwardGet)
|
| | |
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | public enum ImpactRankAwardType
|
| | | {
|
| | | Rank,
|
| | | Target,
|
| | | }
|
| | | }
|
| | |
|
| | | [XLua.LuaCallCSharp]
|
| | | public class OpenServerActivityCenter : Singleton<OpenServerActivityCenter>
|
| | | |
| | |
|
| | | {
|
| | | public event Action openServerActivityStateChange;
|
| | |
|
| | |
| | | MysticalPurchase,
|
| | | [Header("节日红包")]
|
| | | FestivalRedpack,
|
| | | [Header("幸运鉴宝")]
|
| | | LuckyTreasure,
|
| | | [Header("登录奖励")]
|
| | | LoginReward,
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | ImpactRankAwardCell _cell = cell as ImpactRankAwardCell;
|
| | | ImpactRankModel.RankAwardItem _award = model.GetBillAward(model.presentSelectType, _cell.index);
|
| | | var _itemList = _award.GetAwardItem(PlayerDatas.Instance.baseData.Job);
|
| | | var _cfg = model.GetBillCfg(model.presentSelectType, _cell.index);
|
| | | var awardType = model.GetAwardType(model.presentSelectType, _cell.index);
|
| | | var _billRankCfg = awardType == ImpactRankModel.ImpactRankAwardType.Rank ? model.GetRankAwardConfig(model.presentSelectType, _cell.index) : null;
|
| | | var _billTagCfg = awardType == ImpactRankModel.ImpactRankAwardType.Target ? model.GetTagAwardConfig(model.presentSelectType, _cell.index) : null;
|
| | | for (int i = 0; i < _cell.items.Length; i++)
|
| | | {
|
| | | _cell.items[i].gameObject.SetActive(_itemList != null && i < _itemList.Count);
|
| | |
| | | {
|
| | | _cell.unCompleteImg.gameObject.SetActive(true);
|
| | | }
|
| | | else if (_cfg is OSCBillTagAwardConfig)
|
| | | else if (awardType == ImpactRankModel.ImpactRankAwardType.Target)
|
| | | {
|
| | | if (!_hasData)
|
| | | {
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var _complete = _playerData.value >= (_cfg as OSCBillTagAwardConfig).Condition;
|
| | | var _complete = _playerData.value >= _billTagCfg.Condition;
|
| | | _cell.unCompleteImg.gameObject.SetActive(!_complete);
|
| | | _cell.getBtn.gameObject.SetActive(_complete);
|
| | | _cell.effect.gameObject.SetActive(_complete);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | if (_cfg is OSCBillRankAwardConfig)
|
| | | if (awardType == ImpactRankModel.ImpactRankAwardType.Rank)
|
| | | {
|
| | | var _start = (_cfg as OSCBillRankAwardConfig).RankA;
|
| | | var _end = (_cfg as OSCBillRankAwardConfig).RankB;
|
| | | var _start = _billRankCfg.RankA;
|
| | | var _end = _billRankCfg.RankB;
|
| | | var _rank = PlayerDatas.Instance.rank.GetSelfRank((int)model.GetRankType(model.presentSelectType));
|
| | | if (_rank == -1 || _rank < _start || _rank > _end)
|
| | | {
|
| | |
| | | switch (model.presentSelectType)
|
| | | {
|
| | | case 5:
|
| | | if (_cfg is OSCBillRankAwardConfig)
|
| | | switch (awardType)
|
| | | {
|
| | | OSCBillRankAwardConfig _billRankCfg = _cfg as OSCBillRankAwardConfig;
|
| | | if (_billRankCfg.RankA == _billRankCfg.RankB)
|
| | | {
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_condition.limit);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Single_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | }
|
| | | else
|
| | | {
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_condition.limit);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Double_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _billRankCfg.RankB, _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | }
|
| | | }
|
| | | else if (_cfg is OSCBillTagAwardConfig)
|
| | | {
|
| | | OSCBillTagAwardConfig _billTagCfg = _cfg as OSCBillTagAwardConfig;
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_billTagCfg.Condition);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Target_", model.presentSelectType),
|
| | | _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | case ImpactRankModel.ImpactRankAwardType.Rank:
|
| | | {
|
| | | if (_billRankCfg.RankA == _billRankCfg.RankB)
|
| | | {
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_condition.limit);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Single_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | }
|
| | | else
|
| | | {
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_condition.limit);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Double_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _billRankCfg.RankB, _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | }
|
| | | }
|
| | | break;
|
| | | case ImpactRankModel.ImpactRankAwardType.Target:
|
| | | {
|
| | | var _realmCfg = Config.Instance.Get<RealmConfig>(_billTagCfg.Condition);
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Target_", model.presentSelectType),
|
| | | _realmCfg != null ? _realmCfg.Name : string.Empty);
|
| | | }
|
| | | break;
|
| | | }
|
| | | break;
|
| | | default:
|
| | | if (_cfg is OSCBillRankAwardConfig)
|
| | | {
|
| | | OSCBillRankAwardConfig _billRankCfg = _cfg as OSCBillRankAwardConfig;
|
| | | if (_billRankCfg.RankA == _billRankCfg.RankB)
|
| | | switch (awardType)
|
| | | {
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Single_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _condition.limit);
|
| | | case ImpactRankModel.ImpactRankAwardType.Rank:
|
| | | {
|
| | | if (_billRankCfg.RankA == _billRankCfg.RankB)
|
| | | {
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Single_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _condition.limit);
|
| | | }
|
| | | else
|
| | | {
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Double_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _billRankCfg.RankB, _condition.limit);
|
| | | }
|
| | | }
|
| | | break;
|
| | | case ImpactRankModel.ImpactRankAwardType.Target:
|
| | | {
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Target_", model.presentSelectType),
|
| | | _billTagCfg.Condition);
|
| | | }
|
| | | break;
|
| | | }
|
| | | else
|
| | | {
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Double_", model.presentSelectType),
|
| | | _billRankCfg.RankA, _billRankCfg.RankB, _condition.limit);
|
| | | }
|
| | | }
|
| | | else if (_cfg is OSCBillTagAwardConfig)
|
| | | {
|
| | | OSCBillTagAwardConfig _billTagCfg = _cfg as OSCBillTagAwardConfig;
|
| | | _tip = Language.Get(StringUtility.Contact("ImpactRankCellType_Target_", model.presentSelectType),
|
| | | _billTagCfg.Condition);
|
| | | }
|
| | | break;
|
| | | }
|
| | |
| | | _cell.getBtn.onClick.RemoveAllListeners();
|
| | | _cell.getBtn.onClick.AddListener(() =>
|
| | | {
|
| | | OnGetClick(_cfg, _cell.index);
|
| | | if (awardType == ImpactRankModel.ImpactRankAwardType.Target)
|
| | | {
|
| | | OnGetClick(_billTagCfg, _cell.index);
|
| | | }
|
| | | else
|
| | | {
|
| | | OnGetClick(_billRankCfg, _cell.index);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | private void OnGetClick(ConfigBase _cfg, int index)
|
| | | private void OnGetClick(OSCBillRankAwardConfig _cfg, int index)
|
| | | {
|
| | | var _index = model.GetBillIndex(model.presentSelectType, index);
|
| | | model.SendGetAward(model.presentSelectType, (_cfg is OSCBillRankAwardConfig) ? 1 : 2,
|
| | | (_cfg is OSCBillRankAwardConfig) ? _index : model.GetTagIndex(model.presentSelectType, _index));
|
| | | model.SendGetAward(model.presentSelectType, 1, _index);
|
| | | }
|
| | |
|
| | | private void OnGetClick(OSCBillTagAwardConfig _cfg, int index)
|
| | | {
|
| | | var _index = model.GetBillIndex(model.presentSelectType, index);
|
| | | model.SendGetAward(model.presentSelectType, 2, model.GetTagIndex(model.presentSelectType, _index));
|
| | | }
|
| | |
|
| | | private void OnViewRank()
|
| | |
| | | [SerializeField] Text m_DayText1; |
| | | [SerializeField] GameObject m_Obj2;
|
| | | [SerializeField] Text m_DayText2;
|
| | | [SerializeField] RedpointBehaviour m_RedPoint;
|
| | | LoginRewardModel m_LoginRewardModel; |
| | | LoginRewardModel loginRewardModel { get { return m_LoginRewardModel ?? (m_LoginRewardModel = ModelCenter.Instance.GetModel<LoginRewardModel>()); } } |
| | | public Button DayNumberBtn
|
| | |
| | | |
| | | public void SetInDayNumber(int day,int clockDayNow)
|
| | | {
|
| | | if (loginRewardModel.RedPointDic.ContainsKey(day))
|
| | | {
|
| | | m_RedPoint.redpointId = loginRewardModel.RedPointDic[day].id;
|
| | | }
|
| | | if (day == clockDayNow)
|
| | | {
|
| | | m_SelectedImage.gameObject.SetActive(true);
|
| | |
| | | using Snxxz.UI; |
| | | //登录奖励 |
| | | [XLua.LuaCallCSharp]
|
| | | public class LoginRewardModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk
|
| | | public class LoginRewardModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public event Action LoginAwardInfoUpdate;//领奖记录变更
|
| | | public event Action<int> onStateUpate;
|
| | |
|
| | | public Dictionary<int, WeekPartyDayInfoClass> LoginAwardInfoDic = new Dictionary<int, WeekPartyDayInfoClass>();//领奖信息
|
| | | public Dictionary<int, WeekPartyDayClass> LoginAwardDayDic = new Dictionary<int, WeekPartyDayClass>();//每天的奖励信息
|
| | | public Dictionary<int, WeekPartyActionClass> LoginAwardDic = new Dictionary<int, WeekPartyActionClass>();//活动模板信息
|
| | |
| | | public int DayNow = 0;//当前天
|
| | | public int SelectedNow = 0;//获取选择天
|
| | | public int LimitLV = 0;//限制等级
|
| | | private const int Redpoint_key = 6666;//登录奖励红点
|
| | | public Redpoint redPointStre = new Redpoint(666, Redpoint_key);
|
| | | private const int Redpoint_key = 20921;//登录奖励红点
|
| | | public Redpoint redPointStre = new Redpoint(209, Redpoint_key);
|
| | |
|
| | | public bool IsOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | return OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.LoginReward);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsAdvance
|
| | | {
|
| | | get
|
| | | {
|
| | | return OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.LoginReward);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool priorityOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | if (redPointStre.state == RedPointState.GetReward || redPointStre.state == RedPointState.Simple)
|
| | | {
|
| | | return true;
|
| | | }
|
| | | else
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | |
| | | OpenServerActivityCenter.Instance.Register(21, this);
|
| | | OperationTimeHepler.Instance.operationEndEvent += OperationEndEvent;
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | |
| | | {
|
| | | GetDay();
|
| | | SetRedPoint();
|
| | | OperationTimeHepler.Instance.operationStartEvent -= OperationStartEvent;
|
| | | OperationTimeHepler.Instance.dayResetEvent -= DayResetEvent;
|
| | | OperationTimeHepler.Instance.operationStartEvent += OperationStartEvent;
|
| | | OperationTimeHepler.Instance.dayResetEvent += DayResetEvent;
|
| | | }
|
| | | private void OperationEndEvent(Operation arg1, int arg2)
|
| | | {
|
| | | if (arg1 == Operation.LoginReward && arg2 == 0)
|
| | | {
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate(21);
|
| | | }
|
| | | }
|
| | | }
|
| | | private void DayResetEvent(int obj)
|
| | | {
|
| | | if (obj == (int)Operation.LoginReward)
|
| | | {
|
| | | GetDay();
|
| | | SetRedPoint();
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate(21);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OperationStartEvent(Operation arg1, int arg2)
|
| | | {
|
| | | if (arg1 == Operation.LoginReward)
|
| | | {
|
| | | GetDay();
|
| | | SetRedPoint();
|
| | | if (arg2 == 0 && onStateUpate != null)
|
| | | {
|
| | | onStateUpate(21);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | |
| | | public void LoginAwardInfo(HAA0C_tagMCActLoginAwardInfo info)//登录奖励活动信息
|
| | | {
|
| | | LimitLV = info.LimitLV;
|
| | | LoginAwardDayDic.Clear();
|
| | | LoginAwardDic.Clear();
|
| | | //LoginAwardDayDic.Clear();
|
| | | //LoginAwardDic.Clear();
|
| | | for (int i = 0; i < info.DayCnt; i++)//每天的奖励信息
|
| | | {
|
| | | int Index = i;
|
| | |
| | | LoginAwardInfoDic.Add(dayindex, loginAwardPlayerClass);
|
| | | }
|
| | | }
|
| | | GetDay();
|
| | | SetRedPoint();
|
| | | if (LoginAwardInfoUpdate != null)
|
| | | {
|
| | |
| | | }
|
| | | private void SetRedPointID()//设置红点ID
|
| | | {
|
| | | if (RedPointDic.Count > 0)
|
| | | if (RedPointDic.Count >= 7)
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | return RedPointState.GetReward;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | return RedPointState.None;
|
| | | }
|
| | |
|
| | | private void GetDay()
|
| | | public void GetDay()
|
| | | {
|
| | | OperationBase operationBase;
|
| | | if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.LoginReward, out operationBase))
|
| | | {
|
| | | DayNow = (operationBase as EventDaysTime).GetInDayNow();
|
| | | int inday = (operationBase as EventDaysTime).GetInDayNow();
|
| | | if (LoginAwardInfoDic.Count <= 0 && inday <= 0)
|
| | | {
|
| | | DayNow = 0;
|
| | | } else if (inday >= 0 && LoginAwardInfoDic.Count > 0 && inday < LoginAwardInfoDic.Count)
|
| | | {
|
| | | DayNow = inday;
|
| | | }
|
| | | else if (LoginAwardInfoDic.Count > 0 && inday >= LoginAwardInfoDic.Count)
|
| | | {
|
| | | DayNow = LoginAwardInfoDic.Count - 1;
|
| | | }
|
| | | }
|
| | | }
|
| | | public bool IsOpenFeatures()
|
| | | {
|
| | | bool Isbool = false;
|
| | | Isbool = (OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.LoginReward)
|
| | | || OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.LoginReward));
|
| | | return Isbool;
|
| | | }
|
| | | public bool IsJumpOpen()//是否都能执行跳转
|
| | | {
|
| | | bool Isbool = IsOpenFeatures();
|
| | | if (!Isbool)
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("OutofActivityTime");
|
| | | }
|
| | | return Isbool;
|
| | | }
|
| | | } |
| | | |
| | | |
| | |
| | | using System; |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using TableConfig;
|
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | |
| | | namespace Snxxz.UI { |
| | | namespace Snxxz.UI
|
| | | { |
| | | [XLua.Hotfix] |
| | | public class LoginRewardWin : Window |
| | | { |
| | |
| | | |
| | | protected override void OnPreOpen() |
| | | { |
| | | ChooseDay(); |
| | | ChooseDay();
|
| | | |
| | | |
| | | OnCreateGridLineCell_1(m_ScrollerController_1);
|
| | | OnCreateGridLineCell_2(m_ScrollerController_2); |
| | | if (loginRewardModel.SelectedNow >= 3)
|
| | |
| | | } |
| | | |
| | | protected override void OnAfterOpen() |
| | | { |
| | | {
|
| | | OperationTimeHepler.Instance.operationStartEvent += OperationStartEvent;
|
| | | OperationTimeHepler.Instance.dayResetEvent += DayResetEvent; |
| | | loginRewardModel.LoginAwardInfoUpdate += LoginAwardInfoUpdate; |
| | | } |
| | | |
| | |
| | | |
| | | protected override void OnAfterClose() |
| | | {
|
| | | OperationTimeHepler.Instance.operationStartEvent -= OperationStartEvent;
|
| | | OperationTimeHepler.Instance.dayResetEvent -= DayResetEvent;
|
| | | loginRewardModel.LoginAwardInfoUpdate -= LoginAwardInfoUpdate; |
| | | }
|
| | |
|
| | | private void OperationStartEvent(Operation arg1, int arg2)
|
| | | {
|
| | | if (arg1 == Operation.LoginReward)
|
| | | {
|
| | | loginRewardModel.GetDay();
|
| | | m_ScrollerController_1.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | m_ScrollerController_2.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | }
|
| | | }
|
| | |
|
| | | private void DayResetEvent(int obj)
|
| | | {
|
| | | if (obj == (int)Operation.LoginReward)
|
| | | {
|
| | | loginRewardModel.GetDay();
|
| | | m_ScrollerController_1.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | m_ScrollerController_2.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | }
|
| | | }
|
| | |
|
| | | private void LoginAwardInfoUpdate()
|
| | | {
|
| | | loginRewardModel.GetDay();
|
| | | m_ScrollerController_1.m_Scorller.RefreshActiveCellViews();
|
| | | m_ScrollerController_2.m_Scorller.RefreshActiveCellViews();
|
| | | }
|
| | |
| | | int Index = cell.index;
|
| | | LogInDayNumber logInDayNumber = cell.GetComponent<LogInDayNumber>();
|
| | | logInDayNumber.SetInDayNumber(Index, loginRewardModel.SelectedNow);
|
| | | logInDayNumber.DayNumberBtn.SetListener(()=> |
| | | logInDayNumber.DayNumberBtn.SetListener(() =>
|
| | | {
|
| | | if (loginRewardModel.SelectedNow != Index)
|
| | | {
|
| | |
| | | }
|
| | | void OnCreateGridLineCell_2(ScrollerController gridCtrl)
|
| | | {
|
| | | ToAddSorting();
|
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i < 10; i++)
|
| | | for (int i = 0; i < SortList.Count; i++)
|
| | | {
|
| | | gridCtrl.AddCell(ScrollerDataType.Header, i);
|
| | | gridCtrl.AddCell(ScrollerDataType.Header, SortList[i]);
|
| | | }
|
| | | gridCtrl.Restart();
|
| | | }
|
| | |
| | | {
|
| | | int Index = cell.index;
|
| | | EntryInformationCell entryInformationCell = cell.GetComponent<EntryInformationCell>();
|
| | | entryInformationCell.GetDisplayInformation(1);
|
| | | entryInformationCell.mButton.SetListener(()=> |
| | | {
|
| | | // m_ScrollerController_2.m_Scorller.RefreshActiveCellViews();//刷新可见
|
| | | });
|
| | | entryInformationCell.GetDisplayInformation(Index);
|
| | | } |
| | | public void ChooseDay()//选择天
|
| | | {
|
| | |
| | | }
|
| | | int Compare(int x, int y)//数组排列
|
| | | {
|
| | | bool havex1 = IsReceive(x);
|
| | | bool havey1 = IsReceive(y);
|
| | | if (havex1.CompareTo(havey1) != 0)
|
| | | {
|
| | | return -havex1.CompareTo(havey1);
|
| | | }
|
| | | bool havex2 = Undone(x);
|
| | | bool havey2 = Undone(y);
|
| | | if (havex2.CompareTo(havey2) != 0)
|
| | | {
|
| | | return -havex2.CompareTo(havey2);
|
| | | }
|
| | | bool havex3 = Completed(x);
|
| | | bool havey3 = Completed(y);
|
| | | if (havex3.CompareTo(havey3) != 0)
|
| | | {
|
| | | return -havex3.CompareTo(havey3);
|
| | | }
|
| | | int havex4 = SizeId(x);
|
| | | int havey4 = SizeId(y);
|
| | | if (havex4.CompareTo(havey4) != 0)
|
| | | {
|
| | | return havex4.CompareTo(havey4);
|
| | | }
|
| | | return 1;
|
| | | }
|
| | | private bool IsReceive(int ID)//可领取
|
| | | {
|
| | | bool Bool = false;
|
| | | if (loginRewardModel.LoginAwardDic.ContainsKey(ID))
|
| | | {
|
| | | var loginAward = loginRewardModel.LoginAwardDic[ID];
|
| | | int number = loginAward.TotalTimes / loginAward.SingleTimes;
|
| | | int rewardNum = loginRewardModel.GetRewardNumber(loginRewardModel.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = loginRewardModel.GetCarryOutNum(loginRewardModel.SelectedNow, ID);//已完成次数
|
| | | int TaypeNumber = 0;
|
| | | if (carryOutNum - rewardNum > 0)
|
| | | {
|
| | | TaypeNumber = (carryOutNum - rewardNum) / loginAward.SingleTimes;
|
| | | }
|
| | | if (TaypeNumber > 0)
|
| | | {
|
| | | Bool = true;
|
| | | }
|
| | | }
|
| | | return Bool;
|
| | | }
|
| | | private bool Undone(int ID)//未完成
|
| | | {
|
| | | bool Bool = false;
|
| | | if (loginRewardModel.LoginAwardDic.ContainsKey(ID))
|
| | | {
|
| | | var loginAward = loginRewardModel.LoginAwardDic[ID];
|
| | | int number = loginAward.TotalTimes / loginAward.SingleTimes;
|
| | | int rewardNum = loginRewardModel.GetRewardNumber(loginRewardModel.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = loginRewardModel.GetCarryOutNum(loginRewardModel.SelectedNow, ID);//已完成次数
|
| | | if (loginAward.TotalTimes > rewardNum)
|
| | | {
|
| | | Bool = true;
|
| | | }
|
| | | }
|
| | | return Bool;
|
| | | }
|
| | | private bool Completed(int ID)//已领取
|
| | | {
|
| | | bool Bool = false;
|
| | | if (loginRewardModel.LoginAwardDic.ContainsKey(ID))
|
| | | {
|
| | | var loginAward = loginRewardModel.LoginAwardDic[ID];
|
| | | int rewardNum = loginRewardModel.GetRewardNumber(loginRewardModel.SelectedNow, ID);//已领奖次数
|
| | | int carryOutNum = loginRewardModel.GetCarryOutNum(loginRewardModel.SelectedNow, ID);//已完成次数
|
| | | if (rewardNum >= loginAward.TotalTimes)
|
| | | {
|
| | | Bool = true;
|
| | | }
|
| | | }
|
| | | return Bool;
|
| | | }
|
| | | private int SizeId(int ID)
|
| | | {
|
| | | int index = 1;
|
| | | var config = Config.Instance.Get<LoginRewardConfig>(ID);
|
| | | if (config != null)
|
| | | {
|
| | | index = config.order;
|
| | | }
|
| | | return index;
|
| | | } |
| | | } |
| | | |
| New file |
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using EnhancedUI.EnhancedScroller;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class LuckyAwardsGroup : ScrollerUI
|
| | | {
|
| | | [SerializeField] List<AwardCell> awardCells = new List<AwardCell>();
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | | LuckyTreasureModel luckyTreasureModel { get { return ModelCenter.Instance.GetModel<LuckyTreasureModel>(); } }
|
| | |
|
| | | public override void Refresh(CellView cell)
|
| | | {
|
| | | int length = awardCells.Count;
|
| | | var treasureItems = luckyTreasureModel.GetOperation().luckTreasureItems;
|
| | | for (int i = 0; i < length; i++)
|
| | | {
|
| | | var awardCell = awardCells[i];
|
| | | int index = cell.index * length + i;
|
| | | if(index < treasureItems.Count)
|
| | | {
|
| | | var treasureItem = treasureItems[index];
|
| | | awardCell.itemBaisc.gameObject.SetActive(true);
|
| | | ItemCellModel itemCellModel = new ItemCellModel(treasureItem.itemId,false,(ulong)treasureItem.itemCount,treasureItem.isBind);
|
| | | awardCell.itemBaisc.Init(itemCellModel);
|
| | | awardCell.itemBaisc.cellBtn.RemoveAllListeners();
|
| | | awardCell.itemBaisc.cellBtn.AddListener(() =>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(treasureItem.itemId, false, (ulong)treasureItem.itemCount,-1,treasureItem.isBind);
|
| | | tipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | | }
|
| | | else
|
| | | {
|
| | | awardCell.itemBaisc.gameObject.SetActive(false);
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | | [Serializable]
|
| | | public class AwardCell
|
| | | {
|
| | | public CommonItemBaisc itemBaisc;
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 28f0f9094a9cef344a511fe96782184d |
| | | timeCreated: 1544250056 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using EnhancedUI.EnhancedScroller;
|
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using TableConfig;
|
| | |
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class LuckyResultInfo : ScrollerUI
|
| | | {
|
| | | [SerializeField] Text infoText;
|
| | |
|
| | | LuckyTreasureModel luckyTreasureModel { get { return ModelCenter.Instance.GetModel<LuckyTreasureModel>(); } }
|
| | |
|
| | | public override void Refresh(CellView cell)
|
| | | {
|
| | | string playerName = luckyTreasureModel.resultInfolist[cell.index];
|
| | | OperationLuckyTreasure.LuckyTreasureItem luckyItem = null;
|
| | | luckyTreasureModel.GetOperation().TryGetLuckBigAward(out luckyItem);
|
| | | string treasureDes = string.Empty;
|
| | | if(luckyItem != null)
|
| | | {
|
| | | var itemConfig = Config.Instance.Get<ItemConfig>(luckyItem.itemId);
|
| | | treasureDes = StringUtility.Contact(itemConfig,"x",luckyItem.itemCount);
|
| | | treasureDes = UIHelper.AppendStringColor(itemConfig.ItemColor,treasureDes);
|
| | | }
|
| | | infoText.text = Language.Get("LuckyTreasure106",playerName,treasureDes);
|
| | | }
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: c421cb0c6c83dd54ea2f661a01bed01a |
| | | timeCreated: 1544250175 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Linq;
|
| | | using System.Text;
|
| | | using TableConfig;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | [XLua.LuaCallCSharp]
|
| | | public class LuckyTreasureModel : Model, IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk, IOpenServerActivity
|
| | | {
|
| | | public event Action<int> onStateUpate;
|
| | | private bool isLogin = true;
|
| | | public bool isAutoLuckyTreasure = false;
|
| | | public override void Init()
|
| | | {
|
| | | ParseFuncConfig();
|
| | | DTCA003_tagUniversalGameRecInfo.onGetUniversalGameInfo += UpdateLuckyMessage;
|
| | | OperationTimeHepler.Instance.operationStartEvent += OperationStartEvent;
|
| | | OperationTimeHepler.Instance.operationEndEvent += OperationEndEvent;
|
| | | OperationTimeHepler.Instance.operationAdvanceEvent += OperationAdvanceEvent;
|
| | | OpenServerActivityCenter.Instance.Register((int)OpenServerActivityCenter.OSActivityType.LuckyTreasure, this);
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | | {
|
| | | autoLuckyItems.Clear();
|
| | | isAutoLuckyTreasure = false;
|
| | | curLuckValue = 0;
|
| | | curLuckyItem = null;
|
| | | resultInfolist.Clear();
|
| | | isLogin = true;
|
| | | }
|
| | |
|
| | | public void OnAfterPlayerDataInitialize()
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | isLogin = false;
|
| | | }
|
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | DTCA003_tagUniversalGameRecInfo.onGetUniversalGameInfo -= UpdateLuckyMessage;
|
| | | OperationTimeHepler.Instance.operationStartEvent -= OperationStartEvent;
|
| | | OperationTimeHepler.Instance.operationEndEvent -= OperationEndEvent;
|
| | | OperationTimeHepler.Instance.operationAdvanceEvent -= OperationAdvanceEvent;
|
| | | }
|
| | |
|
| | | public bool IsOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | return OperationTimeHepler.Instance.SatisfyOpenCondition(Operation.LuckyTreasure);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool IsAdvance { get { return false; } }
|
| | |
|
| | | public bool priorityOpen
|
| | | {
|
| | | get
|
| | | {
|
| | | return OperationTimeHepler.Instance.SatisfyAdvanceCondition(Operation.LuckyTreasure);
|
| | | }
|
| | | }
|
| | |
|
| | | public OperationLuckyTreasure GetOperation()
|
| | | {
|
| | | OperationBase operationBase;
|
| | | if (OperationTimeHepler.Instance.TryGetOperationTime(Operation.LuckyTreasure, out operationBase))
|
| | | {
|
| | | return operationBase as OperationLuckyTreasure;
|
| | | }
|
| | |
|
| | | return null;
|
| | | }
|
| | |
|
| | | private void OperationAdvanceEvent(Operation type)
|
| | | {
|
| | | if (type == Operation.LuckyTreasure)
|
| | | {
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate((int)OpenServerActivityCenter.OSActivityType.LuckyTreasure);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OperationStartEvent(Operation type, int state)
|
| | | {
|
| | | if (type == Operation.LuckyTreasure && state == 0)
|
| | | {
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate((int)OpenServerActivityCenter.OSActivityType.LuckyTreasure);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OperationEndEvent(Operation type, int state)
|
| | | {
|
| | | if (type == Operation.LuckyTreasure && state == 0)
|
| | | {
|
| | | if (onStateUpate != null)
|
| | | {
|
| | | onStateUpate((int)OpenServerActivityCenter.OSActivityType.LuckyTreasure);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | #region 表数据
|
| | | public int luckyTreasurePrice { get; private set; }
|
| | | public int luckyTreasurePoint { get; private set; }
|
| | | public void ParseFuncConfig()
|
| | | {
|
| | | var luckyAppraisal = Config.Instance.Get<FuncConfigConfig>("LuckyAppraisal");
|
| | | luckyTreasurePrice = int.Parse(luckyAppraisal.Numerical1);
|
| | | luckyTreasurePoint = int.Parse(luckyAppraisal.Numerical2);
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region 协议
|
| | | public int curLuckValue { get; private set; }
|
| | | public bool isFree { get; private set;}
|
| | | public OperationLuckyTreasure.LuckyTreasureItem curLuckyItem { get; private set; }
|
| | | public List<OperationLuckyTreasure.LuckyTreasureItem> autoLuckyItems = new List<OperationLuckyTreasure.LuckyTreasureItem>();
|
| | | public event Action UpdateLuckyResultEvent;
|
| | | public event Action UpdateMessageEvent;
|
| | |
|
| | | public void UpdateLuckyTreasureResult(HAA1E_tagMCLuckyTreasureResultInfo resultInfo)
|
| | | {
|
| | | curLuckValue = resultInfo.LuckyPoint;
|
| | | isFree = resultInfo.HasFree == 0;
|
| | | if(resultInfo.ItemID != 0)
|
| | | {
|
| | | curLuckyItem = new OperationLuckyTreasure.LuckyTreasureItem((int)resultInfo.ItemID,resultInfo.ItemCnt,resultInfo.IsBind);
|
| | | if (isAutoLuckyTreasure)
|
| | | {
|
| | | var luckyItem = new OperationLuckyTreasure.LuckyTreasureItem((int)resultInfo.ItemID, resultInfo.ItemCnt, resultInfo.IsBind);
|
| | | autoLuckyItems.Add(luckyItem);
|
| | | if (!WindowCenter.Instance.IsOpen<AutomaticTreasureWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<AutomaticTreasureWin>();
|
| | | }
|
| | | if(IsBigLuckItem())
|
| | | {
|
| | | WindowCenter.Instance.Close<AutomaticTreasureWin>();
|
| | | }
|
| | | else
|
| | | {
|
| | | SendStartLuckyTreasure();
|
| | | }
|
| | | }
|
| | | }
|
| | | if (UpdateLuckyResultEvent != null)
|
| | | {
|
| | | UpdateLuckyResultEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | public List<string> resultInfolist = new List<string>();
|
| | | public void UpdateLuckyMessage(HA003_tagUniversalGameRecInfo recInfo)
|
| | | {
|
| | | if (recInfo.Type != 12) return;
|
| | |
|
| | | foreach (var item in recInfo.UniversalGameRec)
|
| | | {
|
| | | string playerName = item.StrValue1;
|
| | | if(isLogin)
|
| | | {
|
| | | resultInfolist.Add(playerName);
|
| | | }
|
| | | else
|
| | | {
|
| | | resultInfolist.Insert(0, playerName);
|
| | | }
|
| | | |
| | | }
|
| | | if(UpdateMessageEvent != null)
|
| | | {
|
| | | UpdateMessageEvent();
|
| | | }
|
| | | }
|
| | |
|
| | | public void SendStartLuckyTreasure()
|
| | | {
|
| | | if(!isFree)
|
| | | {
|
| | | ulong haveMoney = UIHelper.GetMoneyCnt(1);
|
| | | if (haveMoney < (ulong)luckyTreasurePrice)
|
| | | {
|
| | | isAutoLuckyTreasure = false;
|
| | | WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | var playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>();
|
| | | int remainGrid = playerPack.GetReaminGridCount(PackType.rptItem);
|
| | | if(remainGrid < 1)
|
| | | {
|
| | | isAutoLuckyTreasure = false;
|
| | | SysNotifyMgr.Instance.ShowTip("GeRen_chenxin_676165",PackType.rptItem);
|
| | | return;
|
| | | }
|
| | |
|
| | | CAA08_tagCMStartLuckyTreasure startLuckyTreasure = new CAA08_tagCMStartLuckyTreasure();
|
| | | GameNetSystem.Instance.SendInfo(startLuckyTreasure);
|
| | | }
|
| | | #endregion
|
| | |
|
| | | public bool IsBigLuckItem()
|
| | | {
|
| | | var operation = GetOperation();
|
| | | if(operation != null)
|
| | | {
|
| | | if (curLuckyItem != null)
|
| | | {
|
| | | OperationLuckyTreasure.LuckyTreasureItem luckyItem = null;
|
| | | if (operation.TryGetLuckBigAward(out luckyItem))
|
| | | {
|
| | | return luckyItem.itemId == curLuckyItem.itemId;
|
| | | } |
| | | }
|
| | | }
|
| | | return false;
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ed5d42ea068242740b8b79e77b49e3de |
| | | timeCreated: 1544241553 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | [XLua.Hotfix]
|
| | | public class LuckyTreasureWin : Window
|
| | | {
|
| | | [SerializeField] ScrollerController awardsCtrl;
|
| | | [SerializeField] ScrollerController resultCtrl;
|
| | | [SerializeField] Text remainMoneyText;
|
| | | [SerializeField] Text operationTimeText;
|
| | | [SerializeField] CommonItemBaisc luckAward_Item;
|
| | | [SerializeField] Button freeTreasureBtn;
|
| | | [SerializeField] Button goldTreasureBtn;
|
| | | [SerializeField] Button autoTreasureBtn;
|
| | | [SerializeField] Slider luckValueSlider;
|
| | | [SerializeField] Text luckValueText;
|
| | | [SerializeField] Text ruleText;
|
| | | [Header("滑动时间"), SerializeField] float sliderTime = 0.1f;
|
| | | [Header("滑动速度"), SerializeField] float sliderSpeed = 0.1f;
|
| | |
|
| | | OperationLuckyTreasure operation = null;
|
| | | LuckyTreasureModel luckyTreasureModel { get { return ModelCenter.Instance.GetModel<LuckyTreasureModel>(); } }
|
| | | ItemTipsModel tipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | |
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | freeTreasureBtn.AddListener(ClickFreeTreasure);
|
| | | goldTreasureBtn.AddListener(ClickGoldTreasure);
|
| | | autoTreasureBtn.AddListener(ClickAutoTreasure);
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | | {
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent += UpdatePlayerData;
|
| | | luckyTreasureModel.UpdateMessageEvent += UpdateMessageInfo;
|
| | | luckyTreasureModel.UpdateLuckyResultEvent += UpdateLuckyResult;
|
| | | SetDisplay();
|
| | | }
|
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | |
| | | }
|
| | |
|
| | | protected override void LateUpdate()
|
| | | {
|
| | | base.LateUpdate();
|
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | | {
|
| | | luckyTreasureModel.UpdateLuckyResultEvent -= UpdateLuckyResult;
|
| | | luckyTreasureModel.UpdateMessageEvent -= UpdateMessageInfo;
|
| | | PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= UpdatePlayerData;
|
| | | }
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | }
|
| | | #endregion
|
| | |
|
| | | private void SetDisplay()
|
| | | {
|
| | | operation = luckyTreasureModel.GetOperation();
|
| | | if (operation == null) return;
|
| | |
|
| | | UpdateRemainMoney();
|
| | | UpdateMessageInfo();
|
| | | UpdateAwards();
|
| | | UpdateLuckValue();
|
| | | UpdateLuckyTreasureState();
|
| | | operationTimeText.text = operation.ToDisplayTime();
|
| | | luckValueSlider.value = luckyTreasureModel.curLuckValue;
|
| | | ruleText.text = Language.Get("LuckyTreasure101",luckyTreasureModel.luckyTreasurePoint);
|
| | | luckValueSlider.minValue = 0;
|
| | | luckValueSlider.maxValue = operation.sumLuckPoint;
|
| | | OperationLuckyTreasure.LuckyTreasureItem luckyItem = null;
|
| | | if(operation.TryGetLuckBigAward(out luckyItem))
|
| | | {
|
| | | ItemCellModel itemCellModel = new ItemCellModel(luckyItem.itemId);
|
| | | luckAward_Item.Init(itemCellModel);
|
| | | luckAward_Item.cellBtn.RemoveAllListeners();
|
| | | luckAward_Item.cellBtn.AddListener(() =>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(luckyItem.itemId);
|
| | | tipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | private void UpdateLuckyResult()
|
| | | {
|
| | | UpdateLuckValue();
|
| | | UpdateLuckyTreasureState();
|
| | | }
|
| | |
|
| | | private void UpdateAwards()
|
| | | {
|
| | | var luckyItems = operation.luckTreasureItems;
|
| | | awardsCtrl.Refresh();
|
| | | for(int i = 0; i < luckyItems.Count; i++)
|
| | | {
|
| | | awardsCtrl.AddCell(ScrollerDataType.Header,i);
|
| | | }
|
| | | awardsCtrl.Restart();
|
| | | }
|
| | |
|
| | | private void UpdateMessageInfo()
|
| | | {
|
| | | var results = luckyTreasureModel.resultInfolist;
|
| | | resultCtrl.Refresh();
|
| | | for(int i = 0; i < results.Count; i++)
|
| | | {
|
| | | resultCtrl.AddCell(ScrollerDataType.Header,i);
|
| | | }
|
| | | resultCtrl.Restart();
|
| | | }
|
| | |
|
| | | private void UpdateLuckValue()
|
| | | {
|
| | | float offset = luckyTreasureModel.curLuckValue - luckValueSlider.value;
|
| | | if (offset < 0.01f)
|
| | | {
|
| | | luckValueSlider.value = luckyTreasureModel.curLuckValue;
|
| | | return;
|
| | | }
|
| | |
|
| | | luckValueSlider.value = Mathf.SmoothDamp(luckValueSlider.value,luckyTreasureModel.curLuckValue,ref sliderSpeed,sliderTime);
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | private void UpdatePlayerData(PlayerDataRefresh type)
|
| | | {
|
| | | switch(type)
|
| | | {
|
| | | case PlayerDataRefresh.Gold:
|
| | | UpdateRemainMoney();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | private void UpdateRemainMoney()
|
| | | {
|
| | | ulong moneyNum = UIHelper.GetMoneyCnt(1);
|
| | | remainMoneyText.text = moneyNum.ToString();
|
| | | }
|
| | |
|
| | | private void UpdateLuckyTreasureState()
|
| | | {
|
| | | goldTreasureBtn.gameObject.SetActive(!luckyTreasureModel.isFree);
|
| | | freeTreasureBtn.gameObject.SetActive(luckyTreasureModel.isFree);
|
| | | }
|
| | |
|
| | | private void ClickAutoTreasure()
|
| | | {
|
| | | luckyTreasureModel.isAutoLuckyTreasure = true;
|
| | | luckyTreasureModel.SendStartLuckyTreasure();
|
| | | }
|
| | |
|
| | | private void ClickGoldTreasure()
|
| | | {
|
| | | luckyTreasureModel.SendStartLuckyTreasure();
|
| | | }
|
| | |
|
| | | private void ClickFreeTreasure()
|
| | | {
|
| | | luckyTreasureModel.SendStartLuckyTreasure();
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ccf800a8024840e43a089b58339958f5 |
| | | timeCreated: 1544240681 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("MysticalPurchase105"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("MysticalPurchase105"));
|
| | | }
|
| | | }
|
| | | });
|
| | |
| | | case 19:
|
| | | WindowCenter.Instance.Open<FestivalRedpackWin>(true);
|
| | | break;
|
| | | case 20:
|
| | | WindowCenter.Instance.Open<LuckyTreasureWin>(true);
|
| | | break;
|
| | | case 21:
|
| | | WindowCenter.Instance.Open<LoginRewardWin>(true);
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | public override void Init()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void OnBeforePlayerDataInitialize()
|
| | |
| | | WeekPartyDayInfoClass WeekPartyDayInfo = new WeekPartyDayInfoClass();
|
| | | WeekPartyDayInfo.DayIndex = (int)DayInfo.DayIndex;
|
| | | WeekPartyDayInfo.Point = (int)DayInfo.Point;
|
| | | WeekPartyDayInfo.AwardRecord = (int)DayInfo.AwardRecord; |
| | | WeekPartyDayInfo.AwardRecord = (int)DayInfo.AwardRecord;
|
| | | if (WeekPartyDayInfoDic.ContainsKey((int)DayInfo.DayIndex))
|
| | | {
|
| | | var dit = WeekPartyDayInfoDic[(int)DayInfo.DayIndex];
|
| | | dit.DayIndex= (int)DayInfo.DayIndex; |
| | | dit.Point = (int)DayInfo.Point; |
| | | dit.AwardRecord= (int)DayInfo.AwardRecord;
|
| | | dit.DayIndex = (int)DayInfo.DayIndex;
|
| | | dit.Point = (int)DayInfo.Point;
|
| | | dit.AwardRecord = (int)DayInfo.AwardRecord;
|
| | | for (int j = 0; j < DayInfo.ACount; j++)
|
| | | {
|
| | | var taskList = DayInfo.TaskList[j];
|
| | | int Index = dit.ActionType.FindIndex(s=>s.TemplateID== taskList.TemplateID);
|
| | | int Index = dit.ActionType.FindIndex(s => s.TemplateID == taskList.TemplateID);
|
| | | if (Index != -1)
|
| | | {
|
| | | dit.ActionType[Index].CurTimes = (int)taskList.CurTimes;
|
| | |
| | | }
|
| | | public int GetRewardNumber(int Day, int ID)//获取领奖次数
|
| | | {
|
| | | int Num =0;
|
| | | int Num = 0;
|
| | | if (WeekPartyDayInfoDic.ContainsKey(Day))
|
| | | {
|
| | | var WeekPartyDay = WeekPartyDayInfoDic[Day];
|
| | |
| | | {
|
| | | hour = 5;
|
| | | }
|
| | | DateTime time1 = new DateTime(time.Year, time.Month, time.Day, hour,0,0);
|
| | | DateTime time1 = new DateTime(time.Year, time.Month, time.Day, hour, 0, 0);
|
| | | DateTime time2 = new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | | TimeSpan ts = time2.Subtract(time1);
|
| | | Day = (int)ts.TotalDays;
|
| | |
| | | {
|
| | | Day = 0;
|
| | | }
|
| | | // DebugEx.LogError("输出当前的天数" + Day);
|
| | | if (DayNow != Day && Day<7)
|
| | | // DebugEx.LogError("输出当前的天数" + Day);
|
| | | if (DayNow != Day && Day < 7)
|
| | | {
|
| | | DayNow = Day;
|
| | | if (WeekPartyDayInfoUpdate != null)
|
| | |
| | | WeekPartyDayInfoUpdate();
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | public void SendGetWeekParty(int day, int temdayplateID)//领取周狂欢活动奖励
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | List<WeekPartyItemClass> List = new List<WeekPartyItemClass>();
|
| | | private RedPointState SetRedPointState(int day)//红点状态设置
|
| | | {
|
| | | if (!WeekPartyDayDic.ContainsKey(day) || !WeekPartyDayInfoDic.ContainsKey(day)|| day>DayNow)
|
| | | if (!WeekPartyDayDic.ContainsKey(day) || !WeekPartyDayInfoDic.ContainsKey(day) || day > DayNow)
|
| | | {
|
| | | return RedPointState.None;
|
| | | }
|
| | |
| | | WeekPartyDay = WeekPartyDayDic[key];
|
| | | }
|
| | | }
|
| | | for (int i = 0; i < WeekPartyDay.WeekPartyItem.Length; i++)//积分奖励
|
| | | List.Clear();
|
| | | for (int i = 0; i < WeekPartyDay.WeekPartyItem.Length; i++)
|
| | | {
|
| | | var item = WeekPartyDay.WeekPartyItem[i];
|
| | | List.Add(item);
|
| | | }
|
| | | List.Sort(Compare);
|
| | |
|
| | | for (int i = 0; i < List.Count; i++)//积分奖励
|
| | | {
|
| | | var item = List[i];
|
| | | int type = i;
|
| | | bool IsBool = IsDayReward(day, type);
|
| | | if (point >= item.NeedPoint && !IsBool)
|
| | |
| | | }
|
| | | return RedPointState.None;
|
| | | }
|
| | |
|
| | | public int GetWeekDay(int dayIndex)//获取周几
|
| | | int Compare(WeekPartyItemClass x, WeekPartyItemClass y)//数组排列
|
| | | {
|
| | | if (x.NeedPoint.CompareTo(y.NeedPoint) != 0)
|
| | | {
|
| | | return x.NeedPoint.CompareTo(y.NeedPoint);
|
| | | }
|
| | | return 1;
|
| | | }
|
| | | public int GetWeekDay(int dayIndex)//获取周几
|
| | | {
|
| | | int weekDay = 1;
|
| | | var time = TimeDayBeginAndOver[0];
|
| | |
| | | return weekDay;
|
| | | }
|
| | | DateTime time1 = new DateTime(time.Year, time.Month, time.Day);
|
| | | var time2= time1.AddDays(dayIndex);
|
| | | var time2 = time1.AddDays(dayIndex);
|
| | | var dt = time2.DayOfWeek.ToString();
|
| | | switch (dt)
|
| | | {
|
| | |
| | | return weekDay;
|
| | | }
|
| | |
|
| | | public void GetIsOpen()
|
| | | public void GetIsOpen()
|
| | | {
|
| | | var time1 = TimeDayBeginAndOver[0];
|
| | | var time2 = TimeDayBeginAndOver[1];
|
| | |
| | | {
|
| | | hour = 5;
|
| | | }
|
| | | DateTime timeStar = new DateTime(time1.Year, time1.Month, time1.Day, hour,0,0);
|
| | | DateTime timeStar = new DateTime(time1.Year, time1.Month, time1.Day, hour, 0, 0);
|
| | | DateTime timeEnd = new DateTime(time2.Year, time2.Month, time2.Day, hour, 0, 0);
|
| | | DateTime timeNow= new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | | DateTime timeNow = new DateTime(TimeUtility.ServerNow.Year, TimeUtility.ServerNow.Month, TimeUtility.ServerNow.Day, TimeUtility.ServerNow.Hour, TimeUtility.ServerNow.Minute, TimeUtility.ServerNow.Second);
|
| | | int PlayerLv = PlayerDatas.Instance.baseData.LV;
|
| | | if (PlayerLv >= LimitLV && timeNow >= timeStar && timeNow < timeEnd && !isOpenNow)
|
| | | {
|
| New file |
| | |
| | | using System;
|
| | | using System.Collections;
|
| | | using System.Collections.Generic;
|
| | | using UnityEngine;
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class OperationLuckyTreasure : OperationBase
|
| | | {
|
| | | public int sumLuckPoint; //// 总幸运值
|
| | | public List<LuckyTreasureItem> luckTreasureItems = new List<LuckyTreasureItem>();
|
| | |
|
| | | public override void Reset()
|
| | | {
|
| | | base.Reset();
|
| | | sumLuckPoint = 0;
|
| | | luckTreasureItems.Clear();
|
| | | }
|
| | |
|
| | | public override string ToDisplayTime()
|
| | | {
|
| | | var textBuilder = OperationTimeHepler.textBuilder;
|
| | | textBuilder.Length = 0;
|
| | | textBuilder.Append(startDate.ToDisplay());
|
| | | if (startDate != endDate)
|
| | | {
|
| | | textBuilder.Append("—");
|
| | | textBuilder.Append(endDate.ToDisplay());
|
| | | }
|
| | | return textBuilder.ToString();
|
| | | }
|
| | |
|
| | | public int GetActivityDay()
|
| | | {
|
| | | int dayIndex = IndexOfDays(TimeUtility.ServerNow);
|
| | | if(resetType == 0)
|
| | | {
|
| | | return dayIndex + 1;
|
| | | }
|
| | | else if(resetType == 1)
|
| | | {
|
| | | if(IsLastDay)
|
| | | {
|
| | | return dayIndex;
|
| | | }
|
| | | else
|
| | | {
|
| | | return dayIndex + 1;
|
| | | }
|
| | | }
|
| | | return dayIndex + 1;
|
| | | }
|
| | |
|
| | | public int GetActivitySumDay()
|
| | | {
|
| | | if(resetType == 0)
|
| | | {
|
| | | return totalDays + 1;
|
| | | }
|
| | | else if(resetType == 1)
|
| | | {
|
| | | return totalDays;
|
| | | }
|
| | | return totalDays;
|
| | | }
|
| | |
|
| | | public void ParsePackage(HAA1F_tagMCLuckyTreasureInfo package)
|
| | | {
|
| | | for (int i = 0; i < package.Count; i++)
|
| | | {
|
| | | var itemInfo = package.ItemList[i];
|
| | | LuckyTreasureItem treasureItem = new LuckyTreasureItem((int)itemInfo.ItemID,itemInfo.ItemCnt,itemInfo.IsBind);
|
| | | luckTreasureItems.Add(treasureItem);
|
| | | }
|
| | | }
|
| | |
|
| | | public bool TryGetLuckBigAward(out LuckyTreasureItem treasureItem)
|
| | | {
|
| | | treasureItem = null;
|
| | | if(luckTreasureItems != null && luckTreasureItems.Count > 0)
|
| | | {
|
| | | treasureItem = luckTreasureItems[luckTreasureItems.Count - 1];
|
| | | }
|
| | | return treasureItem != null;
|
| | | }
|
| | |
|
| | | public class LuckyTreasureItem
|
| | | {
|
| | | public int itemId;
|
| | | public int itemCount;
|
| | | public int isBind;
|
| | |
|
| | | public LuckyTreasureItem(int id, int count, int isBind)
|
| | | {
|
| | | this.itemId = id;
|
| | | this.itemCount = count;
|
| | | this.isBind = isBind;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: bf8497f0cbb6a0b428aa828120cd0768 |
| | | timeCreated: 1544251132 |
| | | licenseType: Pro |
| | | MonoImporter: |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | |
| | | if(!isAchieveReach) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("RealmWin_Practice_1")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("RealmWin_Practice_1")); |
| | | } |
| | | AchievementGoto.guideAchievementId = 0; |
| | | } |
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("RealmWin_Bewrite_8"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("RealmWin_Bewrite_8"));
|
| | | }
|
| | | }
|
| | | OnCloseBtn();
|
| | |
| | | }
|
| | | if (IsGodWeaponMaxLevel(type))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1054"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1054"));
|
| | | return;
|
| | | }
|
| | | int[] items = GetLevelUpItemByType(type);
|
| | |
| | | SysNotifyMgr.Instance.ShowTip("GoldErr");
|
| | | break;
|
| | | case RoleRenameResult.NameRuleErr:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1007"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1007"));
|
| | | break;
|
| | | case RoleRenameResult.NameLengErr:
|
| | | break;
|
| | |
| | | {
|
| | | if (renameInput.text.Equals(string.Empty))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameNull"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameNull"));
|
| | | return;
|
| | | }
|
| | | if(GetRenameToolNum() < 1)
|
| | |
| | | switch (error)
|
| | | {
|
| | | case 1:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameLimit"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameLimit"));
|
| | | break;
|
| | | case 2:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CreateRole_NameShort"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CreateRole_NameShort"));
|
| | | break;
|
| | | }
|
| | | return;
|
| | |
| | | if (DirtyWordConfig.IsDirtWord(renameInput.text) || UIHelper.HasSpecialCharac(renameInput.text)
|
| | | || DirtyNameConfig.IsDirtName(renameInput.text))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1007"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1007"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | protected override void OnAfterClose()
|
| | | {
|
| | | UI3DModelExhibition.Instance.StopShow();
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | |
| | | }
|
| | | if (m_BreakRunes.Count < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1059"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1059"));
|
| | | return;
|
| | | }
|
| | | ushort[] placeIndexs = null;
|
| | |
| | | {
|
| | | if (model.sltRuneHole == -1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1061"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1061"));
|
| | | return;
|
| | | }
|
| | | var sltHoleRune = model.GetHoleRune(model.sltRuneHole);
|
| | |
| | | {
|
| | | if (model.IsSameInHoleRune(_rune.id, model.sltRuneHole))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1078"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1078"));
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | model.IsSameRune(_rune.id, ref sameHoles);
|
| | | if (sameHoles.Count > 0 && !sameHoles.Contains(model.sltRuneHole))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1078"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1078"));
|
| | | return;
|
| | | }
|
| | | if (sameHoles.Count > 1)
|
| | |
| | | SkillConfig skillCfg = Config.Instance.Get<SkillConfig>(skillid);
|
| | | if (skillCfg != null)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1115", skillCfg.Skillsource));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1115", skillCfg.Skillsource));
|
| | | }
|
| | | return;
|
| | | }
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | RefreshBuyPrice(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | m_storeModel.SetBuyCnt(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | RefreshBuyPrice(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | RefreshBuyPrice(buyCnt);
|
| | | if (isReachUpper || buyCnt == 0)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | RefreshBuyPrice(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | numKeyboard.Value = buyCnt.ToString();
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | RefreshBuyPrice(buyCnt);
|
| | | if (isReachUpper)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | if (remainNum < 1)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("StoreWin109"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("StoreWin109"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!IsCanBuyItem(_tagRuneModel.TowerID))
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Store101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Store101"));
|
| | | return;
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1012"));//装备强化满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1012"));//装备强化满级
|
| | | }
|
| | | }
|
| | | else if (_theType == 2)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1013"));//请佩戴装备
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1013"));//请佩戴装备
|
| | | }
|
| | | else if (_theType == 3)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1012"));//装备强化满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1012"));//装备强化满级
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1012"));//装备强化满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1012"));//装备强化满级
|
| | | }
|
| | | }
|
| | | else if (_theType == 2)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1013"));//请佩戴装备
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1013"));//请佩戴装备
|
| | | if (IsGuide)
|
| | | {
|
| | | NewBieCenter.Instance.StartNewBieGuide(92);
|
| | |
| | | }
|
| | | else if (_theType == 3)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1012"));//装备强化满级
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1012"));//装备强化满级
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | if (!isWash)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Material101"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Material101"));
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | //}
|
| | | //else
|
| | | //{
|
| | | // MessageWin.Inst.ShowFixedTip(Language.Get("Z1019"));//"翅膀未达到穿戴条件"
|
| | | // ServerTipDetails.DisplayNormalTip(Language.Get("Z1019"));//"翅膀未达到穿戴条件"
|
| | | //}
|
| | | });
|
| | | }
|
| | |
| | |
|
| | | if (itemModel == null)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("EquipReinforceWin_WingRefLv_2"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("EquipReinforceWin_WingRefLv_2"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!JudgeConditions())
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("EquipReinforceWin_WingHText_1"));//所需材料不足
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("EquipReinforceWin_WingHText_1"));//所需材料不足
|
| | | }
|
| | |
|
| | | return;
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | ItemModel itemModel = playerPack.GetItemModelByIndex(PackType.rptEquip, (int)RoleEquipType.retWing);
|
| | | if (itemModel == null)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("EquipReinforceWin_WingRefLv_2"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("EquipReinforceWin_WingRefLv_2"));
|
| | | return;
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | if (!JudgeConditions())
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | }
|
| | | else if (_DevourDIc.Count <= 0)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("EquipReinforceWin_WingHText_1"));//所需材料不足
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("EquipReinforceWin_WingHText_1"));//所需材料不足
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | if (!JudgeConditions())
|
| | | {
|
| | | RefineStopButton();//停止精炼按钮
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Z1018"));//翅膀精炼已到达满级无法继续精炼
|
| | | yield break;
|
| | | }
|
| | | if (_DevourDIc.Count <= 0)
|
| | |
| | | SinglePackModel singlePack = playerPack.GetSinglePackModel(PackType.rptItem);
|
| | | if (singlePack == null || singlePack.GetPackModelIndexDict().Count == 0)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("WingsRefine_NoWing"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("WingsRefine_NoWing"));
|
| | | return;
|
| | | }
|
| | | Dictionary<int, ItemModel> backpack_dic = singlePack.GetPackModelIndexDict();
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("WingsRefine_NoWing"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("WingsRefine_NoWing"));
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | using System; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using System.Collections; |
| | | |
| | | namespace Snxxz.UI |
| | | { |
| | | public class SetUp_BugWin : MonoBehaviour |
| | | { |
| | | [SerializeField] InputField inputTitle; |
| | | [SerializeField] InputField inputContent; |
| | | [SerializeField] Button putBtn; |
| | | float coolTime = 0f; |
| | | |
| | | private void Awake() |
| | | { |
| | | putBtn.AddListener(ClickPutBtn); |
| | | } |
| | | |
| | | private void OnEnable() |
| | | { |
| | | inputTitle.text = ""; |
| | | inputContent.text = ""; |
| | | } |
| | | |
| | | private void ClickPutBtn() |
| | | { |
| | | string title = inputTitle.text; |
| | | string content = inputContent.text; |
| | | |
| | | if (string.IsNullOrEmpty(title)) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("BugSubmit101")); |
| | | return; |
| | | } |
| | | |
| | | if (string.IsNullOrEmpty(content)) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("BugSubmit102")); |
| | | return; |
| | | } |
| | | |
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),Language.Get("BugSubmit103"), |
| | | (bool isOk)=> |
| | | { |
| | | if(isOk) |
| | | { |
| | | if(coolTime <= 0) |
| | | { |
| | | OperationLogCollect.Instance.BugReport(title, content); |
| | | SysNotifyMgr.Instance.ShowTip("BUGSubmit"); |
| | | coolTime = 60; |
| | | StartCoroutine(SubmitCoolTime()); |
| | | } |
| | | else |
| | | { |
| | | SysNotifyMgr.Instance.ShowTip("BUGSubmitCoolTime"); |
| | | } |
| | | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | IEnumerator SubmitCoolTime() |
| | | { |
| | | while(true) |
| | | { |
| | | coolTime -= 1; |
| | | if(coolTime <= 0) |
| | | { |
| | | break; |
| | | } |
| | | yield return new WaitForSeconds(1); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | } |
| | | using System;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | using System.Collections;
|
| | |
|
| | | namespace Snxxz.UI
|
| | | {
|
| | | public class SetUp_BugWin : MonoBehaviour
|
| | | {
|
| | | [SerializeField] InputField inputTitle;
|
| | | [SerializeField] InputField inputContent;
|
| | | [SerializeField] Button putBtn;
|
| | | float coolTime = 0f;
|
| | |
|
| | | private void Awake()
|
| | | {
|
| | | putBtn.AddListener(ClickPutBtn);
|
| | | }
|
| | |
|
| | | private void OnEnable()
|
| | | {
|
| | | inputTitle.text = "";
|
| | | inputContent.text = "";
|
| | | }
|
| | |
|
| | | private void ClickPutBtn()
|
| | | {
|
| | | string title = inputTitle.text;
|
| | | string content = inputContent.text;
|
| | | |
| | | if (string.IsNullOrEmpty(title))
|
| | | {
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("BugSubmit101"));
|
| | | return;
|
| | | }
|
| | |
|
| | | if (string.IsNullOrEmpty(content))
|
| | | {
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("BugSubmit102"));
|
| | | return;
|
| | | }
|
| | |
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("Mail101"),Language.Get("BugSubmit103"),
|
| | | (bool isOk)=>
|
| | | {
|
| | | if(isOk)
|
| | | {
|
| | | if(coolTime <= 0)
|
| | | {
|
| | | OperationLogCollect.Instance.BugReport(title, content);
|
| | | SysNotifyMgr.Instance.ShowTip("BUGSubmit");
|
| | | coolTime = 60;
|
| | | StartCoroutine(SubmitCoolTime());
|
| | | }
|
| | | else
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("BUGSubmitCoolTime");
|
| | | }
|
| | | |
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | IEnumerator SubmitCoolTime()
|
| | | {
|
| | | while(true)
|
| | | {
|
| | | coolTime -= 1;
|
| | | if(coolTime <= 0)
|
| | | {
|
| | | break;
|
| | | }
|
| | | yield return new WaitForSeconds(1);
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | private void OnAuthenticationOk(SDKUtility.FP_DoIDAuthentication _result)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip(_result.errordesc);
|
| | | ServerTipDetails.DisplayNormalTip(_result.errordesc);
|
| | | m_AntiAddition.gameObject.SetActive(_result.errorcode != "1");
|
| | | }
|
| | |
|
| | |
| | | switch (_error)
|
| | | {
|
| | | case 1:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1005"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1005"));
|
| | | break;
|
| | | case 2:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("CopyLimit_Z"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("CopyLimit_Z"));
|
| | | break;
|
| | | }
|
| | | }
|
| | |
| | | {
|
| | | if (model.currentMission.mapId == TeamModel.NONE_MISSION)
|
| | | {
|
| | | MessageWin.Inst.ShowFixedTip("AutoMatchingNoTarget");
|
| | | ServerTipDetails.DisplayNormalTip("AutoMatchingNoTarget");
|
| | | }
|
| | | else if (model.myTeam.memberCount >= 4)
|
| | | {
|
| | |
| | | #endregion
|
| | |
|
| | | #region 固定全服消息
|
| | | private static List<SystemHintData> hintTips = new List<SystemHintData>();
|
| | |
|
| | | private static List<SystemHintData> serverHints = new List<SystemHintData>();
|
| | | public static event Action serverHintRefresh;
|
| | | public static void ShowServerTip(string msg, ArrayList info, int order)
|
| | | {
|
| | | hintTips.Add(new SystemHintData()
|
| | | serverHints.Add(new SystemHintData()
|
| | | {
|
| | | message = msg,
|
| | | order = order,
|
| | |
| | | appendTime = DateTime.Now,
|
| | | });
|
| | |
|
| | | hintTips.Sort(SysNotifyMgr.Instance.Compare);
|
| | | serverHints.Sort(SysNotifyMgr.Instance.Compare);
|
| | |
|
| | | MessageWin.Inst.ShowServerTip();
|
| | | if (serverHintRefresh != null)
|
| | | {
|
| | | serverHintRefresh();
|
| | | }
|
| | | if (!WindowCenter.Instance.IsOpen<MessageWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<MessageWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | public static SystemHintData RequireServerTip()
|
| | | {
|
| | | if (hintTips.Count > 0)
|
| | | if (serverHints.Count > 0)
|
| | | {
|
| | | var _hint = hintTips[0];
|
| | | hintTips.RemoveAt(0);
|
| | | return _hint;
|
| | | var hint = serverHints[0];
|
| | | serverHints.RemoveAt(0);
|
| | | return hint;
|
| | | }
|
| | | return null;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region 普通信息提示
|
| | | private static List<SystemHintData> normalHints = new List<SystemHintData>();
|
| | | public static event Action normalHintRefresh;
|
| | | public static void DisplayNormalTip(string msg, ArrayList info = null)
|
| | | {
|
| | | normalHints.Clear();
|
| | | normalHints.Add(new SystemHintData()
|
| | | {
|
| | | message = msg,
|
| | | order = 0,
|
| | | extentionData = info == null ? info : new ArrayList(info),
|
| | | appendTime = DateTime.Now,
|
| | | });
|
| | | if (normalHintRefresh != null)
|
| | | {
|
| | | normalHintRefresh();
|
| | | }
|
| | | if (!WindowCenter.Instance.IsOpen<MessageWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<MessageWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | public static SystemHintData RequireNormalHint()
|
| | | {
|
| | | if (normalHints.Count > 0)
|
| | | {
|
| | | var hint = normalHints[0];
|
| | | normalHints.RemoveAt(0);
|
| | | return hint;
|
| | | }
|
| | | return null;
|
| | | }
|
| | | #endregion
|
| | |
|
| | | #region GM消息
|
| | | public static List<string> gmMessages = new List<string>();
|
| | | public static event Action<string> gmMessageRefresh;
|
| | | public static void ReceivePackage(string message)
|
| | | {
|
| | | message = message.Replace("###", string.Empty);
|
| | | if (gmMessages.Count >= 300)
|
| | | {
|
| | | gmMessages.RemoveAt(0);
|
| | | }
|
| | | gmMessages.Add(message);
|
| | |
|
| | | if (gmMessageRefresh != null)
|
| | | {
|
| | | gmMessageRefresh(message);
|
| | | }
|
| | | }
|
| | |
|
| | | public static event Action gmOpenEvent;
|
| | | public static bool requireOpenGM;
|
| | | public static void OpenGMPanel()
|
| | | {
|
| | | requireOpenGM = true;
|
| | | if (!WindowCenter.Instance.IsOpen<MessageWin>())
|
| | | {
|
| | | WindowCenter.Instance.Open<MessageWin>();
|
| | | }
|
| | | else
|
| | | {
|
| | | if (gmOpenEvent != null)
|
| | | {
|
| | | gmOpenEvent();
|
| | | }
|
| | | }
|
| | | }
|
| | | #endregion
|
| | |
|
| | | public static void ClearHint()
|
| | | {
|
| | | hintTips.Clear();
|
| | | serverHints.Clear();
|
| | | m_Marquees.Clear();
|
| | | queueTrumpetTips.Clear();
|
| | | normalHints.Clear();
|
| | | }
|
| | |
|
| | | #region 喇叭信息
|
| | |
| | | var treasureConfig = Config.Instance.Get<TreasureConfig>(treasureId); |
| | | if (PlayerDatas.Instance.baseData.LV < treasureConfig.ChallengeLevel) |
| | | { |
| | | MessageWin.Inst.ShowFixedTip(Language.Get("TrialDungeonLevelLimit")); |
| | | ServerTipDetails.DisplayNormalTip(Language.Get("TrialDungeonLevelLimit")); |
| | | } |
| | | else |
| | | { |
| | |
| | | switch (error)
|
| | | {
|
| | | case 1:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Hallows_NeedLv", skillConfig.LearnLVReq));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Hallows_NeedLv", skillConfig.LearnLVReq));
|
| | | break;
|
| | | case 2:
|
| | | if (skillConfig.LearnSkillReq > 0)
|
| | | {
|
| | | var preSkillConfig = Config.Instance.Get<SkillConfig>(skillConfig.LearnSkillReq);
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("Hallows_NeedSkillLV", preSkillConfig.SkillName, skillConfig.LearnSkillLV));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("Hallows_NeedSkillLV", preSkillConfig.SkillName, skillConfig.LearnSkillLV));
|
| | | }
|
| | | break;
|
| | | case 3:
|
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().SetChinItemModel(148);
|
| | | //MessageWin.Inst.ShowFixedTip(Language.Get("Hallows_SpUnEnough"));
|
| | | //ServerTipDetails.DisplayNormalTip(Language.Get("Hallows_SpUnEnough"));
|
| | | break;
|
| | | case 4:
|
| | | SysNotifyMgr.Instance.ShowTip("TreasureUnsealed");
|
| | |
| | | {
|
| | | FairyJadeInvestmentModel m_FairyJadeInvestmentModel;
|
| | | FairyJadeInvestmentModel fairyJadeInvestmentModel { get { return m_FairyJadeInvestmentModel ?? (m_FairyJadeInvestmentModel = ModelCenter.Instance.GetModel<FairyJadeInvestmentModel>()); } }
|
| | | VipInvestModel m_VipInvestModel; |
| | | VipInvestModel m_VipInvestModel;
|
| | | VipInvestModel VipInvestModel { get { return m_VipInvestModel ?? (m_VipInvestModel = ModelCenter.Instance.GetModel<VipInvestModel>()); } }
|
| | | [SerializeField] ScrollerController m_ScrollerController;
|
| | | [SerializeField] Button m_InvestmentButton;//投资按钮
|
| | |
| | | int InvestGold = fairyJadeInvestmentModel.GetInvestGold();
|
| | | //if (PlayerDatas.Instance.baseData.LV > 300)
|
| | | //{
|
| | | // MessageWin.Inst.ShowFixedTip(Language.Get("HasExceededTheInvestmentGrade_Z"));
|
| | | // ServerTipDetails.DisplayNormalTip(Language.Get("HasExceededTheInvestmentGrade_Z"));
|
| | | // return;
|
| | | //}
|
| | | if (InvestGold > 0)
|
| | |
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 幸运鉴宝
|
| | | /// </summary>
|
| | | /// <param name="package"></param>
|
| | | public void UpdateLuckyTreasure(HAA1F_tagMCLuckyTreasureInfo package)
|
| | | {
|
| | | OperationBase operationBase = null;
|
| | | operationDict.TryGetValue(Operation.LuckyTreasure, out operationBase);
|
| | | if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
|
| | | {
|
| | | ForceStopOperation(Operation.LuckyTreasure);
|
| | | }
|
| | | else
|
| | | {
|
| | | if (operationBase == null)
|
| | | {
|
| | | operationBase = new OperationLuckyTreasure();
|
| | | operationDict.Add(Operation.LuckyTreasure, operationBase);
|
| | | }
|
| | | var operation = operationBase as OperationLuckyTreasure;
|
| | | operation.Reset();
|
| | | operation.limitLv = package.LimitLV;
|
| | | operation.startDate = ParseOperationDate(package.StartDate);
|
| | | operation.endDate = ParseOperationDate(package.EndtDate);
|
| | | operation.resetType = package.ResetType;
|
| | | operation.sumLuckPoint = package.LuckyPoint;
|
| | | operation.ParsePackage(package);
|
| | | if (operationTimeUpdateEvent != null)
|
| | | {
|
| | | operationTimeUpdateEvent(Operation.LuckyTreasure);
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | | /// 限时礼包
|
| | | /// </summary>
|
| | | /// <param name="package"></param>
|
| | |
| | | NewYearFairyCeremony, //春节仙界盛典
|
| | | SpringFestival,//春节巡礼
|
| | | OpenServiceAchievement,//七日巡礼
|
| | | LuckyTreasure,//幸运鉴宝
|
| | | max,
|
| | | }
|
| | | }
|
| | |
| | | RegisterModel<FestivalRedpackModel>();
|
| | | RegisterModel<NewYearFairylandCeremonyModel>();
|
| | | RegisterModel<JadeDynastyGemModel>();
|
| | | RegisterModel<LuckyTreasureModel>();
|
| | | inited = true;
|
| | | }
|
| | |
|
| | |
| | | switch (response.code)
|
| | | {
|
| | | case -1:
|
| | | MessageWin.Inst.ShowFixedTip(Language.Get("L1007"));
|
| | | ServerTipDetails.DisplayNormalTip(Language.Get("L1007"));
|
| | | break;
|
| | | case -2:
|
| | | SysNotifyMgr.Instance.ShowTip("VerifyErrorCode2");
|