leiyasi 1 жил өмнө
parent
commit
ad3921dda5
18 өөрчлөгдсөн 636 нэмэгдсэн , 29 устгасан
  1. 8 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao.meta
  2. 79 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_ActivityHuaRongDaoUI.cs
  3. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_ActivityHuaRongDaoUI.cs.meta
  4. 74 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_item.cs
  5. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_item.cs.meta
  6. 71 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_items.cs
  7. 11 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_items.cs.meta
  8. 3 0
      GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/RoleInfo/UI_RoleInfoUI.cs
  9. 8 0
      GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao.meta
  10. 305 0
      GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao/ActivityHuaRongDaoView.cs
  11. 11 0
      GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao/ActivityHuaRongDaoView.cs.meta
  12. 13 28
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/ChangeNameView.cs
  13. 9 1
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/OtherRoleInfoView.cs
  14. 7 0
      GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs
  15. 8 0
      GameClient/Assets/ResIn/UI/ActivityHuaRongDao.meta
  16. BIN
      GameClient/Assets/ResIn/UI/ActivityHuaRongDao/ActivityHuaRongDao_fui.bytes
  17. 7 0
      GameClient/Assets/ResIn/UI/ActivityHuaRongDao/ActivityHuaRongDao_fui.bytes.meta
  18. BIN
      GameClient/Assets/ResIn/UI/RoleInfo/RoleInfo_fui.bytes

+ 8 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: cf65c6d4cc20f354b828d4c306cd898f
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 79 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_ActivityHuaRongDaoUI.cs

