Browse Source

细节优化

zhaoyang 3 years ago
parent
commit
448af5b080

+ 1 - 1
FGUIProject/assets/Main/MainUI.xml

@@ -33,7 +33,7 @@
       <relation target="" sidePair="bottom-bottom"/>
       <relation target="" sidePair="bottom-bottom"/>
       <Button icon="ui://mfvz4q8kkqhddo"/>
       <Button icon="ui://mfvz4q8kkqhddo"/>
     </component>
     </component>
-    <component id="n45_kqhd" name="btnSurvey" src="q08xu" fileName="components/ButtonModle1.xml" xy="561,1455">
+    <component id="n45_kqhd" name="btnSurvey" src="q08xu" fileName="components/ButtonModle1.xml" xy="561,1455" visible="false">
       <relation target="" sidePair="bottom-bottom"/>
       <relation target="" sidePair="bottom-bottom"/>
       <Button icon="ui://mfvz4q8kkqhddn"/>
       <Button icon="ui://mfvz4q8kkqhddn"/>
     </component>
     </component>

+ 0 - 2
GameClient/Assets/Game/HotUpdate/GameGlobal.cs

@@ -63,9 +63,7 @@ namespace GFGGame
         }
         }
         private static void SetClickPos()
         private static void SetClickPos()
         {
         {
-            // Vector2 pos = Stage.inst.touchPosition;
             Vector2 pos = GRoot.inst.GlobalToLocal(Stage.inst.touchPosition);
             Vector2 pos = GRoot.inst.GlobalToLocal(Stage.inst.touchPosition);
-            Debug.Log("pos:" + pos);
             comHolder.m_holder.visible = false;
             comHolder.m_holder.visible = false;
             comHolder.m_holder.visible = true;
             comHolder.m_holder.visible = true;
             comHolder.target.SetPosition(pos.x, pos.y, 0);
             comHolder.target.SetPosition(pos.x, pos.y, 0);

+ 3 - 3
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpFightView.cs

@@ -827,12 +827,12 @@ namespace GFGGame
                 }
                 }
             }
             }
 
 
-            if (listTypeItem_SingleFight != null) GuideController.TryGuide(listTypeItem_SingleFight.target, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰");
-            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "找到这条裙子了,换上看看吧");
+            if (listTypeItem_SingleFight != null) GuideController.TryGuide(listTypeItem_SingleFight.target, ConstGuideId.SINGLE_FIGHT, 3, "点击相应的分类,可以快速找到服饰", -1, true, (int)listTypeItem_SingleFight.target.y);
+            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.SINGLE_FIGHT, 4, "找到这条裙子了,换上看看吧", -1, true, (int)_ui.m_partsList.m_list.y);
             GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 5, "接下来验证一下,换上的服饰是否符合需求");
             GuideController.TryGuide(_ui.m_btnNext, ConstGuideId.SINGLE_FIGHT, 5, "接下来验证一下,换上的服饰是否符合需求");
 
 
             GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 1, "当提示有“必需品”时,需要穿上对应物品才能通关", -1, true, 170);
             GuideController.TryGuide(_ui.m_compNeed.target, ConstGuideId.BUY_CLOTHING, 1, "当提示有“必需品”时,需要穿上对应物品才能通关", -1, true, 170);
-            if (listTypeItem_BuyClothing != null) GuideController.TryGuide(listTypeItem_BuyClothing.target, ConstGuideId.BUY_CLOTHING, 5, "在相应分类里就可以找到必需品啦", -1, true, 170);
+            if (listTypeItem_BuyClothing != null) GuideController.TryGuide(listTypeItem_BuyClothing.target, ConstGuideId.BUY_CLOTHING, 5, "在相应分类里就可以找到必需品啦", -1, true, (int)listTypeItem_BuyClothing.target.y);
             GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 6, "点击换上吧", 0, true, 170);
             GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.BUY_CLOTHING, 6, "点击换上吧", 0, true, 170);
             GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 6);
             GuideController.TryCompleteGuide(ConstGuideId.BUY_CLOTHING, 6);
 
 

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

@@ -715,7 +715,7 @@ namespace GFGGame
                 }
                 }
             }
             }
             if (listTypeItem_FreedomDress != null) GuideController.TryGuide(listTypeItem_FreedomDress.target, ConstGuideId.FREEDOM_DRESS, 3, "套装分类里,可以查看集齐成套的服饰");
             if (listTypeItem_FreedomDress != null) GuideController.TryGuide(listTypeItem_FreedomDress.target, ConstGuideId.FREEDOM_DRESS, 3, "套装分类里,可以查看集齐成套的服饰");
