|
|
namespace vnxbqy.UI
|
{
|
public class PetHorseActWin : OneLevelWin
|
{
|
StoreModel model { get { return ModelCenter.Instance.GetModel<StoreModel>(); } }
|
PetHorseActModel petHorseActModel { get { return ModelCenter.Instance.GetModel<PetHorseActModel>(); } }
|
|
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<MountedPetZhanLingWin>();
|
functionOrder = 1;
|
}
|
|
private void OpenLogin()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<LoginActWin>(fixParentName: "PetHorseActWin");
|
functionOrder = 2;
|
}
|
|
private void OpenMission()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<MissionActWin>(fixParentName: "PetHorseActWin");
|
functionOrder = 3;
|
}
|
|
private void OpenGift()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<RechargeGiftActWin>(fixParentName: "PetHorseActWin");
|
functionOrder = 4;
|
}
|
|
private void OpenRank()
|
{
|
CloseSubWindows();
|
WindowCenter.Instance.Open<PetHorseRankWin>();
|
functionOrder = 0;
|
}
|
|
private void OpenStore()
|
{
|
CloseSubWindows();
|
|
model.rankActStore_ActType = PetHorseActModel.operaType;
|
model.rankActStore_StoreType = petHorseActModel.operationAct.m_ShopType;
|
model.rankActStore_MoneyType = 45;
|
WindowCenter.Instance.Open<ActStoreWin>(fixParentName: "PetHorseActWin");
|
functionOrder = 5;
|
}
|
}
|
}
|