@@ -0,0 +1,79 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.ActivityHuaRongDao
+{
+    public partial class UI_ActivityHuaRongDaoUI
+    {
+        public GComponent target;
+        public GButton m_btnClose;
+        public UI_item m_item;
+        public UI_items m_items;
+        public const string URL = "ui://wf8geywtnx120";
+        public const string PACKAGE_NAME = "ActivityHuaRongDao";
+        public const string RES_NAME = "ActivityHuaRongDaoUI";
+        private static UI_ActivityHuaRongDaoUI _proxy;
+
+        public static UI_ActivityHuaRongDaoUI Create(GObject gObject = null)
+        {
+            var ui = new UI_ActivityHuaRongDaoUI();
+            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_ActivityHuaRongDaoUI Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_ActivityHuaRongDaoUI();
+            }
+            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_btnClose = (GButton)comp.GetChild("btnClose");
+            m_item = (UI_item)UI_item.Create(comp.GetChild("item"));
+            m_items = (UI_items)UI_items.Create(comp.GetChild("items"));
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_btnClose = null;
+            m_item.Dispose();
+            m_item = null;
+            m_items.Dispose();
+            m_items = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_ActivityHuaRongDaoUI.cs.meta

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

+ 74 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_item.cs

@@ -0,0 +1,74 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.ActivityHuaRongDao
+{
+    public partial class UI_item
+    {
+        public GComponent target;
+        public GGraph m_item;
+        public GTextField m_index;
+        public const string URL = "ui://wf8geywtnx121";
+        public const string PACKAGE_NAME = "ActivityHuaRongDao";
+        public const string RES_NAME = "item";
+        private static UI_item _proxy;
+
+        public static UI_item Create(GObject gObject = null)
+        {
+            var ui = new UI_item();
+            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_item Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_item();
+            }
+            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_item = (GGraph)comp.GetChild("item");
+            m_index = (GTextField)comp.GetChild("index");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_item = null;
+            m_index = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_item.cs.meta

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

+ 71 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_items.cs

@@ -0,0 +1,71 @@
+/** This is an automatically generated class by FairyGUI. Please do not modify it. **/
+
+using FairyGUI;
+
+namespace UI.ActivityHuaRongDao
+{
+    public partial class UI_items
+    {
+        public GComponent target;
+        public GGraph m_items;
+        public const string URL = "ui://wf8geywth8uk3";
+        public const string PACKAGE_NAME = "ActivityHuaRongDao";
+        public const string RES_NAME = "items";
+        private static UI_items _proxy;
+
+        public static UI_items Create(GObject gObject = null)
+        {
+            var ui = new UI_items();
+            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_items Proxy(GObject gObject = null)
+        {
+            if(_proxy == null)
+            {
+                _proxy = new UI_items();
+            }
+            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_items = (GGraph)comp.GetChild("items");
+        }
+        public void Dispose(bool disposeTarget = false)
+        {
+            m_items = null;
+            if(disposeTarget && target != null)
+            {
+                target.RemoveFromParent();
+                target.Dispose();
+            }
+            target = null;
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ActivityHuaRongDao/UI_items.cs.meta

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

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

@@ -31,6 +31,7 @@ namespace UI.RoleInfo
         public GTextField m_txtRoleID;
         public GButton m_btnCopy;
         public GButton m_btnSetting;
+        public GButton m_btnHuaRongDao;
         public const string URL = "ui://374k3dwvd4iw6k";
         public const string PACKAGE_NAME = "RoleInfo";
         public const string RES_NAME = "RoleInfoUI";
@@ -102,6 +103,7 @@ namespace UI.RoleInfo
             m_txtRoleID = (GTextField)comp.GetChild("txtRoleID");
             m_btnCopy = (GButton)comp.GetChild("btnCopy");
             m_btnSetting = (GButton)comp.GetChild("btnSetting");
+            m_btnHuaRongDao = (GButton)comp.GetChild("btnHuaRongDao");
         }
         public void Dispose(bool disposeTarget = false)
         {
@@ -132,6 +134,7 @@ namespace UI.RoleInfo
             m_txtRoleID = null;
             m_btnCopy = null;
             m_btnSetting = null;
+            m_btnHuaRongDao = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 8 - 0
GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: adc9dc8d435a6504890e285c2ffe5d63
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 305 - 0
GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao/ActivityHuaRongDaoView.cs

@@ -0,0 +1,305 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UI.ActivityHuaRongDao;
+using FairyGUI;
+
+namespace GFGGame
+{
+    public class ActivityHuaRongDaoView : BaseWindow
+    {
+        private UI_ActivityHuaRongDaoUI _ui;
+        public class Grid
+        {
+            public Vector2 pos;
+            public int num;
+        }
+
+        private Grid[,] gridArr;
+        private int gridNum = 3;
+        private List<GObject> items;
+        private bool firstInit;
+
+        public override void Dispose()
+        {
+            if (_ui != null)
+            {
+                _ui.Dispose();
+                _ui = null;
+            }
+            base.Dispose();
+
+        }
+
+        protected override void OnInit()
+        {
+            base.OnInit();
+            packageName = UI_ActivityHuaRongDaoUI.PACKAGE_NAME;
+            _ui = UI_ActivityHuaRongDaoUI.Create();
+            viewCom = _ui.target;
+            viewCom.Center();
+            modal = true;
+
+            _ui.m_item.target.visible = false;
+            _ui.m_btnClose.onClick.Add(Hide);
+
+            firstInit = true;
+
+            InitGridInfo();
+            CreateItems();
+            InitItems();
+
+        }
+
+        protected override void OnShown()
+        {
+            base.OnShown();
+
+            if (!firstInit)
+            {
+                SetGridInfo();
+                InitItems();
+            }
+            else
+            {
+                firstInit = false;
+            }
+        }
+
+        protected override void OnHide()
+        {
+            base.OnHide();
+        }
+
+        /// <summary>
+        /// 初始化所有格子的信息
+        /// </summary>
+        private void InitGridInfo()
+        {
+            gridArr = new Grid[gridNum, gridNum];
+            items = new List<GObject>();
+
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    gridArr[i, j] = new Grid();
+                }
+            }
+
+            SetGridInfo();
+        }
+
+        private void SetGridInfo()
+        {
+            List<int> numList = GetRandomArr(1, 8);
+            //List<int> numList = new List<int>() { 1, 2, 3, 4, 5, 6, 7, 0, 8 };
+            Vector2 originPos = _ui.m_item.target.position;
+
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    gridArr[i, j].num = numList[i * gridNum + j];
+                    gridArr[i, j].pos = originPos + new Vector2(j * _ui.m_item.target.width, i * _ui.m_item.target.height);
+                }
+            }
+        }
+
+        /// <summary>
+        /// 随机排序 min~max 连续的数字
+        /// </summary>
+        /// <param name="min"></param>
+        /// <param name="max"></param>
+        /// <returns></returns>
+        private List<int> GetRandomArr(int min, int max)
+        {
+            List<int> list = new List<int>();
+            for (int i = min; i <= max; i++)
+            {
+                list.Add(i);
+            }
+
+            System.Random r = new System.Random();
+            for (int i = 0; i < list.Count; i++)
+            {
+                int index = r.Next(list.Count);
+                int temp = list[index];
+                list[index] = list[i];
+                list[i] = temp;
+            }
+
+            // 最后一个是空的
+            list.Add(0);
+
+            return list;
+        }
+
+        private void InitItems()
+        {
+            int itemIndex = 0;
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    // 空格不用放item
+                    if (gridArr[i, j].num == 0)
+                    {
+                        continue;
+                    }
+
+                    items[itemIndex].position = gridArr[i, j].pos;
+                    UI_item item = UI_item.Proxy(items[itemIndex]);
+                    item.m_index.text = gridArr[i, j].num.ToString();
+                    items[itemIndex].data = gridArr[i, j].num;
+                    UI_item.ProxyEnd();
+                    ++itemIndex;
+                }
+            }
+        }
+
+        /// <summary>
+        /// 创建可移动的实体
+        /// </summary>
+        private void CreateItems()
+        {
+            for (int i = 1; i <= gridNum * gridNum - 1; i++)
+            {
+                GObject gObject = UIPackage.CreateObject("ActivityHuaRongDao", "item");
+                gObject.name = "item" + i;
+                gObject.onClick.Add(OnItemClick);
+                _ui.m_items.target.AddChild(gObject);
+                items.Add(gObject);
+            }
+        }
+
+        private void OnItemClick(EventContext eventContext)
+        {
+            GObject obj = eventContext.sender as GObject;
+            int num = (int)obj.data;
+            Grid newGrid = CheckCanMove(num);
+            if (newGrid != null)
+            {
+                _ui.m_items.target.touchable = false;
+                obj.TweenMove(newGrid.pos, 0.3f).OnComplete(()=>
+                {
+                    _ui.m_items.target.touchable = true;
+                    CheckWin();
+                });
+            }
+        }
+
+        private Grid CheckCanMove(int num)
+        {
+            int indexX = 0;
+            int indexY = 0;
+
+            // 找到格子
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    if (gridArr[i, j].num == num)
+                    {
+                        indexX = i;
+                        indexY = j;
+                        break;
+                    }
+                }
+            }
+
+            // 判断格子四个方向是否有空格
+            if (CheckHaveNullGrid(indexX - 1, indexY) || CheckHaveNullGrid(indexX, indexY - 1)
+                || CheckHaveNullGrid(indexX + 1, indexY) || CheckHaveNullGrid(indexX, indexY + 1))
+            {
+                return UpdateGridInfo(num);
+            }
+
+            return null;
+        }
+
+        private bool CheckHaveNullGrid(int indexX, int indexY)
+        {
+            if (indexX >= 0 && indexX < gridNum)
+            {
+                if (indexY >= 0 && indexY < gridNum)
+                {
+                    return gridArr[indexX, indexY].num == 0;
+                }
+            }
+
+            return false;
+        }
+
+        private Grid UpdateGridInfo(int num)
+        {
+            Vector2 nullGridindex = new Vector2(-1, 0);
+            Vector2 numGridindex = new Vector2(-1, 0);
+
+
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    if (gridArr[i, j].num == num)
+                    {
+                        numGridindex = new Vector2(i, j);
+                    }
+                    else if (gridArr[i, j].num == 0)
+                    {
+                        nullGridindex = new Vector2(i, j);
+                    }
+                    if (numGridindex.x != -1 && nullGridindex.x != -1)
+                    {
+                        break;
+                    }
+                }
+            }
+
+            gridArr[(int)numGridindex.x, (int)numGridindex.y].num = 0;
+            gridArr[(int)nullGridindex.x, (int)nullGridindex.y].num = num;
+
+            return gridArr[(int)nullGridindex.x, (int)nullGridindex.y];
+        }
+
+        private void CheckWin()
+        {
+            int num = 0;
+            for (int i = 0; i < gridNum; i++)
+            {
+                for (int j = 0; j < gridNum; j++)
+                {
+                    if (i == 0 && j == 0)
+                    {
+                        num = gridArr[i, j].num;
+                        if(num != 1)
+                        {
+                            return;
+                        }
+                    }
+                    else
+                    {
+                        // 不连续 没有胜利
+                        if (gridArr[i, j].num != num + 1)
+                        {
+                            return;
+                        }
+                        // 继续检测
+                        else
+                        {
+                            ++num;
+                            // 胜利
+                            if (num == gridNum * gridNum - 1)
+                            {
+                                Debug.Log("You Win!!");
+                            }
+                        }
+                    }
+
+                }
+            }
+
+
+        }
+    }
+}

