|
@@ -26,13 +26,17 @@ namespace GFGGame
|
|
|
private List<Transition> _transitionList = new List<Transition>();
|
|
|
|
|
|
private GameObject _gameObject1;
|
|
|
+
|
|
|
private GameObject _gameObject2;
|
|
|
+
|
|
|
// private GameObject _gameObject3;
|
|
|
private GameObject _gameObject4;
|
|
|
private GameObject _gameObject5;
|
|
|
|
|
|
private GoWrapper _wrapper1;
|
|
|
+
|
|
|
private GoWrapper _wrapper2;
|
|
|
+
|
|
|
// private GoWrapper _wrapper3;
|
|
|
private GoWrapper _wrapper4;
|
|
|
private GoWrapper _wrapper5;
|
|
@@ -94,13 +98,17 @@ namespace GFGGame
|
|
|
|
|
|
Timers.inst.Add(0.8f, 1, (obj) =>
|
|
|
{
|
|
|
- string resPath4 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_discount_baofa");
|
|
|
- SceneController.AddObjectToView(null, null, _ui.m_holderZheKou, resPath4,
|
|
|
- out _gameObject4, out _wrapper4);
|
|
|
-
|
|
|
- string resPath2 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_button");
|
|
|
- SceneController.AddObjectToView(null, null, _ui.m_holderBtnBy, resPath2,
|
|
|
- out _gameObject2, out _wrapper2);
|
|
|
+ //防止手速超快关了又开开了又关导致的特效重复加载,因为这里是通过Timers延时加载的
|
|
|
+ if (ViewManager.isViewOpen(nameof(RushSaleGiftBoxView)))
|
|
|
+ {
|
|
|
+ string resPath4 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_discount_baofa");
|
|
|
+ SceneController.AddObjectToView(null, null, _ui.m_holderZheKou, resPath4,
|
|
|
+ out _gameObject4, out _wrapper4);
|
|
|
+
|
|
|
+ string resPath2 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_button");
|
|
|
+ SceneController.AddObjectToView(null, null, _ui.m_holderBtnBy, resPath2,
|
|
|
+ out _gameObject2, out _wrapper2);
|
|
|
+ }
|
|
|
}
|
|
|
);
|
|
|
string resPath5 = ResPathUtil.GetViewEffectPath("ui_Activity", "Limite_star");
|
|
@@ -201,19 +209,6 @@ namespace GFGGame
|
|
|
mTxtUrc = $"本月限购{remainBuyNum}/{shopCfg.maxBuyNum}";
|
|
|
}
|
|
|
|
|
|
- if (remainBuyNum == 0)
|
|
|
- {
|
|
|
- //已售完
|
|
|
- _ui.m_btnBuyPink.m_bagGrey.visible = true;
|
|
|
- _ui.m_btnBuyPink.m_bagPink.visible = false;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- //未售完
|
|
|
- _ui.m_btnBuyPink.m_bagGrey.visible = false;
|
|
|
- _ui.m_btnBuyPink.m_bagPink.visible = true;
|
|
|
- }
|
|
|
-
|
|
|
string mTxtNewPrice;
|
|
|
_ui.m_txtLrc.text = string.Empty;
|
|
|
_ui.m_btnBuyPink.m_loaIcon.visible = false;
|
|
@@ -243,6 +238,33 @@ namespace GFGGame
|
|
|
//_ui.m_btnBuyPink.m_txtNewPrice.align = AlignType.Left;
|
|
|
// _ui.m_btnBuyPink.m_txtNewPrice.x = 166;
|
|
|
}
|
|
|
+
|
|
|
+ if (remainBuyNum == 0)
|
|
|
+ {
|
|
|
+ //已售完
|
|
|
+ _ui.m_btnBuyPink.m_bagGrey.visible = true;
|
|
|
+ _ui.m_btnBuyPink.m_bagPink.visible = false;
|
|
|
+
|
|
|
+ _ui.m_btnBuyPink.m_txtSoldOut.visible = true;
|
|
|
+ _ui.m_btnBuyPink.m_txtSoldOut.text = "已售罄";
|
|
|
+ _ui.m_holderBtnBy.visible = false;
|
|
|
+ _ui.m_btnBuyPink.m_loaIcon.visible = false;
|
|
|
+ _ui.m_btnBuyPink.m_txtOldPrice.visible = false;
|
|
|
+ _ui.m_btnBuyPink.m_txtNewPrice.visible = false;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ //未售完
|
|
|
+ _ui.m_btnBuyPink.m_bagGrey.visible = false;
|
|
|
+ _ui.m_btnBuyPink.m_bagPink.visible = true;
|
|
|
+
|
|
|
+ _ui.m_btnBuyPink.m_txtSoldOut.visible = false;
|
|
|
+ _ui.m_btnBuyPink.m_txtSoldOut.text = "";
|
|
|
+ // _ui.m_holderBtnBy.visible = true;
|
|
|
+ _ui.m_btnBuyPink.m_loaIcon.visible = true;
|
|
|
+ _ui.m_btnBuyPink.m_txtOldPrice.visible = true;
|
|
|
+ _ui.m_btnBuyPink.m_txtNewPrice.visible = true;
|
|
|
+ }
|
|
|
|
|
|
_ui.m_txtBoxItemName.text = shopCfg.itemName;
|
|
|
//这个B时间需要在一个地方统一处理,然后广播事件,不然可能会存在不同步的问题,最后做
|
|
@@ -283,7 +305,7 @@ namespace GFGGame
|
|
|
_gameObjectList.Add(gameObject);
|
|
|
_wrapperList.Add(wrapper);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
uiItem.m_t1.Play();
|
|
|
UI_RushSaleGiftBoxUI.ProxyEnd();
|
|
|
}
|