瀏覽代碼

恭喜获得首通奖励

zhaoyang 3 年之前
父節點
當前提交
46b5fbc3d1

+ 1 - 0
FGUIProject/assets/CommonGame/components/ComRewardItem.xml

@@ -5,5 +5,6 @@
     <loader id="n3_m9wm" name="loaIcon" xy="23,23" size="150,150" url="ui://eg2y0ldpm9wm8v" fill="scaleFree"/>
     <text id="n5_m9wm" name="txtCount" xy="162,160" pivot="1,1" size="34,36" fontSize="26" color="#efd78d" text="x1"/>
     <text id="n4_m9wm" name="txtName" xy="98,196" pivot="0.5,0" anchor="true" size="106,36" fontSize="26" color="#fdedbe" text="赵钱孙李"/>
+    <image id="n6_kzte" name="imgOnceBonus" src="kzteths" fileName="images/gxhd_scjlscjl.png" xy="8,134"/>
   </displayList>
 </component>

二進制
FGUIProject/assets/CommonGame/images/gxhd_scjlscjl.png


+ 1 - 0
FGUIProject/assets/CommonGame/package.xml

@@ -192,6 +192,7 @@
     <component id="kztethp" name="ComListReward.xml" path="/"/>
     <image id="kztethq" name="test.png" path="/imagesExport/" exported="true"/>
     <image id="kztethr" name="hyhy_btbt_1.png" path="/imagesExport/" exported="true"/>
+    <image id="kzteths" name="gxhd_scjlscjl.png" path="/images/"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComRewardItem.cs

@@ -10,6 +10,7 @@ namespace UI.CommonGame
         public GLoader m_loaIcon;
         public GTextField m_txtCount;
         public GTextField m_txtName;
+        public GImage m_imgOnceBonus;
         public const string URL = "ui://eg2y0ldpwet2tae";
         public const string PACKAGE_NAME = "CommonGame";
         public const string RES_NAME = "ComRewardItem";
@@ -60,12 +61,14 @@ namespace UI.CommonGame
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
             m_txtCount = (GTextField)comp.GetChild("txtCount");
             m_txtName = (GTextField)comp.GetChild("txtName");
+            m_imgOnceBonus = (GImage)comp.GetChild("imgOnceBonus");
         }
         public void Dispose(bool disposeTarget = false)
         {
             m_loaIcon = null;
             m_txtCount = null;
             m_txtName = null;
+            m_imgOnceBonus = null;
             if(disposeTarget && target != null)
             {
                 target.RemoveFromParent();

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/CommonGame/RewardView.cs

@@ -47,7 +47,6 @@ namespace GFGGame
             base.OnShown();
             if ((this.viewData as object[]).Length > 0)
             {
-                // onSuccess
                 _listItemDatas = (this.viewData as object[])[0] as List<ItemData>;
                 onSuccess = (this.viewData as object[])[1] as Action;
             }
@@ -74,6 +73,7 @@ namespace GFGGame
             // item.m_txtCount.text = _listItemDatas[index].num==1?"": string.Format("x{0}", _listItemDatas[index].num);
             item.m_comRewardItem.m_txtCount.text = string.Format("x{0}", _listItemDatas[index].num);
             item.m_comRewardItem.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
+            item.m_comRewardItem.m_imgOnceBonus.visible = _listItemDatas[index].isOnceBonus;
             string resPath = ResPathUtil.GetViewEffectPath("ui_ck", "ui_ck_zl");
             int childIndex = _ui.m_comListReward.m_listReward.ItemIndexToChildIndex(index);
             if (_effects.Count <= childIndex)

二進制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


二進制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


二進制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes