|
|
namespace vnxbqy.UI
|
{
|
public class TreasurePavilionRankActWin : OneLevelWin
|
{
|
TreasurePavilionRankActModel model { get { return ModelCenter.Instance.GetModel<TreasurePavilionRankActModel>(); } }
|
StoreModel storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
|
protected override void AddListeners()
|
{
|
base.AddListeners();
|
SetFunctionListener(0, OpenRank);
|
SetFunctionListener(1, OpenZhanling);
|
SetFunctionListener(2, OpenLogin);
|
SetFunctionListener(3, OpenMission);
|
SetFunctionListener(4, OpenGift);
|
SetFunctionListener(5, OpenStore);
|
}
|
|
|
|
private void OpenZhanling()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<GuBaoCultivateZhanLingWin>();
|
functionOrder = 1;
|
}
|
|
private void OpenLogin()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<LoginActWin>(fixParentName: "TreasurePavilionRankActWin");
|
functionOrder = 2;
|
}
|
|
private void OpenMission()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<MissionRoundActWin>(fixParentName: "TreasurePavilionRankActWin");
|
functionOrder = 3;
|
}
|
|
private void OpenGift()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<RechargeGiftAct31Win>(fixParentName: "TreasurePavilionRankActWin");
|
functionOrder = 4;
|
}
|
|
private void OpenRank()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<TreasurePavilionRankWin>();
|
functionOrder = 0;
|
}
|
|
private void OpenStore()
|
{
|
CloseSubWindows();
|
|
storeModel.rankActStore_ActType = TreasurePavilionRankActModel.operaType;
|
storeModel.rankActStore_StoreType = model.operationAct.m_ShopType;
|
storeModel.rankActStore_MoneyType = 46;
|
WindowCenter.Instance.Open<ActStoreWin>(fixParentName: "TreasurePavilionRankActWin");
|
functionOrder = 5;
|
}
|
}
|
}
|