Ver código fonte

添加部分个人设置界面

leiyasi 1 ano atrás
pai
commit
a0e1ebe5b6
52 arquivos alterados com 944 adições e 310 exclusões
  1. 1 2
      GameClient/Assets/Game/HotUpdate/Controller/GameController.cs
  2. 52 1
      GameClient/Assets/Game/HotUpdate/Data/RoleDataManager.cs
  3. 0 18
      GameClient/Assets/Game/HotUpdate/Data/RoleInfoManager.cs
  4. 1 3
      GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs
  5. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ButtonToggle2.cs
  6. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ButtonToggle2.cs.meta
  7. 77 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_InputGiftCodeUI.cs
  8. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_InputGiftCodeUI.cs.meta
  9. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseTipsUI.cs
  10. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseTipsUI.cs.meta
  11. 25 5
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseUI.cs
  12. 30 20
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_PhoneBindingUI.cs
  13. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_PhoneBindingUI.cs.meta
  14. 0 114
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_RoleInfoUI_old.cs
  15. 9 12
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_SettingUI.cs
  16. 0 107
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_SettingUI_old2.cs
  17. 3 3
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_bgItem.cs
  18. 1 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftSProxy.cs
  19. 0 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftSProxy.cs.meta
  20. 1 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/CommonSProxy.cs
  21. 22 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/RoleInfoSProxy.cs
  22. 27 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/SettingSProxy.cs
  23. 11 0
      GameClient/Assets/Game/HotUpdate/ServerProxy/SettingSProxy.cs.meta
  24. 2 2
      GameClient/Assets/Game/HotUpdate/Views/ActivityAfuGift/ActivityAfuGiftView.cs
  25. 2 1
      GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs
  26. 1 1
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/BadgeChooseView.cs
  27. 50 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/InputGiftCodeView.cs
  28. 11 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/InputGiftCodeView.cs.meta
  29. 32 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseTipsView.cs
  30. 11 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseTipsView.cs.meta
  31. 100 10
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseView.cs
  32. 59 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs
  33. 11 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs.meta
  34. 3 2
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs
  35. 24 7
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/SettingView.cs
  36. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0!a.png
  37. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0.png
  38. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_1!a.png
  39. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_1.png
  40. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_2!a.png
  41. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_2.png
  42. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_3!a.png
  43. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_3.png
  44. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_4!a.png
  45. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_4.png
  46. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5!a.png
  47. 96 0
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5!a.png.meta
  48. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5.png
  49. 96 0
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5.png.meta
  50. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_6!a.png
  51. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_6.png
  52. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes

+ 1 - 2
GameClient/Assets/Game/HotUpdate/Controller/GameController.cs

@@ -235,7 +235,7 @@ namespace GFGGame
             NoticeSProxy.ReqSystemNoticeList().Coroutine();
             MailSProxy.ReqMailCount().Coroutine();
             FriendSProxy.ReqAllFriendInfos().Coroutine();
-            ActivityAfuGiftProxy.GetAfuGiftInfo().Coroutine();
+            ActivityAfuGiftSProxy.GetAfuGiftInfo().Coroutine();
 
             PoemPhotoSProxy.ReqAllPhotoInfos().Coroutine();
             TravelSProxy.ReqTravelInfo().Coroutine();
@@ -253,7 +253,6 @@ namespace GFGGame
             LuckyBoxSProxy.ReqGetLuckyBoxRotatingInfo().Coroutine();
             LeagueSproxy.GetTeapartyInfos().Coroutine();
             LeagueSproxy.GetTeapartyMatchingInfos(RoleDataManager.roleId).Coroutine();
-            TaskSProxy.GetTaskTypePro().Coroutine();
 
             int storageAutoPlay = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_AUTO_PLAY);
             FightDataManager.Instance.autoPlay = storageAutoPlay <= 0 ? false : true;

+ 52 - 1
GameClient/Assets/Game/HotUpdate/Data/RoleDataManager.cs

@@ -56,7 +56,7 @@ namespace GFGGame
             }
         }
 
-        private static int _mainBgID;
+        private static int _mainBgID = MainBackgroundCfgArray.Instance.dataArray[0].id;
         public static int mainBgID
         {
             get
@@ -69,6 +69,29 @@ namespace GFGGame
             }
         }
 
+        private static int _saveDressUpBgToMainBg = 0;
+        public static int saveDressUpBgToMainBg
+        {
+            get
+            {
+                //return GameGlobal.myNumericComponent.GetAsInt(NumericType.IsOpenChangeGearBg);
+                return _saveDressUpBgToMainBg;
+            }
+        }
+
+        private static int _achievementTaskCollect;
+        public static int achievementTaskCollect
+        {
+            get
+            {
+                return _achievementTaskCollect;
+            }
+            set
+            {
+                _achievementTaskCollect = value;
+            }
+        }
+
         public static int power
         {
             get
@@ -331,5 +354,33 @@ namespace GFGGame
         {
             return ItemDataManager.GetItemNum(id) > 0;
         }
+
+        public static string GetMainBgRes()
+        {
+            // 如果主界面ID大于最大物品ID,说明是主界面专属背景
+            if(mainBgID > ConstItemID.MAX_ITEM_ID)
+            {
+                return ResPathUtil.GetBgImgPath(MainBackgroundCfgArray.Instance.GetCfg(mainBgID).res);
+            }
+            // 换装背景
+            else
+            {
+                return ResPathUtil.GetSceneBgPath(ItemCfgArray.Instance.GetCfg(mainBgID).res);
+            }
+        }
+
+        /// <summary>
+        /// 检查是否应该保存换装背景到主界面背景
+        /// </summary>
+        /// <param name="dressUpBgID"></param>
+        public static void CheckSaveDressUpBgToMainBg(int dressUpBgID)
+        {
+            // 小月卡
+            float endTime = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
+            if (endTime > TimeHelper.ServerNow() && saveDressUpBgToMainBg == 1)
+            {
+                mainBgID = dressUpBgID;
+            }
+        }
     }
 }

+ 0 - 18
GameClient/Assets/Game/HotUpdate/Data/RoleInfoManager.cs