-            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.FREEDOM_DRESS, 4, "点击一键换上", 0);
+            GuideController.TryGuide(_ui.m_partsList.m_list, ConstGuideId.FREEDOM_DRESS, 4, "点击一键换上", 0, true, (int)_ui.m_partsList.m_list.y);
             GuideController.TryGuide(_ui.m_btnSave, ConstGuideId.FREEDOM_DRESS, 5, "搭配好的服饰,可以保存随时查看");
             GuideController.TryGuide(_ui.m_btnSave, ConstGuideId.FREEDOM_DRESS, 5, "搭配好的服饰,可以保存随时查看");
             GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.FREEDOM_DRESS, 6, "保存成功,回主界面看看吧");
             GuideController.TryGuide(_ui.m_btnHome, ConstGuideId.FREEDOM_DRESS, 6, "保存成功,回主界面看看吧");
             GuideController.TryCompleteGuide(ConstGuideId.FREEDOM_DRESS, 6);
             GuideController.TryCompleteGuide(ConstGuideId.FREEDOM_DRESS, 6);

+ 14 - 7
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -116,6 +116,7 @@ namespace GFGGame
             _btnYouJian.onClick.Add(OnClickBtnYouJian);
             _btnYouJian.onClick.Add(OnClickBtnYouJian);
 
 
 
 
+            AddEffect();
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
             EventAgent.AddEventListener(ConstMessage.NUMERIC_CHANGE, OnNumericChange);
 
 
         }
         }
@@ -132,8 +133,8 @@ namespace GFGGame
             SceneController.UpdateMainScene(_sceneObject);
             SceneController.UpdateMainScene(_sceneObject);
             UpdateRoleLvl();
             UpdateRoleLvl();
             _valueBarController.OnShown();
             _valueBarController.OnShown();
-            AddEffect();
 
 
+            CheckFunOpen();
             // UpdateToCheckGuide();
             // UpdateToCheckGuide();
             Timers.inst.AddUpdate(Update);
             Timers.inst.AddUpdate(Update);
         }
         }
@@ -149,6 +150,7 @@ namespace GFGGame
             _valueBarController.OnHide();
             _valueBarController.OnHide();
             Timers.inst.Remove(Update);
             Timers.inst.Remove(Update);
         }
         }
+
         private void AddEffect()
         private void AddEffect()
         {
         {
             string resPath0 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_xf_tx");
             string resPath0 = ResPathUtil.GetViewEffectPath("ui_zjm", "ui_xf_tx");
@@ -247,10 +249,6 @@ namespace GFGGame
                 isOpen = false;
                 isOpen = false;
 
 
             });
             });
-            // List<string> list = new List<string>();
-            // list.Add("GFGGame.ClothingShopView");
-            // list.Add("GFGGame.LuckyBoxView");
-            // ViewManager.Show<FunctionOpenView>(list);
         }
         }
 
 
         private void OnClickBtnStudio()
         private void OnClickBtnStudio()
@@ -276,9 +274,14 @@ namespace GFGGame
             ViewManager.Show(ViewName.ROLE_INFO_VIEW);
             ViewManager.Show(ViewName.ROLE_INFO_VIEW);
         }
         }
 
 
-        private void UpdateRoleLvl()
+        private void CheckFunOpen()
         {
         {
-            _ui.m_headBar.m_txtLvl.text = "" + GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
+            _ui.m_btnXiuFang.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(XiuFangView).Name, false);
+            _ui.m_btnMain.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StoryChapterListView).Name, false);
+            _ui.m_btnStudio.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(StudioView).Name, false);
+            _ui.m_btnHuanZhuang.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(DressUpView).Name, false);
+            _ui.m_btnZhaiXing.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(LuckyBoxView).Name, false);
+            _ui.m_btnCiPai.target.visible = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(CardDetailView).Name, false);
         }
         }
 
 
         private void Update(object param)
         private void Update(object param)
@@ -300,6 +303,10 @@ namespace GFGGame
                 UpdateRoleLvl();
                 UpdateRoleLvl();
             }
             }
         }
         }
+        private void UpdateRoleLvl()
+        {
+            _ui.m_headBar.m_txtLvl.text = "" + GameGlobal.myNumericComponent.GetAsInt(NumericType.Lvl);
+        }
 
 
 
 
         protected override void UpdateToCheckGuide(object param)
         protected override void UpdateToCheckGuide(object param)

BIN
GameClient/Assets/ResIn/UI/Main/Main_fui.bytes