|
@@ -8,9 +8,9 @@ using ET;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
|
- public class ClothingView : BaseWindow
|
|
|
+ public class SuitView : BaseWindow
|
|
|
{
|
|
|
- private UI_ClothingUI _ui;
|
|
|
+ private UI_SuitUI _ui;
|
|
|
|
|
|
private GameObject _scenePrefab;
|
|
|
private GameObject _sceneObject;
|
|
@@ -38,8 +38,8 @@ namespace GFGGame
|
|
|
protected override void OnInit()
|
|
|
{
|
|
|
base.OnInit();
|
|
|
- packageName = UI_ClothingUI.PACKAGE_NAME;
|
|
|
- _ui = UI_ClothingUI.Create();
|
|
|
+ packageName = UI_SuitUI.PACKAGE_NAME;
|
|
|
+ _ui = UI_SuitUI.Create();
|
|
|
this.viewCom = _ui.target;
|
|
|
// this.viewCom.Center();
|
|
|
isfullScreen = true;
|
|
@@ -102,8 +102,6 @@ namespace GFGGame
|
|
|
protected override void OnHide()
|
|
|
{
|
|
|
base.OnHide();
|
|
|
- // UI_ComCostCurrency.ProxyEnd();
|
|
|
-
|
|
|
}
|
|
|
protected override void RemoveEventListener()
|
|
|
{
|
|
@@ -113,7 +111,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void OnClickBtnBack()
|
|
|
{
|
|
|
- ViewManager.GoBackFrom(typeof(ClothingView).FullName);
|
|
|
+ ViewManager.GoBackFrom(typeof(SuitView).FullName);
|
|
|
}
|
|
|
private void OnTabChange()
|
|
|
{
|
|
@@ -233,7 +231,7 @@ namespace GFGGame
|
|
|
}
|
|
|
else if (state == 1)
|
|
|
{
|
|
|
- ViewManager.Show<ClothingFosterView>(new object[] { _suitId, index, _propertyList, _addPropertyList, this.viewData });
|
|
|
+ ViewManager.Show<SuitFosterView>(new object[] { _suitId, index, _propertyList, _addPropertyList, this.viewData });
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -245,7 +243,7 @@ namespace GFGGame
|
|
|
SuitFosterDataManager.Instance.GetFosterRewardState(_suitId, out int state, out int index);
|
|
|
if (state == 1 || state == 2)
|
|
|
{
|
|
|
- ViewManager.Show<ClothingFosterRewardView>(_suitId);
|
|
|
+ ViewManager.Show<SuitRewardView>(_suitId);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -254,20 +252,26 @@ namespace GFGGame
|
|
|
}
|
|
|
private void OnClickBtnPropertyShow()
|
|
|
{
|
|
|
- ViewManager.Show<ClothingPropertyShowView>(new object[] { _suitId, _index });
|
|
|
+ ViewManager.Show<SuitPropertyShowView>(new object[] { _suitId, _index });
|
|
|
}
|
|
|
|
|
|
private void OnListenerFoster()
|
|
|
{
|
|
|
_ui.m_comFosterAni.target.visible = true;
|
|
|
_ui.m_comFosterAni.m_txtContent.text = string.Format("服装{0}中......", SuitFosterDataManager.Instance.stepNames[_index]);
|
|
|
-
|
|
|
+ // _ui.m_comFosterAni.m_proFoster.value = 0;
|
|
|
string resPath = ResPathUtil.GetViewEffectPath("ui_gcdh", "ui_gcdh_" + (_index + 1));
|
|
|
SceneController.AddObjectToView(_gameobject1, _wrapper1, _ui.m_comFosterAni.m_holder, resPath, out _gameobject1, out _wrapper1);
|
|
|
+ // _ui.m_comFosterAni.m_proFoster.TweenValue(100, 4f).OnComplete(() =>
|
|
|
+ // {
|
|
|
+ // ViewManager.Show<SuitFosterFinishView>(new object[] { _suitId, _index, _propertyList });
|
|
|
+ // UpdateFoster();
|
|
|
+ // _ui.m_comFosterAni.target.visible = false;
|
|
|
+ // });
|
|
|
|
|
|
_ui.m_comFosterAni.m_t0.Play(() =>
|
|
|
{
|
|
|
- ViewManager.Show<ClothingFosterFinishView>(new object[] { _suitId, _index, _propertyList });
|
|
|
+ ViewManager.Show<SuitFosterFinishView>(new object[] { _suitId, _index, _propertyList });
|
|
|
UpdateFoster();
|
|
|
_ui.m_comFosterAni.target.visible = false;
|
|
|
});
|
|
@@ -356,7 +360,7 @@ namespace GFGGame
|
|
|
{
|
|
|
int itemId = (int)(context.data as GComponent).data;
|
|
|
// GoodsItemTipsController.ShowItemTips(itemId);
|
|
|
- ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(ClothingView).FullName, this.viewData } });
|
|
|
+ ViewManager.Show(ViewName.APPROACH_OF_ITEM_VIEW, new object[] { itemId, new object[] { typeof(SuitView).FullName, this.viewData } });
|
|
|
}
|
|
|
|
|
|
private async void OnClickBtnRenew()
|
|
@@ -382,7 +386,7 @@ namespace GFGGame
|
|
|
}
|
|
|
private void OnListenerRenew()
|
|
|
{
|
|
|
- ViewManager.Show<ClothingRenewFinishView>(_suitId);
|
|
|
+ ViewManager.Show<SuitRenewFinishView>(_suitId);
|
|
|
UpdateRenew();
|
|
|
Debug.Log("换新奖励:" + ItemDataManager.GetItemNum(10370));
|
|
|
|