Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | EditorGUILayout.BeginVertical(guiSkin.box); |
| | | EditorGUILayout.BeginHorizontal(GUILayout.Height(22)); |
| | | EditorGUI.indentLevel += 1; |
| | | showDetail = EditorGUILayout.Foldout(showDetail, " ID:" + id + " | Type: " + type, true, guiSkin.customStyles[3]); |
| | | showDetail = EditorGUILayout.Foldout(showDetail, "", true, guiSkin.customStyles[3]); |
| | | EditorGUILayout.LabelField("ID", guiSkin.label, GUILayout.Height(22), GUILayout.Width(20)); |
| | | id = EditorGUILayout.IntField(id, guiSkin.textField, GUILayout.Height(22), GUILayout.Width(70)); |
| | | EditorGUILayout.LabelField("Type:" + type.ToString(), guiSkin.label, GUILayout.Height(22)); |
| | | GUILayout.FlexibleSpace(); |
| | | if (GUILayout.Button("定位", guiSkin.button, GUILayout.Width(60), GUILayout.Height(22))) |
| | | { |
| | | Selection.activeGameObject = gameObject; |
| | |
| | | [SerializeField] Button m_BiddingButton;//竞价按钮
|
| | | [SerializeField] ImageEx m_BiddingImage;
|
| | | [SerializeField] TextEx m_JadeNumber2;
|
| | |
|
| | | [SerializeField] TextEx m_OverTime;//加时时间
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | | var timeNow = TimeUtility.ServerNow;
|
| | | TimeSpan timeSpan = timeNow - FamilyAuctionItem.Time;
|
| | | int minute = (int)timeSpan.TotalMinutes;
|
| | |
|
| | | DateTime extensionTime = FamilyAuctionItem.TimeEnd.AddSeconds(auctionHelpModel.ExtensionTime);
|
| | | if (minute < AuctionItem.NoticeSaleMinutes)//预热中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | if (m_PriceButton.interactable)
|
| | | {
|
| | | m_PriceButton.interactable = false;
|
| | |
| | | }
|
| | | else if (minute >= AuctionItem.NoticeSaleMinutes && minute <= AuctionItem.FamilySaleMinutes)//拍卖中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | var maxMoney = AuctionItem.BuyoutPrice * FamilyAuctionItem.ItemCount;
|
| | | var needMoney = 0;
|
| | | if (FamilyAuctionItem.BidderPrice == 0)
|
| | |
| | | int seconds = AuctionItem.FamilySaleMinutes * 60 - ((int)timeSpan.TotalSeconds - AuctionItem.NoticeSaleMinutes * 60);
|
| | | m_TimeText.text = Language.Get("PMH_04", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if (timeNow < extensionTime)//加时中
|
| | | {
|
| | | if (!m_OverTime.gameObject.activeSelf)
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(true);
|
| | | }
|
| | | m_TimeText.text = Language.Get("PMH_04", 0);
|
| | | TimeSpan timeSpan2 = extensionTime - timeNow;
|
| | | int timeSeconds = (int)timeSpan2.TotalSeconds;
|
| | | m_OverTime.text = Language.Get("PMH_18", TimeUtility.SecondsToHMS(timeSeconds));
|
| | | }
|
| | | }
|
| | | } |
| | | } |
| | |
| | | [SerializeField] Button m_BiddingButton;//竞价按钮
|
| | | [SerializeField] ImageEx m_BiddingImage;
|
| | | [SerializeField] TextEx m_JadeNumber2;
|
| | | [SerializeField] TextEx m_OverTime;//加时时间
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | | DateTime extensionTime = FullServiceAuction.TimeEnd.AddSeconds(auctionHelpModel.ExtensionTime);
|
| | | if (minute < AuctionItem.NoticeSaleMinutes)//预热中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | if (m_PriceButton.interactable)
|
| | | {
|
| | | m_PriceButton.interactable = false;
|
| | |
| | | }
|
| | | else if (minute <= AuctionItem.WorldSaleMinutes)//拍卖中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | var maxMoney = AuctionItem.BuyoutPrice * FullServiceAuction.ItemCount;
|
| | | var needMoney = 0;
|
| | | if (FullServiceAuction.BidderPrice == 0)
|
| | |
| | | int seconds = AuctionItem.WorldSaleMinutes * 60 - ((int)timeSpan.TotalSeconds - AuctionItem.NoticeSaleMinutes * 60);
|
| | | m_TimeText.text = Language.Get("PMH_04", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if (timeNow < extensionTime)
|
| | | else if (timeNow < extensionTime)//加时中
|
| | | {
|
| | | if (!m_OverTime.gameObject.activeSelf)
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(true);
|
| | | }
|
| | | m_TimeText.text = Language.Get("PMH_04", 0);
|
| | | TimeSpan timeSpan2 = extensionTime - timeNow;
|
| | | int timeSeconds = (int)timeSpan2.TotalSeconds;
|
| | | DebugEx.LogError(Language.Get("PMH_04", TimeUtility.SecondsToHMS(timeSeconds)));
|
| | | m_OverTime.text = Language.Get("PMH_18", TimeUtility.SecondsToHMS(timeSeconds));
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | [SerializeField] TextEx m_JadeNumber;//当前价格
|
| | | [SerializeField] TextEx m_TimeText;//时间
|
| | | [SerializeField] TextEx m_Income;//收益
|
| | |
|
| | | [SerializeField] TextEx m_OverTime;//加时时间
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (AuctionItem != null && MyAuction != null)
|
| | |
| | | var timeNow = TimeUtility.ServerNow;
|
| | | TimeSpan timeSpan = timeNow - MyAuction.Time;
|
| | | int minute = (int)timeSpan.TotalMinutes;
|
| | |
|
| | | DateTime extensionTime = MyAuction.TimeEnd.AddSeconds(auctionHelpModel.ExtensionTime);
|
| | | if (minute < AuctionItem.NoticeSaleMinutes)//预热中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | int seconds = AuctionItem.NoticeSaleMinutes * 60 - (int)timeSpan.TotalSeconds;
|
| | | m_TimeText.text = Language.Get("PMH_03", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if (minute >= AuctionItem.NoticeSaleMinutes && minute <= AuctionItem.FamilySaleMinutes)//拍卖中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | int seconds = AuctionItem.FamilySaleMinutes * 60 - ((int)timeSpan.TotalSeconds - AuctionItem.NoticeSaleMinutes * 60);
|
| | | m_TimeText.text = Language.Get("PMH_04", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if (timeNow < extensionTime)//加时中
|
| | | {
|
| | | if (!m_OverTime.gameObject.activeSelf)
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(true);
|
| | | }
|
| | | m_TimeText.text = Language.Get("PMH_04", 0);
|
| | | TimeSpan timeSpan2 = extensionTime - timeNow;
|
| | | int timeSeconds = (int)timeSpan2.TotalSeconds;
|
| | | m_OverTime.text = Language.Get("PMH_18", TimeUtility.SecondsToHMS(timeSeconds));
|
| | | }
|
| | | }
|
| | | } |
| | | } |
| | |
| | | [SerializeField] Button m_BiddingButton;//竞价按钮
|
| | | [SerializeField] ImageEx m_BiddingImage;
|
| | | [SerializeField] TextEx m_JadeNumber2;
|
| | | [SerializeField] TextEx m_OverTime;//加时时间
|
| | | AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } }
|
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
| | |
|
| | | });
|
| | | }
|
| | |
|
| | | private void LateUpdate()
|
| | | {
|
| | | if (AuctionItem != null && MyFocusItem != null)
|
| | |
| | | var timeNow = TimeUtility.ServerNow;
|
| | | TimeSpan timeSpan = timeNow - MyFocusItem.Time;
|
| | | int minute = (int)timeSpan.TotalMinutes;
|
| | |
|
| | | DateTime extensionTime = MyFocusItem.TimeEnd.AddSeconds(auctionHelpModel.ExtensionTime);
|
| | | if (minute < AuctionItem.NoticeSaleMinutes)//预热中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | if (m_PriceButton.interactable)
|
| | | {
|
| | | m_PriceButton.interactable = false;
|
| | |
| | | }
|
| | | else if (minute >= AuctionItem.NoticeSaleMinutes && minute <= AuctionItem.FamilySaleMinutes)//拍卖中
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(false);
|
| | | var maxMoney = AuctionItem.BuyoutPrice * MyFocusItem.ItemCount;
|
| | | var needMoney = 0;
|
| | | if (MyFocusItem.BidderPrice == 0)
|
| | |
| | | int seconds = AuctionItem.FamilySaleMinutes * 60 - ((int)timeSpan.TotalSeconds - AuctionItem.NoticeSaleMinutes * 60);
|
| | | m_TimeText.text = Language.Get("PMH_04", TimeUtility.SecondsToHMS(seconds));
|
| | | }
|
| | | else if (timeNow < extensionTime)//加时中
|
| | | {
|
| | | if (!m_OverTime.gameObject.activeSelf)
|
| | | {
|
| | | m_OverTime.gameObject.SetActive(true);
|
| | | }
|
| | | m_TimeText.text = Language.Get("PMH_04", 0);
|
| | | TimeSpan timeSpan2 = extensionTime - timeNow;
|
| | | int timeSeconds = (int)timeSpan2.TotalSeconds;
|
| | | m_OverTime.text = Language.Get("PMH_18", TimeUtility.SecondsToHMS(timeSeconds));
|
| | | }
|
| | | }
|
| | | } |
| | | |