+ 11 - 0
GameClient/Assets/Game/HotUpdate/Views/ActivityHuaRongDao/ActivityHuaRongDaoView.cs.meta

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

+ 13 - 28
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/ChangeNameView.cs

@@ -12,7 +12,6 @@ namespace GFGGame
         private UI_ChangeNameUI _ui;
         private EffectUI _effectUI1;
         private EffectUI _effectUI2;
-        private bool _isNewPlayer;
 
         public override void Dispose()
         {
@@ -51,27 +50,20 @@ namespace GFGGame
             base.OnShown();
             this._ui.m_inputName.text = "";
 
-            _isNewPlayer = GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl) == 1;
-            _ui.m_c1.SetSelectedIndex(_isNewPlayer ? 0 : 1);
-
             long haveNum = ItemDataManager.GetItemNum(GlobalCfgArray.globalCfg.changeNameCostArr[0]);
             long needNum = GlobalCfgArray.globalCfg.changeNameCostArr[1];
-            if (!_isNewPlayer)
+            if (haveNum < needNum)
             {
-                if (haveNum < needNum)
-                {
-                    _ui.m_txtNeed.text = string.Format("改名卡:[color=#E26A21]{0}[color]/{1}", haveNum, needNum);
-                }
-                else
-                {
-                    _ui.m_txtNeed.text = string.Format("改名卡:{0}/{1}", haveNum, needNum);
-                }
-                ItemCfg cfg = ItemCfgArray.Instance.GetCfg(GlobalCfgArray.globalCfg.changeNameCostArr[0]);
-                //_ui.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(cfg.res);
-                _ui.m_loaIcon.url = ResPathUtil.GetIconPath(cfg.res, "png");
-                _ui.m_loaIcon.onClick.Add(OnBtnIconClick);
-
+                _ui.m_txtNeed.text = string.Format("改名卡:[color=#E26A21]{0}[color]/{1}", haveNum, needNum);
+            }
+            else
+            {
+                _ui.m_txtNeed.text = string.Format("改名卡:{0}/{1}", haveNum, needNum);
             }