@@ -166,24 +166,6 @@ namespace GFGGame
             return value;
         }
 
-        /// <summary>
-        /// 成就任务完成进度
-        /// </summary>
-        /// <returns></returns>
-        public int GetTaskAchieveProgress()
-        {
-            var taskTypeProList = TaskDataManager.Instance.GetAchievementTaskTypeProList();
-            int finishedCount = 0;
-            int totalCount = 0;
-            for (int i = 0; i < taskTypeProList.Count; i++)
-            {
-                finishedCount += taskTypeProList[i].CompleteTaskNum;
-                totalCount += taskTypeProList[i].AllTaskNum;
-            }
-            int value = FieldGuideView.ProgressCalculate(finishedCount, totalCount);
-            return value;
-        }
-
         public string GetLeagueName()
         {
             LeagueData leagueData = LeagueDataManager.Instance.LeagueData;

+ 1 - 3
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -11,14 +11,12 @@ namespace GFGGame
 {
     public class SceneController
     {
-        // 临时存主界面路径
-        public static string bgTempRes = ResPathUtil.GetBgImgPath("zjm_1");  
         public static void UpdateMainScene(GameObject sceneObj)
         {
             //背景0
             Transform tf = sceneObj.transform.Find("Bg");
             SpriteRenderer spr = tf.GetComponent<SpriteRenderer>();
-            var resPath = bgTempRes;
+            var resPath = RoleDataManager.GetMainBgRes();
 
             SpriteHelper.AddSpriteTo(spr, resPath);
             //角色

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ButtonToggle2.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.RoleInfo
+{
+    public partial class UI_ButtonToggle2
+    {
+        public GButton target;
+        public Controller m_type;
+        public const string URL = "ui://374k3dwvr8a09fzt";
+        public const string PACKAGE_NAME = "RoleInfo";
+        public const string RES_NAME = "ButtonToggle2";
+        private static UI_ButtonToggle2 _proxy;
+
+        public static UI_ButtonToggle2 Create(GObject gObject = null)
+        {
+            var ui = new UI_ButtonToggle2();
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_ButtonToggle2 Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ButtonToggle2();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GButton)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GButton)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_type = comp.GetController("type");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_type = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_ButtonToggle2.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: cb84e614885ba964f8ec6317e6aa3dae
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 77 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_InputGiftCodeUI.cs

@@ -0,0 +1,77 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.RoleInfo
+{
+    public partial class UI_InputGiftCodeUI
+    {
+        public GComponent target;
+        public GImage m_bg;
+        public GTextInput m_inputCode;
+        public GButton m_btnSure;
+        public const string URL = "ui://374k3dwvr8a09fza";
+        public const string PACKAGE_NAME = "RoleInfo";
+        public const string RES_NAME = "InputGiftCodeUI";
+        private static UI_InputGiftCodeUI _proxy;
+
+        public static UI_InputGiftCodeUI Create(GObject gObject = null)
+        {
+            var ui = new UI_InputGiftCodeUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_InputGiftCodeUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_InputGiftCodeUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_bg = (GImage)comp.GetChild("bg");
+            m_inputCode = (GTextInput)comp.GetChild("inputCode");
+            m_btnSure = (GButton)comp.GetChild("btnSure");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_bg = null;
+            m_inputCode = null;
+            m_btnSure = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_InputGiftCodeUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 01ce10584e1589a4486c4e49ee54e12c
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseTipsUI.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.RoleInfo
+{
+    public partial class UI_MainBgChooseTipsUI
+    {
+        public GComponent target;
+        public GImage m_bg;
+        public const string URL = "ui://374k3dwvr8a09fzm";
+        public const string PACKAGE_NAME = "RoleInfo";
+        public const string RES_NAME = "MainBgChooseTipsUI";
+        private static UI_MainBgChooseTipsUI _proxy;
+
+        public static UI_MainBgChooseTipsUI Create(GObject gObject = null)
+        {
+            var ui = new UI_MainBgChooseTipsUI();
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static UI_MainBgChooseTipsUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_MainBgChooseTipsUI();
+            }
+            var ui = _proxy;
+            if(gObject == null)
+            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
+            else
+            	ui.target =  (GComponent)gObject;
+            ui.Init(ui.target);
+            return ui;
+        }
+
+        public static void ProxyEnd()
+        {
+            if (_proxy != null)
+            {
+                _proxy.Dispose();
+            }
+        }
+
+        public static void ClearProxy()
+        {
+            ProxyEnd();
+            _proxy = null;
+        }
+
+        private void Init(GComponent comp)
+        {
+            m_bg = (GImage)comp.GetChild("bg");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_bg = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseTipsUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: eb2a8ae417e8d8a459c518656f0df9ca
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 25 - 5
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_MainBgChooseUI.cs

@@ -8,10 +8,16 @@ namespace UI.RoleInfo
     {
         public GComponent target;
         public GLoader m_loaBg;
-        public GComponent m_mainUIShow;
+        public GGraph m_mask;
         public GButton m_btnBack;
+        public GImage m_frame;
+        public GComponent m_mainUIShow;
         public GList m_bgList;
-        public GButton m_btnChange;
+        public UI_Button19 m_btnChange;
+        public UI_ButtonToggle2 m_btnSaveDressUpBg;
+        public GButton m_btnGoShop;
+        public GGraph m_heightAdaptHelper;
+        public GButton m_btnRule;
         public Transition m_openViewAction;
         public const string URL = "ui://374k3dwvc4t79fvz";
         public const string PACKAGE_NAME = "RoleInfo";
@@ -61,19 +67,33 @@ namespace UI.RoleInfo
         private void Init(GComponent comp)
         {
             m_loaBg = (GLoader)comp.GetChild("loaBg");
-            m_mainUIShow = (GComponent)comp.GetChild("mainUIShow");
+            m_mask = (GGraph)comp.GetChild("mask");
             m_btnBack = (GButton)comp.GetChild("btnBack");
+            m_frame = (GImage)comp.GetChild("frame");
+            m_mainUIShow = (GComponent)comp.GetChild("mainUIShow");
             m_bgList = (GList)comp.GetChild("bgList");
-            m_btnChange = (GButton)comp.GetChild("btnChange");
+            m_btnChange = (UI_Button19)UI_Button19.Create(comp.GetChild("btnChange"));
+            m_btnSaveDressUpBg = (UI_ButtonToggle2)UI_ButtonToggle2.Create(comp.GetChild("btnSaveDressUpBg"));
+            m_btnGoShop = (GButton)comp.GetChild("btnGoShop");
+            m_heightAdaptHelper = (GGraph)comp.GetChild("heightAdaptHelper");
+            m_btnRule = (GButton)comp.GetChild("btnRule");
             m_openViewAction = comp.GetTransition("openViewAction");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaBg = null;
-            m_mainUIShow = null;
+            m_mask = null;
             m_btnBack = null;
+            m_frame = null;
+            m_mainUIShow = null;
             m_bgList = null;
+            m_btnChange.Dispose();
             m_btnChange = null;
+            m_btnSaveDressUpBg.Dispose();
+            m_btnSaveDressUpBg = null;
+            m_btnGoShop = null;
+            m_heightAdaptHelper = null;
+            m_btnRule = null;
             m_openViewAction = null;
             if(disposeTarget && target != null)
             {

+ 30 - 20
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_SettingUI_old.cs → GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_PhoneBindingUI.cs

@@ -4,24 +4,27 @@ using FairyGUI;
 
 namespace UI.RoleInfo
 {
-    public partial class UI_SettingUI_old
+    public partial class UI_PhoneBindingUI
     {
         public GComponent target;
         public GImage m_bg;
         public GGraph m_holderLeftTop;
         public GGraph m_holderRightDowm;
-        public GButton m_btnLogout;
-        public GButton m_btnExit;
-        public GButton m_btnMusic;
-        public GButton m_btnSound;
-        public const string URL = "ui://374k3dwvc4t7gr";
+        public GTextInput m_inputName;
+        public GTextInput m_inputPhoneNumber;
+        public UI_Button19 m_btnSure;
+        public GTextField m_inputConfirmCode;
+        public GButton m_btnGetCode;
+        public GButton m_btnClose;
+        public GLoader m_icon;
+        public const string URL = "ui://374k3dwvr8a09fze";
         public const string PACKAGE_NAME = "RoleInfo";
-        public const string RES_NAME = "SettingUI_old";
-        private static UI_SettingUI_old _proxy;
+        public const string RES_NAME = "PhoneBindingUI";
+        private static UI_PhoneBindingUI _proxy;
 
-        public static UI_SettingUI_old Create(GObject gObject = null)
+        public static UI_PhoneBindingUI Create(GObject gObject = null)
         {
-            var ui = new UI_SettingUI_old();
+            var ui = new UI_PhoneBindingUI();
             if(gObject == null)
             	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
             else
@@ -30,11 +33,11 @@ namespace UI.RoleInfo
             return ui;
         }
 
-        public static UI_SettingUI_old Proxy(GObject gObject = null)
+        public static UI_PhoneBindingUI Proxy(GObject gObject = null)
         {
             if(_proxy == null)
             {
-                _proxy = new UI_SettingUI_old();
+                _proxy = new UI_PhoneBindingUI();
             }
             var ui = _proxy;
             if(gObject == null)
@@ -64,20 +67,27 @@ namespace UI.RoleInfo
             m_bg = (GImage)comp.GetChild("bg");
             m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
             m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
-            m_btnLogout = (GButton)comp.GetChild("btnLogout");
-            m_btnExit = (GButton)comp.GetChild("btnExit");
-            m_btnMusic = (GButton)comp.GetChild("btnMusic");
-            m_btnSound = (GButton)comp.GetChild("btnSound");
+            m_inputName = (GTextInput)comp.GetChild("inputName");
+            m_inputPhoneNumber = (GTextInput)comp.GetChild("inputPhoneNumber");
+            m_btnSure = (UI_Button19)UI_Button19.Create(comp.GetChild("btnSure"));
+            m_inputConfirmCode = (GTextField)comp.GetChild("inputConfirmCode");
+            m_btnGetCode = (GButton)comp.GetChild("btnGetCode");
+            m_btnClose = (GButton)comp.GetChild("btnClose");
+            m_icon = (GLoader)comp.GetChild("icon");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_bg = null;
             m_holderLeftTop = null;
             m_holderRightDowm = null;
-            m_btnLogout = null;
-            m_btnExit = null;
-            m_btnMusic = null;
-            m_btnSound = null;
+            m_inputName = null;
+            m_inputPhoneNumber = null;
+            m_btnSure.Dispose();
+            m_btnSure = null;
+            m_inputConfirmCode = null;
+            m_btnGetCode = null;
+            m_btnClose = null;
+            m_icon = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_PhoneBindingUI.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: e5736b41c1d314f4d9f132e46f812fb7
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 0 - 114
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_RoleInfoUI_old.cs

@@ -1,114 +0,0 @@
-/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
-
-using FairyGUI;
-
-namespace UI.RoleInfo
-{
-    public partial class UI_RoleInfoUI_old
-    {
-        public GComponent target;
-        public GLoader m_loaBg;
-        public GTextField m_txtVersion;
-        public GButton m_btnHelp;
-        public GButton m_btnBack;
-        public GComponent m_comHead;
-        public GTextField m_txtLvl;
-        public GTextField m_txtExp;
-        public GTextField m_txtRoleName;
-        public GLoader m_loaChangeName;
-        public GTextInput m_txtSlogan;
-        public GGroup m_grpHead;
-        public UI_Button2 m_btnFieldGuide;
-        public GList m_list;
-        public GButton m_btnSkill;
-        public GButton m_btnSetting;
-        public const string URL = "ui://374k3dwvp4yn9fw1";
-        public const string PACKAGE_NAME = "RoleInfo";
-        public const string RES_NAME = "RoleInfoUI_old";
-        private static UI_RoleInfoUI_old _proxy;
-
-        public static UI_RoleInfoUI_old Create(GObject gObject = null)
-        {
-            var ui = new UI_RoleInfoUI_old();
-            if(gObject == null)
-            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
-            else
-            	ui.target =  (GComponent)gObject;
-            ui.Init(ui.target);
-            return ui;
-        }
-
-        public static UI_RoleInfoUI_old Proxy(GObject gObject = null)
-        {
-            if(_proxy == null)
-            {
-                _proxy = new UI_RoleInfoUI_old();
-            }
-            var ui = _proxy;
-            if(gObject == null)
-            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
-            else
-            	ui.target =  (GComponent)gObject;
-            ui.Init(ui.target);
-            return ui;
-        }
-
-        public static void ProxyEnd()
-        {
-            if (_proxy != null)
-            {
-                _proxy.Dispose();
-            }
-        }
-
-        public static void ClearProxy()
-        {
-            ProxyEnd();
-            _proxy = null;
-        }
-
-        private void Init(GComponent comp)
-        {
-            m_loaBg = (GLoader)comp.GetChild("loaBg");
-            m_txtVersion = (GTextField)comp.GetChild("txtVersion");
-            m_btnHelp = (GButton)comp.GetChild("btnHelp");
-            m_btnBack = (GButton)comp.GetChild("btnBack");
-            m_comHead = (GComponent)comp.GetChild("comHead");
-            m_txtLvl = (GTextField)comp.GetChild("txtLvl");
-            m_txtExp = (GTextField)comp.GetChild("txtExp");
-            m_txtRoleName = (GTextField)comp.GetChild("txtRoleName");
-            m_loaChangeName = (GLoader)comp.GetChild("loaChangeName");
-            m_txtSlogan = (GTextInput)comp.GetChild("txtSlogan");
-            m_grpHead = (GGroup)comp.GetChild("grpHead");
-            m_btnFieldGuide = (UI_Button2)UI_Button2.Create(comp.GetChild("btnFieldGuide"));
-            m_list = (GList)comp.GetChild("list");
-            m_btnSkill = (GButton)comp.GetChild("btnSkill");
-            m_btnSetting = (GButton)comp.GetChild("btnSetting");
-        }
-        public void Dispose(bool disposeTarget = false)
-        {
-            m_loaBg = null;
-            m_txtVersion = null;
-            m_btnHelp = null;
-            m_btnBack = null;
-            m_comHead = null;
-            m_txtLvl = null;
-            m_txtExp = null;
-            m_txtRoleName = null;
-            m_loaChangeName = null;
-            m_txtSlogan = null;
-            m_grpHead = null;
-            m_btnFieldGuide.Dispose();
-            m_btnFieldGuide = null;
-            m_list = null;
-            m_btnSkill = null;
-            m_btnSetting = null;
-            if(disposeTarget && target != null)
-            {
-                target.RemoveFromParent();
-                target.Dispose();
-            }
-            target = null;
-        }
-    }
-}

+ 9 - 12
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_SettingUI.cs

@@ -9,7 +9,6 @@ namespace UI.RoleInfo
         public GComponent target;
         public Controller m_c1;
         public GLoader m_loaBg;
-        public GButton m_btnChooseMainBg;
         public GLoader m_icon;
         public GList m_settingTypeList;
         public GButton m_btnExit;
@@ -19,13 +18,13 @@ namespace UI.RoleInfo
         public GButton m_btnSound;
         public UI_Slider2 m_voiceSlider;
         public GButton m_btnVoice;
-        public GTextField m_gameProtectAgree;
-        public GTextField m_privacyAgree;
-        public GTextField m_childrenAgree;
+        public GRichTextField m_gameProtectAgree;
+        public GRichTextField m_privacyAgree;
+        public GRichTextField m_childrenAgree;
         public GButton m_btnBinding;
         public UI_Button19 m_btnLogout;
         public UI_Button20 m_btnGiftCode;
-        public GButton m_btnBinding_2;
+        public GButton m_btnExchange;
         public Transition m_t0;
         public const string URL = "ui://374k3dwvr9ri1";
         public const string PACKAGE_NAME = "RoleInfo";
@@ -76,7 +75,6 @@ namespace UI.RoleInfo
         {
             m_c1 = comp.GetController("c1");
             m_loaBg = (GLoader)comp.GetChild("loaBg");
-            m_btnChooseMainBg = (GButton)comp.GetChild("btnChooseMainBg");
             m_icon = (GLoader)comp.GetChild("icon");
             m_settingTypeList = (GList)comp.GetChild("settingTypeList");
             m_btnExit = (GButton)comp.GetChild("btnExit");
@@ -86,20 +84,19 @@ namespace UI.RoleInfo
             m_btnSound = (GButton)comp.GetChild("btnSound");
             m_voiceSlider = (UI_Slider2)UI_Slider2.Create(comp.GetChild("voiceSlider"));
             m_btnVoice = (GButton)comp.GetChild("btnVoice");
-            m_gameProtectAgree = (GTextField)comp.GetChild("gameProtectAgree");
-            m_privacyAgree = (GTextField)comp.GetChild("privacyAgree");
-            m_childrenAgree = (GTextField)comp.GetChild("childrenAgree");
+            m_gameProtectAgree = (GRichTextField)comp.GetChild("gameProtectAgree");
+            m_privacyAgree = (GRichTextField)comp.GetChild("privacyAgree");
+            m_childrenAgree = (GRichTextField)comp.GetChild("childrenAgree");
             m_btnBinding = (GButton)comp.GetChild("btnBinding");
             m_btnLogout = (UI_Button19)UI_Button19.Create(comp.GetChild("btnLogout"));
             m_btnGiftCode = (UI_Button20)UI_Button20.Create(comp.GetChild("btnGiftCode"));
-            m_btnBinding_2 = (GButton)comp.GetChild("btnBinding");
+            m_btnExchange = (GButton)comp.GetChild("btnExchange");
             m_t0 = comp.GetTransition("t0");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_c1 = null;
             m_loaBg = null;
-            m_btnChooseMainBg = null;
             m_icon = null;
             m_settingTypeList = null;
             m_btnExit = null;
@@ -120,7 +117,7 @@ namespace UI.RoleInfo
             m_btnLogout = null;
             m_btnGiftCode.Dispose();
             m_btnGiftCode = null;
-            m_btnBinding_2 = null;
+            m_btnExchange = null;
             m_t0 = null;
             if(disposeTarget && target != null)
             {

+ 0 - 107
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_SettingUI_old2.cs

@@ -1,107 +0,0 @@
-/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
-
-using FairyGUI;
-
-namespace UI.RoleInfo
-{
-    public partial class UI_SettingUI_old2
-    {
-        public GComponent target;
-        public GImage m_bg;
-        public GGraph m_holderLeftTop;
-        public GGraph m_holderRightDowm;
-        public GButton m_btnLogout;
-        public GButton m_btnExit;
-        public GComponent m_musicSlider;
-        public GButton m_btnMusic;
-        public GButton m_btnSound;
-        public GComponent m_soundSlider;
-        public GComponent m_voiceSlider;
-        public GButton m_btnVoice;
-        public GButton m_btnChooseMainBg;
-        public Transition m_t0;
-        public const string URL = "ui://374k3dwvxvs39fyb";
-        public const string PACKAGE_NAME = "RoleInfo";
-        public const string RES_NAME = "SettingUI_old2";
-        private static UI_SettingUI_old2 _proxy;
-
-        public static UI_SettingUI_old2 Create(GObject gObject = null)
-        {
-            var ui = new UI_SettingUI_old2();
-            if(gObject == null)
-            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
-            else
-            	ui.target =  (GComponent)gObject;
-            ui.Init(ui.target);
-            return ui;
-        }
-
-        public static UI_SettingUI_old2 Proxy(GObject gObject = null)
-        {
-            if(_proxy == null)
-            {
-                _proxy = new UI_SettingUI_old2();
-            }
-            var ui = _proxy;
-            if(gObject == null)
-            	ui.target =  (GComponent)UIPackage.CreateObject(PACKAGE_NAME, RES_NAME);
-            else
-            	ui.target =  (GComponent)gObject;
-            ui.Init(ui.target);
-            return ui;
-        }
-
-        public static void ProxyEnd()
-        {
-            if (_proxy != null)
-            {
-                _proxy.Dispose();
-            }
-        }
-
-        public static void ClearProxy()
-        {
-            ProxyEnd();
-            _proxy = null;
-        }
-
-        private void Init(GComponent comp)
-        {
-            m_bg = (GImage)comp.GetChild("bg");
-            m_holderLeftTop = (GGraph)comp.GetChild("holderLeftTop");
-            m_holderRightDowm = (GGraph)comp.GetChild("holderRightDowm");
-            m_btnLogout = (GButton)comp.GetChild("btnLogout");
-            m_btnExit = (GButton)comp.GetChild("btnExit");
-            m_musicSlider = (GComponent)comp.GetChild("musicSlider");
-            m_btnMusic = (GButton)comp.GetChild("btnMusic");
-            m_btnSound = (GButton)comp.GetChild("btnSound");
-            m_soundSlider = (GComponent)comp.GetChild("soundSlider");
-            m_voiceSlider = (GComponent)comp.GetChild("voiceSlider");
-            m_btnVoice = (GButton)comp.GetChild("btnVoice");
-            m_btnChooseMainBg = (GButton)comp.GetChild("btnChooseMainBg");
-            m_t0 = comp.GetTransition("t0");
-        }
-        public void Dispose(bool disposeTarget = false)
-        {
-            m_bg = null;
-            m_holderLeftTop = null;
-            m_holderRightDowm = null;
-            m_btnLogout = null;
-            m_btnExit = null;
-            m_musicSlider = null;
-            m_btnMusic = null;
-            m_btnSound = null;
-            m_soundSlider = null;
-            m_voiceSlider = null;
-            m_btnVoice = null;
-            m_btnChooseMainBg = null;
-            m_t0 = null;
-            if(disposeTarget && target != null)
-            {
-                target.RemoveFromParent();
-                target.Dispose();
-            }
-            target = null;
-        }
-    }
-}

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_bgItem.cs

@@ -8,7 +8,7 @@ namespace UI.RoleInfo
     {
         public GButton target;
         public GLoader m_bgImg;
-        public GGraph m_mask;
+        public GTextField m_name;
         public const string URL = "ui://374k3dwvc4t7gv";
         public const string PACKAGE_NAME = "RoleInfo";
         public const string RES_NAME = "bgItem";
@@ -57,12 +57,12 @@ namespace UI.RoleInfo
         private void Init(GComponent comp)
         {
             m_bgImg = (GLoader)comp.GetChild("bgImg");
-            m_mask = (GGraph)comp.GetChild("mask");
+            m_name = (GTextField)comp.GetChild("name");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_bgImg = null;
-            m_mask = null;
+            m_name = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftProxy.cs → GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftSProxy.cs

@@ -31,7 +31,7 @@ namespace ET
 
 namespace GFGGame
 {
-    public class ActivityAfuGiftProxy : MonoBehaviour
+    public class ActivityAfuGiftSProxy
     {
         /// <summary>
         /// 登陆游戏初始化

+ 0 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftProxy.cs.meta → GameClient/Assets/Game/HotUpdate/ServerProxy/ActivityAfuGiftSProxy.cs.meta


+ 1 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/CommonSProxy.cs

@@ -61,7 +61,7 @@ namespace GFGGame
                     RoleLimitSProxy.ReqUnitLimitInfos().Coroutine();
                     await ActivitySProxy.ReqSevenDayLoginInfos();
                     await ActivityGlobalSProxy.GetActivityInfo();
-                    await ActivityAfuGiftProxy.GetAfuGiftInfo();
+                    await ActivityAfuGiftSProxy.GetAfuGiftInfo();
                     EventAgent.DispatchEvent(ConstMessage.RESET_DAILY_DATA);
                     PromptController.Instance.ShowFloatTextPrompt("每日次数已重置", MessageType.SUCCESS);
                 }

+ 22 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/RoleInfoSProxy.cs

@@ -18,6 +18,14 @@ namespace GFGGame
                     RoleDataManager.headId = response.HeadItemId;
                     RoleDataManager.headBorderId = response.HeadBorderItemId;
                     RoleDataManager.photoDatas = response.PictureIds;
+
+                    //for(int i = 0; i < response.ItemList.Count; i++)
+                    //{
+                    //    RoleDataManager.badgeDatas.Add(response.ItemList[i]);
+                    //}
+                    //RoleDataManager.mainBgID = response.MyMainBgId;
+                    //RoleDataManager.achievementTaskCollect = (int)response.AchievementTaskCollect;
+
                     return true;
                 }
             }
@@ -166,5 +174,19 @@ namespace GFGGame
             }
             return false;
         }
+
+        public static async ETTask<bool> ReqSaveChangeGearSwitch(int isOn)
+        {
+            S2C_SaveChangeGearSwitch response;
+            response = (S2C_SaveChangeGearSwitch)await MessageHelper.SendToServer(new C2S_SaveChangeGearSwitch() { Switch = isOn });
+            if (response != null)
+            {
+                if (response.Error == ErrorCode.ERR_Success)
+                {
+                    return true;
+                }
+            }
+            return false;
+        }
     }
 }

+ 27 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/SettingSProxy.cs

@@ -0,0 +1,27 @@
+using ET;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace GFGGame
+{
+    public class SettingSProxy
+    {
+        /// <summary>
+        /// 发送兑换码验证请求
+        /// </summary>
+        /// <param name="code"></param>
+        /// <returns></returns>
+        public static async ETTask<bool> ReqGiftCodeInfo(string code)
+        {
+            var response = (S2C_RedeemRewards)await MessageHelper.SendToServer(new C2S_RedeemRewards { ActivationCode = code });
+            if(!(response is { Error: ErrorCode.ERR_Success }))
+            {
+                return false;
+            }
+            // 奖励弹窗
+            BonusController.TryShowBonusList(ItemUtil.CreateItemDataList(response.ItemList));
+            return true;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/ServerProxy/SettingSProxy.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 8053c28a9da457249a46c5358776a7ff
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/ActivityAfuGift/ActivityAfuGiftView.cs

@@ -260,7 +260,7 @@ namespace GFGGame
 
             if (getState.canGet)
             {
-                ActivityAfuGiftProxy.ReqGetReward(getState.isVip, (int)obj.parent.data + 1).Coroutine();
+                ActivityAfuGiftSProxy.ReqGetReward(getState.isVip, (int)obj.parent.data + 1).Coroutine();
             }
             else
             {
@@ -294,7 +294,7 @@ namespace GFGGame
                 }
                 return;
             }
-            ActivityAfuGiftProxy.ReqGetAllReward().Coroutine();
+            ActivityAfuGiftSProxy.ReqGetAllReward().Coroutine();
         }
 
         /// <summary>

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -436,8 +436,9 @@ namespace GFGGame
 
         private void OnClickBtnSave()
         {
-            //SceneController.bgTempRes = ResPathUtil.GetSceneBgPath(ItemCfgArray.Instance.GetCfg(MyDressUpHelper.dressUpObj.bgId).res);
             CustomSuitDataManager.SaveCurrentSuit(_ui.m_comboBox.selectedIndex);
+
+            RoleDataManager.CheckSaveDressUpBgToMainBg(MyDressUpHelper.dressUpObj.bgId);
         }
 
         private void OnComboBoxRarityChanged()

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/BadgeChooseView.cs

@@ -32,7 +32,7 @@ namespace GFGGame
             isfullScreen = true;
             isReturnView = true;
 
-            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("tjbg");
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_hzzs");
             _ui.m_btnback.onClick.Add(Hide);
             _ui.m_list.itemRenderer = OnRenderItem;
 

+ 50 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/InputGiftCodeView.cs

@@ -0,0 +1,50 @@
+using System.Collections;
+using UnityEngine;
+using UI.RoleInfo;
+
+namespace GFGGame
+{
+    public class InputGiftCodeView : BaseWindow
+    {
+        private UI_InputGiftCodeUI _ui;
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_InputGiftCodeUI.PACKAGE_NAME;
+            _ui = UI_InputGiftCodeUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
+
+            _ui.m_btnSure.onClick.Add(OnClickBtnSure);
+
+        }
+
+        private async void OnClickBtnSure()
+        {
+            string code = _ui.m_inputCode.text;
+            if (string.IsNullOrEmpty(code))
+            {
+                PromptController.Instance.ShowFloatTextPrompt("请输入兑换码");
+                return;
+            }
+
+            bool result = await SettingSProxy.ReqGiftCodeInfo(code);
+            if (result)
+            {
+                _ui.m_inputCode.text = "";
+            }
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/InputGiftCodeView.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 65d335ba09a0e7643bf97b35413ca36b
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 32 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseTipsView.cs

@@ -0,0 +1,32 @@
+using System.Collections;
+using UnityEngine;
+using UI.RoleInfo;
+
+namespace GFGGame
+{
+    public class MainBgChooseTipsView : BaseWindow
+    {
+        private UI_MainBgChooseTipsUI _ui;
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_MainBgChooseTipsUI.PACKAGE_NAME;
+            _ui = UI_MainBgChooseTipsUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
+
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseTipsView.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: bf2ccdd13f9cba4468e9db97cd2b9b27
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 100 - 10
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/MainBgChooseView.cs

@@ -4,6 +4,8 @@ using UI.RoleInfo;
 using UI.Main;
 using ET;
 using FairyGUI;
+using System.Threading.Tasks;
+using System.Collections.Generic;
 
 namespace GFGGame
 {
@@ -28,20 +30,27 @@ namespace GFGGame
             this.viewCom = _ui.target;
             isfullScreen = true;
             isReturnView = true;
-            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("tjbg");
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_grsz");
 
             _ui.m_bgList.itemRenderer = BgListItemRenderer;
             _ui.m_bgList.onClickItem.Add(OnClickBgListItem);
             _ui.m_btnBack.onClick.Add(OnClickBtnBack);
-            _ui.m_btnChange.onClick.Add(OnClickBtnChange);
+            _ui.m_btnChange.target.onClick.Add(OnClickBtnChange);
 
-            _ui.m_bgList.numItems = tempRes.Length;
+            _ui.m_bgList.numItems = MainBackgroundCfgArray.Instance.dataArray.Length;
+            _ui.m_btnRule.onClick.Add(OnBtnRuleClick);
+            _ui.m_btnSaveDressUpBg.target.onClick.Add(OnBtnSaveDressUpBgClick);
+            _ui.m_btnGoShop.onClick.Add(OnBtnGoShopClick);
+
+            PicAdaption();
         }
 
         protected override void OnShown()
         {
             base.OnShown();
+            SetDefaultSelectedBg();
             InitMainUIPreview();
+            UpdateSaveDressUpBgToggleState();
         }
 
         protected override void OnHide()
@@ -72,7 +81,7 @@ namespace GFGGame
             mainUI.m_btnCiPai.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
             mainUI.m_btnZhaiXing.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(LuckyBoxView).Name, false);
             mainUI.m_btnMain.m_loaLockIcons.visible = !FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StoryChapterListView).Name, false);
-            
+
             mainUI.m_btnGongGao.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(NoticeView).Name, false);
             mainUI.m_btnYouJian.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(MailView).Name, false);
 
@@ -99,28 +108,28 @@ namespace GFGGame
             Hide();
         }
 
-        // 背景资源名列表,需要从配置表读
-        string[] tempRes = { "zjm_1", "zjm_2", "tc_bjbj" };
         private void BgListItemRenderer(int index, GObject item)
         {
             UI_bgItem bgItem = UI_bgItem.Proxy(item);
-            bgItem.m_bgImg.url = ResPathUtil.GetBgImgPath(tempRes[index]);
+            bgItem.m_bgImg.url = ResPathUtil.GetBgImgPath(MainBackgroundCfgArray.Instance.dataArray[index].res);
+            bgItem.m_name.text = MainBackgroundCfgArray.Instance.dataArray[index].name;
             UI_bgItem.ProxyEnd();
 
-            item.data = tempRes[index];
+            item.data = MainBackgroundCfgArray.Instance.dataArray[index].id;
         }
 
         private void OnClickBgListItem(EventContext context)
         {
             GObject listItem = context.data as GObject;
-            string res = (string)listItem.data;
+            string res = MainBackgroundCfgArray.Instance.GetCfg((int)listItem.data).res;
 
             ChangeBg(res);
         }
 
         private void OnClickBtnChange()
         {
-            SceneController.bgTempRes = (string)_ui.m_bgList.GetChildAt(_ui.m_bgList.selectedIndex).data;
+            PromptController.Instance.ShowFloatTextPrompt("主界面背景已更换");
+            RoleDataManager.mainBgID = (int)_ui.m_bgList.GetChildAt(_ui.m_bgList.selectedIndex).data;
             Hide();
         }
 
@@ -130,5 +139,86 @@ namespace GFGGame
             mainUI.m_loaBg.url = ResPathUtil.GetBgImgPath(res);
             UI_MainUI.ProxyEnd();
         }
+
+        /// <summary>
+        /// 预览图适配
+        /// </summary>
+        /// <returns></returns>
+        private async Task PicAdaption()
+        {
+            await Task.Delay(5);
+            float orginHeight = _ui.m_frame.height;
+            float curHeight = _ui.m_heightAdaptHelper.size.y;
+
+            if (orginHeight != curHeight)
+            {
+                float rate = curHeight * 1.0f / orginHeight;
+
+                _ui.m_frame.scale *= rate;
+                _ui.m_mainUIShow.scale *= rate;
+                // 预览图居中
+                _ui.m_mainUIShow.y = _ui.m_frame.y +
+                    ((_ui.m_frame.height * _ui.m_frame.scale.y) - (_ui.m_mainUIShow.height * _ui.m_mainUIShow.scale.y)) / 2;
+            }
+        }
+
+        private void OnBtnRuleClick()
+        {
+            ViewManager.Show<MainBgChooseTipsView>();
+        }
+
+        private void SetDefaultSelectedBg()
+        {
+            _ui.m_bgList.selectedIndex = 0;
+            string res = MainBackgroundCfgArray.Instance.dataArray[0].res;
+            ChangeBg(res);
+        }
+
+        private void OnBtnSaveDressUpBgClick()
+        {
+            // 小月卡
+            float endTime = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
+            if (endTime > TimeHelper.ServerNow())
+            {
+                if (RoleDataManager.saveDressUpBgToMainBg == 0)
+                {
+                    AlertSystem.Show("特权开启后换装背景将用于主界面,是否前往更换?")
+                        .SetLeftButton(true)
+                        .SetRightButton(true, "确认", (object data) =>
+                        {
+                            RoleInfoSProxy.ReqSaveChangeGearSwitch(1);
+                            ViewManager.Show<DressUpView>(null, true);
+                        });
+                }
+                else
+                {
+                    AlertSystem.Show("特权关闭后仅可使用三个默认背景,是否确认关闭?")
+                    .SetLeftButton(true)
+                    .SetRightButton(true, "确认", (object data) =>
+                    {
+                        RoleInfoSProxy.ReqSaveChangeGearSwitch(0);
+                        RoleDataManager.mainBgID = MainBackgroundCfgArray.Instance.dataArray[0].id;
+                        UpdateSaveDressUpBgToggleState();
+                    });
+                }
+            }
+            else
+            {
+                PromptController.Instance.ShowFloatTextPrompt("该功能尚未开启~");
+            }
+
+        }
+
+        private void OnBtnGoShopClick()
+        {
+            ViewManager.Show<StoreView>(new object[] { ConstStoreTabId.STORE_MONTH_CARD, ConstStoreSubId.STORE_MONTH_GOLD_CARD });
+        }
+
+        private void UpdateSaveDressUpBgToggleState()
+        {
+            UI_ButtonToggle2 buttonToggle2 = UI_ButtonToggle2.Proxy(_ui.m_btnSaveDressUpBg.target);
+            buttonToggle2.m_type.SetSelectedIndex(RoleDataManager.saveDressUpBgToMainBg);
+            UI_ButtonToggle2.ProxyEnd();
+        }
     }
 }

+ 59 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs

@@ -0,0 +1,59 @@
+using System.Collections;
+using UnityEngine;
+using UI.RoleInfo;
+using FairyGUI;
+
+namespace GFGGame
+{
+    public class PhoneBindingView : BaseWindow
+    {
+
+        private UI_PhoneBindingUI _ui;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_PhoneBindingUI.PACKAGE_NAME;
+            _ui = UI_PhoneBindingUI.Create();
+            this.viewCom = _ui.target;
+            this.viewCom.Center();
+            this.modal = true;
+            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER;
+
+            _ui.m_btnSure.target.onClick.Add(OnBtnSureClick);
+            _ui.m_icon.url = ResPathUtil.GetIconPath(ItemCfgArray.Instance.GetCfg(ConstItemID.DIAMOND_RED));
+            _ui.m_btnGetCode.onClick.Add(OnBtnGetCode);
+            _ui.m_btnClose.onClick.Add(Hide);
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        private void OnBtnSureClick()
+        {
+            Hide();
+        }
+
+        private void OnBtnGetCode()
+        {
+
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/PhoneBindingView.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: 336ff7ff1b1352f44a70fa475e6c4333
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs

@@ -93,7 +93,8 @@ namespace GFGGame
 
         private void OnBtnBackClick()
         {
-            ViewManager.GoBackFrom(typeof(RoleInfoView).FullName);
+            _ui.m_photoList.scrollPane.percX = 0;
+            Hide();
         }
 
         protected override void RemoveEventListener()
@@ -272,7 +273,7 @@ namespace GFGGame
 
             // 成就
             button2 = UI_Button2.Proxy(_ui.m_btnTaskArchieveGuide.target);
-            progress = RoleInfoManager.Instance.GetTaskAchieveProgress();
+            progress = RoleDataManager.achievementTaskCollect;
             button2.m_rate.text = progress.ToString();
             button2.m_progressBar.fillAmount = progress / 100;
 

+ 24 - 7
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/SettingView.cs

@@ -35,14 +35,14 @@ namespace GFGGame
             this.viewCom = _ui.target;
             isfullScreen = true;
             isReturnView = true;
-            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("tjbg");
+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_hzzs");
 
-            _ui.m_btnExit.onClick.Add(OnClickBtnExit);
+            _ui.m_btnExit.onClick.Add(OnClickBtnBack);
             _ui.m_btnLogout.target.onClick.Add(OnClickBtnLogout);
             _ui.m_btnSound.onClick.Add(OnClickBtnSound);
             _ui.m_btnMusic.onClick.Add(OnClickBtnMusic);
             _ui.m_btnVoice.onClick.Add(OnClickBtnVoice);
-            _ui.m_btnChooseMainBg.onClick.Add(OnClickBtnChangeMainBg);
+            _ui.m_btnExchange.onClick.Add(OnClickBtnChangeMainBg);
 
             _ui.m_voiceSlider.target.onChanged.Add(OnChangeVoiceVolumn);
             _ui.m_musicSlider.target.onChanged.Add(OnChangeMusicVolumn);
@@ -51,7 +51,9 @@ namespace GFGGame
             _ui.m_btnGiftCode.target.onClick.Add(OnClickGiftCode);
             _ui.m_settingTypeList.itemRenderer = RenderListType;
             _ui.m_settingTypeList.numItems = _ui.m_settingTypeList.numItems;
-
+            _ui.m_gameProtectAgree.onClick.Add(OnGameProtectAgreeClick);
+            _ui.m_privacyAgree.onClick.Add(OnPrivacyAgreeClick);
+            _ui.m_childrenAgree.onClick.Add(OnChildrenAgreeClick);
         }
 
         protected override void OnShown()
@@ -65,8 +67,9 @@ namespace GFGGame
             base.OnHide();
         }
 
-        private void OnClickBtnExit()
+        private void OnClickBtnBack()
         {
+            _ui.m_c1.SetSelectedIndex(0);
             Hide();
             //AlertSystem.Show("确认返回登录页吗?")
             //    .SetLeftButton(true)
@@ -178,12 +181,12 @@ namespace GFGGame
 
         private void OnClickPhoneBinding()
         {
-
+            ViewManager.Show<PhoneBindingView>(); 
         }
 
         private void OnClickGiftCode()
         {
-
+            ViewManager.Show<InputGiftCodeView>();
         }
 
         /// <summary>
@@ -198,5 +201,19 @@ namespace GFGGame
             UI_Button6.ProxyEnd();
         }
 
+        private void OnGameProtectAgreeClick()
+        {
+            FullScreenTextController.Show("event:a");
+        }
+
+        private void OnPrivacyAgreeClick()
+        {
+            FullScreenTextController.Show("event:b");
+        }
+
+        private void OnChildrenAgreeClick()
+        {
+            FullScreenTextController.Show("event:c");
+        }
     }
 }

BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_1!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_1.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_2!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_2.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_3!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_3.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_4!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_4.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5!a.png


+ 96 - 0
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5!a.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 72da739c8d375884a9b87eaf5a41b9a4
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5.png


+ 96 - 0
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_5.png.meta

@@ -0,0 +1,96 @@
+fileFormatVersion: 2
+guid: 92afd166cccaba948b8650754bcedd20
+TextureImporter:
+  internalIDToNameTable: []
+  externalObjects: {}
+  serializedVersion: 11
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 0
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  vTOnly: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: 1
+    aniso: 1
+    mipBias: 0
+    wrapU: 1
+    wrapV: 1
+    wrapW: 1
+  nPOTScale: 0
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 1
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 1
+  spriteTessellationDetail: -1
+  textureType: 8
+  textureShape: 1
+  singleChannelComponent: 0
+  flipbookRows: 1
+  flipbookColumns: 1
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  ignorePngGamma: 0
+  applyGammaDecoding: 0
+  platformSettings:
+  - serializedVersion: 3
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+    forceMaximumCompressionQuality_BC6H_BC7: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 5e97eb03825dee720800000000000000
+    internalID: 0
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+    secondaryTextures: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_6!a.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_atlas0_6.png


BIN
GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes