Browse Source

卡牌稀有度显示

zhaoyang 2 years ago
parent
commit
a2d5c7f4af

+ 1 - 1
FGUIProject/assets/Card/components/ComFosterBottom.xml

@@ -7,7 +7,7 @@
   <displayList>
     <image id="n70_lc71" name="n70" src="qkjsbm" fileName="imagesNew/dikuang_back.png" xy="0,-212" size="1080,1039" group="n115_o9gh"/>
     <image id="n97_qkjs" name="n97" src="qkjsbb" fileName="imagesNew/card_DividingLine.png" xy="38,426" size="972,8" group="n115_o9gh"/>
-    <loader id="n101_qkjs" name="loaScore" xy="55,143" size="44,94" group="n115_o9gh" url="ui://eg2y0ldpo9ghtll" autoSize="true"/>
+    <loader id="n101_qkjs" name="loaRarity" xy="55,143" size="44,94" group="n115_o9gh" url="ui://eg2y0ldpo9ghtll" autoSize="true"/>
     <text id="n27_842s" name="txtName0" xy="143,129" pivot="0.5,0" anchor="true" size="74,91" group="n106_qkjs" font="ui://eg2y0ldpa0cftks" fontSize="70" color="#915e15" autoClearText="true" text="斗"/>
     <text id="n102_qkjs" name="txtName1" xy="199,156" pivot="0.5,0" anchor="true" size="10,62" group="n106_qkjs" font="ui://eg2y0ldpa0cftks" fontSize="46" color="#915e15" autoClearText="true" text=""/>
     <text id="n103_qkjs" name="txtName2" xy="195,210" pivot="0.5,0" anchor="true" size="44,54" group="n106_qkjs" font="ui://eg2y0ldpa0cftks" fontSize="40" color="#915e15" autoClearText="true" text="婵"/>

+ 3 - 3
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_ComFosterBottom.cs

@@ -11,7 +11,7 @@ namespace UI.Card
         public Controller m_ctrlFullLv;
         public Controller m_ctrlTab;
         public Controller m_ctrlSkillCount;
-        public GLoader m_loaScore;
+        public GLoader m_loaRarity;
         public GTextField m_txtName0;
         public GTextField m_txtName1;
         public GTextField m_txtName2;
@@ -97,7 +97,7 @@ namespace UI.Card
             m_ctrlFullLv = comp.GetController("ctrlFullLv");
             m_ctrlTab = comp.GetController("ctrlTab");
             m_ctrlSkillCount = comp.GetController("ctrlSkillCount");
-            m_loaScore = (GLoader)comp.GetChild("loaScore");
+            m_loaRarity = (GLoader)comp.GetChild("loaRarity");
             m_txtName0 = (GTextField)comp.GetChild("txtName0");
             m_txtName1 = (GTextField)comp.GetChild("txtName1");
             m_txtName2 = (GTextField)comp.GetChild("txtName2");
@@ -139,7 +139,7 @@ namespace UI.Card
             m_ctrlFullLv = null;
             m_ctrlTab = null;
             m_ctrlSkillCount = null;
-            m_loaScore = null;
+            m_loaRarity = null;
             m_txtName0 = null;
             m_txtName1 = null;
             m_txtName2 = null;

+ 6 - 2
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -169,12 +169,16 @@ namespace GFGGame
         private void UpdateNormal()
         {
             _ui.m_ComFosterTop.m_btnStory.visible = CardDataManager.GetStoryCfgsById(_cardData.id).Count > 0 ? true : false;
-            // _comFosterBottom.m_btnUpLv.grayed = true;
-            // _comFosterBottom.m_btnUpLv.GetChild("ani").asMovieClip.visible = false;
             _valueBarController = new ValueBarController(_ui.m_ComFosterTop.m_comValueBar, 5);
             _valueBarController.OnShown();
+            RarityIconController.UpdateRarityIcon(_ui.m_ComFosterBottom.m_loaRarity, _cardData.id, false);
 
             string names = _cardData.itemCfg.name;
+            _comFosterBottom.m_txtName0.text = "";
+            _comFosterBottom.m_txtName1.text = "";
+            _comFosterBottom.m_txtName2.text = "";
+            _comFosterBottom.m_txtName3.text = "";
+            _comFosterBottom.m_txtName4.text = "";
             switch (names.Length)
             {
                 case 1:

BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes