From aebb5fbf4d0d62183ca58e460e1bc120b0091bdc Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 11 十月 2025 20:07:26 +0800
Subject: [PATCH] 0312 整理等级功能开启ID
---
Main/Utility/EnumHelper.cs | 75 ++++---------------------------------
Main/System/FirstCharge/FirstChargeManager.cs | 2
Main/System/Main/HomeWin.cs | 6 ++
Main/System/Invest/InvestModel.cs | 2
Main/System/Store/StoreModel.cs | 16 ++++----
5 files changed, 23 insertions(+), 78 deletions(-)
diff --git a/Main/System/FirstCharge/FirstChargeManager.cs b/Main/System/FirstCharge/FirstChargeManager.cs
index 353ddd8..beba184 100644
--- a/Main/System/FirstCharge/FirstChargeManager.cs
+++ b/Main/System/FirstCharge/FirstChargeManager.cs
@@ -6,7 +6,7 @@
public class FirstChargeManager : GameSystemManager<FirstChargeManager>
{
- public const int FuncID = 110;
+ public const int FuncID = 21;
public int mainItemId { get { return GetMainItemId(); } }
public int heroItemID;
public int maxGiftCount
diff --git a/Main/System/Invest/InvestModel.cs b/Main/System/Invest/InvestModel.cs
index 03d1596..a1f8f9c 100644
--- a/Main/System/Invest/InvestModel.cs
+++ b/Main/System/Invest/InvestModel.cs
@@ -8,7 +8,7 @@
{
// public ILOpenServerActivityProxy activity;
- public const int FuncID = 119;
+ public const int FuncID = 25;
//鎶曡祫瀵瑰簲濂栧姳
diff --git a/Main/System/Main/HomeWin.cs b/Main/System/Main/HomeWin.cs
index 76371b5..064f759 100644
--- a/Main/System/Main/HomeWin.cs
+++ b/Main/System/Main/HomeWin.cs
@@ -72,7 +72,7 @@
autoBtn.AddListener(() =>
{
- if (!FuncOpen.Instance.IsFuncOpen(108, true))
+ if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.AutoFight, true))
{
return;
}
@@ -92,6 +92,10 @@
blessLVBtn.AddListener(() =>
{
+ if (!FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlessLV, true))
+ {
+ return;
+ }
UIManager.Instance.OpenWindow<BlessLVWin>();
});
diff --git a/Main/System/Store/StoreModel.cs b/Main/System/Store/StoreModel.cs
index 96dfc34..19b99d2 100644
--- a/Main/System/Store/StoreModel.cs
+++ b/Main/System/Store/StoreModel.cs
@@ -1117,9 +1117,9 @@
UpdateMustBuyRedpoint();
UpdateDailyRedpoinit();
break;
- case FuncOpenEnum.BlastFurnace:
- ControllerRedPoint();
- break;
+ // case FuncOpenEnum.BlastFurnace:
+ // ControllerRedPoint();
+ // break;
}
}
@@ -1268,11 +1268,11 @@
public void ControllerRedPoint(bool isLook = false)
{
fairyStoreRemindRedpoint.state = RedPointState.None;
- if (!FairyModel.Instance.fairyStoreOpen
- || !FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlastFurnace))
- {
- return;
- }
+ // if (!FairyModel.Instance.fairyStoreOpen
+ // || !FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.BlastFurnace))
+ // {
+ // return;
+ // }
int familyLv = PlayerDatas.Instance.fairyData.fairy.FamilyLV;
if (!isLook)
diff --git a/Main/Utility/EnumHelper.cs b/Main/Utility/EnumHelper.cs
index 1d8bb3a..b6bcfc4 100644
--- a/Main/Utility/EnumHelper.cs
+++ b/Main/Utility/EnumHelper.cs
@@ -816,74 +816,15 @@
Hero = 1,//姝﹀皢
Challenge = 2,//鎸戞垬
Official = 3,//鍐呮斂
- Pet = 6,//鐏靛疇
- Treasure = 7,//娉曞疂
- Mounts = 8,//鍧愰獞
- Rune = 9,//绗﹀嵃
- Realm = 12, //澧冪晫 瀹樿亴
- Fairy = 15,// 浠欑洘
- FairyTask = 16,
- GodWeapon = 20, //绁炲叺
- SelfBoss = 22,//涓汉Boss
- Title = 24, //绉板彿
- Talent = 149,//澶╄祴鎶�鑳�
- Suit = 36,//濂楄杩涘寲
- ExpPray = 60,//缁忛獙绁堟効
- CoinPray = 61,//閾滈挶绁堟効
- WorldLv = 71,//涓栫晫绛夌骇
- Rank = 72,//鎺掕姒�
- Friend = 73,//濂藉弸
- TouchSky = 74,//鐧诲ぉ
- Compose = 75,//鍚堟垚
- HuntTreasure = 76,//鎵撳疂
- Market = 77,//甯傚満
- DayDaily = 78,//鏃ュ父
- Store = 79,//鍟嗗煄
- RuneTower = 80,//绗﹀嵃濉�
- SignIn = 81,//绛惧埌
- Potential = 82,//娼滃姏鍔犳垚
- IceCrystal = 83,//鍐版櫠鐭胯剦
- FairyFest = 84,//浠欑洘瀹翠細
- Kylin = 85,//楹掗簾涔嬪簻
- FairyLand = 86,//浠欑晫绉樺
- BlastFurnace = 87,//鐐间腹
- Munekado = 88,//瀹楅棬璇曠偧
- GuardSky = 89,//瀹堝崼浜虹殗
- WingRefine = 90,//缈呰唨绮剧偧
- EquipRefine = 91,//瑁呭绮剧偧
- ElderGods = 92,//鍙ょ绂佸湴
- EquipCompose = 93,//瑁呭鍚堟垚
- Guard = 94,//瀹堟姢
- SkillTreasure = 95,//鎶�鑳芥硶瀹�
- WingCompose = 97,//缈呰唨鍚堟垚
- Demon = 98,//娣蜂贡濡栧煙
- HappyFindTreasure = 99,// 鑻遍泟鎷涘嫙
- FightPromote = 100,//鎴樺姏鎻愬崌
- AncientBattleGround = 101,//涓婂彜鎴樺満
- Chat = 102,//鑱婂ぉ
- FairyLeague = 111,//浠欑洘鑱旇禌
- Recharge = 113,//鍏呭��
- OpenServerRedEnvelope = 122,//寮�鏈嶇孩鍖�
- EquipDecompose = 123, //瑁呭鍒嗚В
- TreasureFindHost = 124, //娉曞疂璁や富
- Dogz = 138, //绁炲吔
- ReikiRoot = 145,//鐏垫牴
- CrossServer = 157, //璺ㄦ湇澶╂璧�
- CrossServerBoss = 162,
- HazyRegion = 173,//缂ョ紙浠欏煙
- DayOnline = 189, //姣忔棩鍦ㄧ嚎
+ Realm = 10, //澧冪晫 瀹樿亴
+ Fairy = 11,// 浠欑洘
+ BlessLV = 12, //绁濈绛夌骇
+ Store = 16,//鍟嗗煄
+ HappyFindTreasure = 18,// 鑻遍泟鎷涘嫙
+ Chat = 19,//鑱婂ぉ
+ AutoFight = 20,//鑷姩鎴樻枟
+ Recharge = 22,//鍏呭��
- //鍚庣画IL寮�鍙戞坊鍔犻璁�
- default1,
- default2,
- default3,
- default4,
- default5,
- default6,//绔炴妧鍦�
- default7,
- default8,
- default9,
-
}
--
Gitblit v1.8.0