|
@@ -3,10 +3,11 @@ using System.Collections;
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
using FairyGUI;
|
|
using FairyGUI;
|
|
using UI.InstanceZones;
|
|
using UI.InstanceZones;
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
|
|
namespace GFGGame
|
|
namespace GFGGame
|
|
{
|
|
{
|
|
- public class InstanceZonesUIView : BaseView
|
|
|
|
|
|
+ public class InstanceZonesView : BaseView
|
|
{
|
|
{
|
|
private UI_InstanceZonesUI _ui;
|
|
private UI_InstanceZonesUI _ui;
|
|
private ValueBarController _valueBarController;
|
|
private ValueBarController _valueBarController;
|
|
@@ -44,13 +45,14 @@ namespace GFGGame
|
|
_ui.m_btnField.target.onClick.Add(OnClickBtnField);
|
|
_ui.m_btnField.target.onClick.Add(OnClickBtnField);
|
|
_ui.m_btnArena.target.onClick.Add(OnClickBtnArena);
|
|
_ui.m_btnArena.target.onClick.Add(OnClickBtnArena);
|
|
_ui.m_btnBack.onClick.Add(OnClickBtnBack);
|
|
_ui.m_btnBack.onClick.Add(OnClickBtnBack);
|
|
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("fuben_bg");
|
|
|
|
|
|
+ _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("hzs_bg");
|
|
}
|
|
}
|
|
|
|
|
|
protected override void OnShown()
|
|
protected override void OnShown()
|
|
{
|
|
{
|
|
base.OnShown();
|
|
base.OnShown();
|
|
_valueBarController.OnShown();
|
|
_valueBarController.OnShown();
|
|
|
|
+ _valueBarController.UpdateList(new List<int>() { ConstItemID.POWER });
|
|
CheckFunOpen();
|
|
CheckFunOpen();
|
|
UpdateRedDot();
|
|
UpdateRedDot();
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
@@ -91,9 +93,9 @@ namespace GFGGame
|
|
private void UpdateRedDot()
|
|
private void UpdateRedDot()
|
|
{
|
|
{
|
|
_valueBarController.UpdateRedPoint();
|
|
_valueBarController.UpdateRedPoint();
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnStudio.target, RedDotDataManager.Instance.GetStudioFilingRed(), "", -36, 32);
|
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -36, 32);
|
|
|
|
- RedDotController.Instance.SetComRedDot(_ui.m_btnField.target, RedDotDataManager.Instance.GetFieldRed(), "", -36, 32);
|
|
|
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnStudio.target, RedDotDataManager.Instance.GetStudioFilingRed(), "", -126, 22);
|
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnTravel.target, RedDotDataManager.Instance.GetTravelRed(), "", -152, 85);
|
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_btnField.target, RedDotDataManager.Instance.GetFieldRed(), "", -103, 43);
|
|
}
|
|
}
|
|
|
|
|
|
private void CheckFunOpen()
|
|
private void CheckFunOpen()
|