|
@@ -189,7 +189,7 @@ namespace GFGGame
|
|
MainDataManager.Instance.CanSwipe = false;
|
|
MainDataManager.Instance.CanSwipe = false;
|
|
GRoot.inst.touchable = false;
|
|
GRoot.inst.touchable = false;
|
|
_ui.m_loaGuidestudio.visible = true;
|
|
_ui.m_loaGuidestudio.visible = true;
|
|
-
|
|
|
|
|
|
+
|
|
_ui.m_headBar.m_txtName.text = RoleDataManager.roleName;
|
|
_ui.m_headBar.m_txtName.text = RoleDataManager.roleName;
|
|
if (_sceneObject == null)
|
|
if (_sceneObject == null)
|
|
{
|
|
{
|
|
@@ -215,6 +215,7 @@ namespace GFGGame
|
|
GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
GameGlobal.lastLoginTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
}
|
|
}
|
|
SetPos();
|
|
SetPos();
|
|
|
|
+
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(Update);
|
|
Timers.inst.AddUpdate(Update);
|
|
}
|
|
}
|
|
@@ -637,7 +638,19 @@ namespace GFGGame
|
|
//列表
|
|
//列表
|
|
private void OnClickBtnGiftBag1()
|
|
private void OnClickBtnGiftBag1()
|
|
{
|
|
{
|
|
- //ActivityType.XSLB1
|
|
|
|
|
|
+ var activityInfoByTypeList =
|
|
|
|
+ ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.XSLB1);
|
|
|
|
+
|
|
|
|
+ var list = activityInfoByTypeList
|
|
|
|
+ .Where(a => a.endTime > TimeInfo.Instance.ServerNow()).ToList();
|
|
|
|
+ if (list.Count == 0)
|
|
|
|
+ {
|
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("活动已结束");
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<SpecialOfferGiftBoxView>();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
//圆形
|
|
//圆形
|
|
@@ -657,6 +670,40 @@ namespace GFGGame
|
|
ViewManager.Show<RushSaleGiftBoxView>(new object[] { ActivityType.XSLB2, this.viewData });
|
|
ViewManager.Show<RushSaleGiftBoxView>(new object[] { ActivityType.XSLB2, this.viewData });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ private void UpGiftBox1()
|
|
|
|
+ {
|
|
|
|
+ var activityInfoByTypeList =
|
|
|
|
+ ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.XSLB1);
|
|
|
|
+
|
|
|
|
+ var list = activityInfoByTypeList
|
|
|
|
+ .Where(a => a.endTime > TimeInfo.Instance.ServerNow()).ToList();
|
|
|
|
+ if (list.Count == 0)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_txtGiftBagTime1.text = "已结束";
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _ui.m_txtGiftBagTime1.text = TimeUtil.GetTimeLeft(TimeInfo.Instance.ServerNow(), list[0].endTime);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void UpGiftBox2()
|
|
|
|
+ {
|
|
|
|
+ var activityInfoByTypeList =
|
|
|
|
+ ActivityGlobalDataManager.Instance.GetActivityInfoByType(ActivityType.XSLB2);
|
|
|
|
+
|
|
|
|
+ var list = activityInfoByTypeList
|
|
|
|
+ .Where(a => a.endTime > TimeInfo.Instance.ServerNow()).ToList();
|
|
|
|
+ if (list.Count == 0)
|
|
|
|
+ {
|
|
|
|
+ _ui.m_txtGiftBagTime2.text = "已结束";
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ _ui.m_txtGiftBagTime2.text = TimeUtil.GetTimeLeft(TimeInfo.Instance.ServerNow(), list[0].endTime);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
private void Update(object param)
|
|
private void Update(object param)
|
|
{
|
|
{
|
|
@@ -692,12 +739,20 @@ namespace GFGGame
|
|
}
|
|
}
|
|
|
|
|
|
//特惠礼包/限时礼包窗口内的倒计时
|
|
//特惠礼包/限时礼包窗口内的倒计时
|
|
- if (ViewManager.isViewOpen(typeof(SpecialOfferGiftBoxView).FullName))
|
|
|
|
|
|
+ UpGiftBox1();
|
|
|
|
+ UpGiftBox2();
|
|
|
|
+ if (ViewManager.isViewOpen(nameof(SpecialOfferGiftBoxView)))
|
|
{
|
|
{
|
|
var specialOfferGiftBoxView =
|
|
var specialOfferGiftBoxView =
|
|
- ViewManager.GetUIView(typeof(SpecialOfferGiftBoxView).FullName) as SpecialOfferGiftBoxView;
|
|
|
|
|
|
+ ViewManager.GetUIView(nameof(SpecialOfferGiftBoxView)) as SpecialOfferGiftBoxView;
|
|
specialOfferGiftBoxView?.UpTime();
|
|
specialOfferGiftBoxView?.UpTime();
|
|
}
|
|
}
|
|
|
|
+ if (ViewManager.isViewOpen(nameof(RushSaleGiftBoxView)))
|
|
|
|
+ {
|
|
|
|
+ var rushSaleGiftBoxView =
|
|
|
|
+ ViewManager.GetUIView(nameof(RushSaleGiftBoxView)) as RushSaleGiftBoxView;
|
|
|
|
+ rushSaleGiftBoxView?.UpTime();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
private void ShowExitAlert()
|
|
private void ShowExitAlert()
|