| | |
| | | }
|
| | | protected override void OnActived()
|
| | | {
|
| | | OnClickFamilyAuction();
|
| | | OnClickFullServiceAuction();
|
| | | m_FuncBtnGroup.TriggerByOrder(functionOrder);
|
| | | } |
| | | protected override void OnAfterOpen() |
| | |
| | | {
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<FullServiceAuctionWin>(true);
|
| | | functionOrder = 0;
|
| | | functionOrder = m_FullServiceAuctionWin.order;
|
| | | } |
| | | |
| | | private void OnClickFamilyAuction()
|
| | | {
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<FamilyAuctionWin>(true);
|
| | | functionOrder = 1;
|
| | | functionOrder = m_FamilyAuctionWin.order;
|
| | | }
|
| | |
|
| | | private void OnClickMyAuction()
|
| | | {
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<MyAuctionWin>(true);
|
| | | functionOrder = 2;
|
| | | functionOrder = m_MyAuction.order;
|
| | | }
|
| | | private void OnClickMyFocus()
|
| | | {
|
| | | CloseChild();
|
| | | WindowCenter.Instance.Open<MyFocusWin>(true);
|
| | | functionOrder = 3;
|
| | | functionOrder = m_MyFocus.order;
|
| | | }
|
| | |
|
| | | private void OnClickAttentionButton()
|
| | |
| | |
|
| | | private void CloseChild()
|
| | | {
|
| | | if (WindowCenter.Instance.IsOpen<FullServiceAuctionWin>())
|
| | | var children = WindowConfig.Get().FindChildWindows("AuctionHouseWin");
|
| | | foreach (var window in children)
|
| | | {
|
| | | WindowCenter.Instance.Close<FullServiceAuctionWin>();
|
| | | }
|
| | | if (WindowCenter.Instance.IsOpen<FamilyAuctionWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<FamilyAuctionWin>();
|
| | | }
|
| | | if (WindowCenter.Instance.IsOpen<MyAuctionWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<MyAuctionWin>();
|
| | | }
|
| | | if (WindowCenter.Instance.IsOpen<MyFocusWin>())
|
| | | {
|
| | | WindowCenter.Instance.Close<MyFocusWin>();
|
| | | }
|
| | | WindowCenter.Instance.Close(window);
|
| | | } |
| | | } |
| | | } |
| | | |