+            ItemCfg cfg = ItemCfgArray.Instance.GetCfg(GlobalCfgArray.globalCfg.changeNameCostArr[0]);
+            //_ui.m_loaIcon.url = ResPathUtil.GetCommonGameResPath(cfg.res);
+            _ui.m_loaIcon.url = ResPathUtil.GetIconPath(cfg.res, "png");
+            _ui.m_loaIcon.onClick.Add(OnBtnIconClick);
         }
 
         protected override void OnHide()
@@ -110,18 +102,11 @@ namespace GFGGame
             string costName = ItemUtil.GetItemName(GlobalCfgArray.globalCfg.changeNameCostArr[0]);
             int count = GlobalCfgArray.globalCfg.changeNameCostArr[1];
 
-            if (_isNewPlayer)
+            AlertUI.Show(string.Format("是否花费{0}个{1}改名1次?", count, costName))
+            .SetLeftButton(true).SetRightButton(true, "确定", (object data) =>
             {
                 ChangeName(roleName);
-            }
-            else
-            {
-                AlertUI.Show(string.Format("是否花费{0}个{1}改名1次?", count, costName))
-                .SetLeftButton(true).SetRightButton(true, "确定", (object data) =>
-                {
-                    ChangeName(roleName);
-                });
-            }
+            });
 
         }
 

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

@@ -91,7 +91,15 @@ namespace GFGGame
                 _ui.m_txtExp.text = "已满级";
             }
 
-            _ui.m_txtSloganLabel.text = _roleDetailInfo.slogan;
+            if (_roleDetailInfo.slogan.Length > 0)
+            {
+                _ui.m_txtSloganLabel.text = _roleDetailInfo.slogan;
+            }
+            else
+            {
+                _ui.m_txtSloganLabel.text = "暂未设置个人简介";
+            }
+
             _ui.m_photoList.numItems = _roleDetailInfo.showPhotoList.Count;
         }
 

+ 7 - 0
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/RoleInfoView.cs

@@ -50,6 +50,8 @@ namespace GFGGame
             _ui.m_photoList.itemRenderer = RenderPhotoListItem;
             _ui.m_photoList.onClickItem.Add(OnPhotoListItemClick);
             _ui.m_badgeList.itemRenderer = OnRenderBadgeListItem;
+
+            _ui.m_btnHuaRongDao.onClick.Add(OnBtnHuaRongDaoClick);
         }
 
         protected override void AddEventListener()
@@ -307,5 +309,10 @@ namespace GFGGame
             _ui.m_badgeList.numItems = _ui.m_badgeList.numItems;
 
         }
+
+        private void OnBtnHuaRongDaoClick()
+        {
+            ViewManager.Show<ActivityHuaRongDaoView>();
+        }
     }
 }

+ 8 - 0
GameClient/Assets/ResIn/UI/ActivityHuaRongDao.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 2ffcfc466eab7fd49aea5d47751304bf
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
GameClient/Assets/ResIn/UI/ActivityHuaRongDao/ActivityHuaRongDao_fui.bytes


+ 7 - 0
GameClient/Assets/ResIn/UI/ActivityHuaRongDao/ActivityHuaRongDao_fui.bytes.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 546fcaa87c1bc98428139336dfa79e33
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

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