Browse Source

等级文字

zhaoyang 3 years ago
parent
commit
4daab0736a

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

@@ -5,7 +5,7 @@
     <image id="n20_pq5x" name="n20" src="pq5x60" fileName="images/kp_dikuang_1.png" xy="2,342"/>
     <loader id="n23_94m1" name="loaBorder" xy="-2,-2" size="242,441" url="ui://7l6lvkay94m19w" autoSize="true"/>
     <loader id="n19_pq5x" name="loaRarity" xy="178,14" size="44,94" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
-    <text id="n8_ojlz" name="txtLv" xy="185,370" size="39,59" fontSize="24" color="#fff9f1" leading="-5" text="Lv.&#xA;30"/>
+    <text id="n8_ojlz" name="txtLv" xy="170,387" size="58,34" fontSize="24" color="#fff9f1" align="right" leading="-5" text="30级"/>
     <text id="n9_ojlz" name="txtName" xy="63,432" size="112,49" fontSize="36" color="#6a5d56" autoSize="none" text="赵钱孙"/>
     <component id="n18_ojlz" name="comStar" src="ojlzh" fileName="components/ComStar.xml" pkg="eg2y0ldp" xy="10,397" controller="c1,2"/>
     <loader id="n24_qr4e" name="loaMainScore" xy="20,21" size="46,46" aspect="true" url="ui://eg2y0ldp842s6h" fill="scaleMatchWidth"/>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs

@@ -101,7 +101,7 @@ namespace GFGGame
             listItem.m_loaMainScore.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (data.itemCfg.mainScore));
 
             listItem.m_loaBorder.url = "ui://Card/kp_kuang_" + data.itemCfg.rarity;//ResPathUtil.GetCommonGameResPath("kp_sxing_x_" + data.itemCfg.rarity);
-            listItem.m_txtLv.text = "Lv.\n" + data.lv;
+            listItem.m_txtLv.text = data.lv + "级";
             listItem.m_txtName.text = data.itemCfg.name;
 
             UI_ComStar comStar = UI_ComStar.Proxy(listItem.m_comStar);

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

@@ -53,8 +53,8 @@ namespace GFGGame
             if (_type == "lv")
             {
                 _ui.m_c1.selectedIndex = 0;
-                _ui.m_txtLast.text = string.Format("等级{0}", _lastNum);
-                _ui.m_txtNow.text = string.Format("等级{0}", _curNum);
+                _ui.m_txtLast.text = string.Format("{0}", _lastNum);
+                _ui.m_txtNow.text = string.Format("{0}", _curNum);
             }
             else
             {

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