Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | | // m_Score.text
|
| | | }
|
| | | int needJade = 0;
|
| | | int priceMax = 0;
|
| | | priceMax = auctionItem.BuyoutPrice * familyAuctionItem.ItemCount;
|
| | | if (familyAuctionItem.BidderPrice == 0)
|
| | | {
|
| | | needJade = auctionItem.BasePrice;
|
| | | needJade = auctionItem.BasePrice * familyAuctionItem.ItemCount;
|
| | | }
|
| | | else
|
| | | {
|
| | | needJade = familyAuctionItem.BidderPrice + auctionItem.BiddingAdd;
|
| | | needJade = familyAuctionItem.BidderPrice + auctionItem.BiddingAdd * familyAuctionItem.ItemCount;
|
| | | }
|
| | | m_JadeNumber.text = familyAuctionItem.BidderPrice.ToString();
|
| | | m_JadeNumber1.text = auctionItem.BuyoutPrice.ToString();
|
| | | m_JadeNumber1.text = priceMax.ToString();
|
| | | if (auctionItem.BuyoutPrice == 0)
|
| | | {
|
| | | m_PriceButton.gameObject.SetActive(false);
|
| | |
| | | m_PriceButton.SetListener(() => //一口价
|
| | | {
|
| | | int jade = (int)PlayerDatas.Instance.baseData.diamond;
|
| | | string str = Language.Get("PMH_02", auctionItem.BuyoutPrice);
|
| | | string str = Language.Get("PMH_02", priceMax);
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("L1003"), str, (bool isOk) =>
|
| | | {
|
| | | if (isOk)
|
| | | {
|
| | | if (jade >= auctionItem.BuyoutPrice)
|
| | | if (jade >= priceMax)
|
| | | {
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(GUIID, auctionItem.BuyoutPrice);
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(GUIID, priceMax);
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | });
|
| | | });
|
| | | m_JadeNumber2.text = (needJade).ToString();
|
| | |
| | | }
|
| | | }
|
| | | });
|
| | |
|
| | | });
|
| | | }
|
| | | private void LateUpdate()
|
| | |
| | | // m_Score.text
|
| | | }
|
| | | int needJade = 0;
|
| | | int priceMax = 0;
|
| | | priceMax = auctionItem.BuyoutPrice * fullServiceAuction.ItemCount;
|
| | | if (fullServiceAuction.BidderPrice == 0)
|
| | | {
|
| | | needJade = auctionItem.BasePrice;
|
| | | needJade = auctionItem.BasePrice * fullServiceAuction.ItemCount;
|
| | | }
|
| | | else
|
| | | {
|
| | | needJade = fullServiceAuction.BidderPrice + auctionItem.BiddingAdd;
|
| | | needJade = fullServiceAuction.BidderPrice + auctionItem.BiddingAdd* fullServiceAuction.ItemCount;
|
| | | }
|
| | | m_JadeNumber.text = fullServiceAuction.BidderPrice.ToString();
|
| | | m_JadeNumber1.text = auctionItem.BuyoutPrice.ToString();
|
| | | m_JadeNumber1.text = priceMax.ToString();
|
| | | if (auctionItem.BuyoutPrice == 0)
|
| | | {
|
| | | m_PriceButton.gameObject.SetActive(false);
|
| | |
| | | m_PriceButton.SetListener(() => //一口价
|
| | | {
|
| | | int jade = (int)PlayerDatas.Instance.baseData.diamond;
|
| | | string str = Language.Get("PMH_02", auctionItem.BuyoutPrice);
|
| | | string str = Language.Get("PMH_02", priceMax);
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("L1003"), str, (bool isOk) => {
|
| | | if (isOk)
|
| | | {
|
| | | if (jade >= auctionItem.BuyoutPrice)
|
| | | if (jade >= priceMax)
|
| | | {
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(fullServiceAuction.ItemGUID, auctionItem.BuyoutPrice);
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(fullServiceAuction.ItemGUID, priceMax);
|
| | | }
|
| | | else
|
| | | {
|
| | | WindowCenter.Instance.Open<RechargeTipWin>();
|
| | | }
|
| | |
|
| | | }
|
| | | |
| | | } |
| | | });
|
| | | });
|
| | | m_JadeNumber2.text = needJade.ToString();
|
| | |
| | | if (type == 0)
|
| | | {
|
| | | int auctionTaxrate = Mathf.CeilToInt((float)(auctionHelpModel.
|
| | | AuctionTaxrate1 * myAuction.BidderPrice) / 100);//个人税收
|
| | | int incomeNumber = myAuction.BidderPrice - auctionTaxrate;
|
| | | AuctionTaxrate1 * myAuction.BidderPrice* myAuction.ItemCount) / 100);//个人税收
|
| | | int incomeNumber = myAuction.BidderPrice * myAuction.ItemCount - auctionTaxrate;
|
| | | m_Income.text = incomeNumber.ToString();
|
| | | }
|
| | | else if (type == 1)
|
| | | {
|
| | | int auctionTaxrate = Mathf.CeilToInt((float)(auctionHelpModel.
|
| | | AuctionTaxrate2 * myAuction.BidderPrice) / 100);//仙盟税收
|
| | | int number = myAuction.BidderPrice - auctionTaxrate;
|
| | | AuctionTaxrate2 * myAuction.BidderPrice * myAuction.ItemCount) / 100);//仙盟税收
|
| | | int number = myAuction.BidderPrice * myAuction.ItemCount - auctionTaxrate;
|
| | | int incomeMax = number - Mathf.CeilToInt((float)(number * auctionHelpModel.AuctionTaxrate3) / 100);
|
| | | int incomeNumber = Mathf.FloorToInt((float)number / myAuction.FamilyPlayerIDList.Count);
|
| | | if (incomeMax >= incomeNumber)
|
| | |
| | | // m_Score.text
|
| | | }
|
| | | int needJade = 0;
|
| | | int priceMax = 0;
|
| | | priceMax = auctionItem.BuyoutPrice * myAuction.ItemCount;
|
| | | if (myAuction.BidderPrice == 0)
|
| | | {
|
| | | needJade = auctionItem.BasePrice;
|
| | | needJade = auctionItem.BasePrice * myAuction.ItemCount;
|
| | | }
|
| | | else
|
| | | {
|
| | | needJade = myAuction.BidderPrice + auctionItem.BiddingAdd;
|
| | | needJade = myAuction.BidderPrice + auctionItem.BiddingAdd * myAuction.ItemCount;
|
| | | }
|
| | | m_JadeNumber.text = myAuction.BidderPrice.ToString();
|
| | | if (auctionItem.BuyoutPrice == 0)
|
| | |
| | | {
|
| | | m_PriceButton.gameObject.SetActive(true);
|
| | | }
|
| | | m_JadeNumber1.text = auctionItem.BuyoutPrice.ToString();
|
| | | m_JadeNumber1.text = priceMax.ToString();
|
| | | m_PriceButton.SetListener(() => //一口价
|
| | | {
|
| | | int jade = (int)PlayerDatas.Instance.baseData.diamond;
|
| | | string str = Language.Get("PMH_02", auctionItem.BuyoutPrice);
|
| | | string str = Language.Get("PMH_02", priceMax);
|
| | | ConfirmCancel.ShowPopConfirm(Language.Get("L1003"), str, (bool isOk) => {
|
| | | if (isOk)
|
| | | {
|
| | | if (jade >= auctionItem.BuyoutPrice)
|
| | | if (jade >= priceMax)
|
| | | {
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(GUIID, auctionItem.BuyoutPrice);
|
| | | AuctionInquiry.Instance.SendSellAuctionItem(GUIID, priceMax);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | WindowCenter.Instance.Open<DungeonSlayerVictoryWin>();
|
| | | break;
|
| | | case RealmModel.REALM_DUNGEON_ID:
|
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel + 1;
|
| | | var realmLevel = PlayerDatas.Instance.baseData.realmLevel;
|
| | | RealmBossShow.Instance.Open(realmLevel);
|
| | | break;
|
| | | case RuneTowerModel.RUNETOWER_MAPID:
|
| | |
| | |
|
| | | public class EquipTypeClass
|
| | | {
|
| | | public int AttType;
|
| | | public int AttValue;
|
| | | public string StrName;
|
| | | public int AttType;//属性类型
|
| | | public int AttValue;//属性值
|
| | | public string StrName;//属性名
|
| | | }
|
| | | public class EquipMaxLvClass
|
| | | {
|
| | |
| | | return lv;
|
| | | }
|
| | |
|
| | | public List<EquipTypeClass> GetEquipValueList(int level, int equipPlace, int addlv = 0)
|
| | | public List<EquipTypeClass> GetEquipValueList(int level, int equipPlace, int addlv = 0)//当前获得的强化属性
|
| | | {
|
| | | List<EquipTypeClass> EquipTypeList = new List<EquipTypeClass>();
|
| | | int type = GetEquipStrengthType(equipPlace);
|
| | |
| | |
|
| | | [SerializeField] UIEffect m_UIEffect1A;
|
| | | [SerializeField] UIEffect m_UIEffect1B;
|
| | | [SerializeField] UIEffect m_UIEffect1C;
|
| | |
|
| | | EquipStrengthModel strengthModel { get { return ModelCenter.Instance.GetModel<EquipStrengthModel>(); } }
|
| | | EquipGemModel model { get { return ModelCenter.Instance.GetModel<EquipGemModel>(); } } |
| | |
| | | SetStrengthenedState();
|
| | | strengthModel.SelectEquipRefresh += SelectEquipRefresh;
|
| | | strengthModel.SelectLevelRefresh += SelectLevelRefresh;
|
| | | strengthModel.EquipStrengthUpdate += EquipStrengthUpdate; |
| | | } |
| | | |
| | | strengthModel.EquipStrengthUpdate += EquipStrengthUpdate;
|
| | | strengthModel.EquipStrengthLvUpdate += EquipStrengthLvUpdate; |
| | | }
|
| | |
|
| | | |
| | | protected override void OnAfterOpen() |
| | | { |
| | | } |
| | |
| | | strengthModel.SelectEquipRefresh -= SelectEquipRefresh;
|
| | | strengthModel.SelectLevelRefresh -= SelectLevelRefresh;
|
| | | strengthModel.EquipStrengthUpdate -= EquipStrengthUpdate; |
| | | strengthModel.EquipStrengthLvUpdate -= EquipStrengthLvUpdate; |
| | | }
|
| | |
|
| | |
|
| | |
| | | m_AutomaticBtn.gameObject.SetActive(true);
|
| | |
|
| | | }
|
| | |
|
| | | private void EquipStrengthLvUpdate()
|
| | | {
|
| | | if (!m_UIEffect1B.IsPlaying)
|
| | | {
|
| | | m_UIEffect1B.Play();
|
| | | } |
| | | }
|
| | |
|
| | | private void EquipStrengthUpdate()
|
| | | {
|
| | | if (!m_UIEffect1A.IsPlaying)
|
| | | {
|
| | | m_UIEffect1A.Play();
|
| | | }
|
| | | m_UIEffect1C.Play();
|
| | | if (strengthModel.SelectLevel != -1)
|
| | | {
|
| | | SetStrengthenedState();
|
| | | m_Controller.m_Scorller.RefreshActiveCellViews();
|
| | | m_Controller.m_Scorller.RefreshActiveCellViews(); |
| | | }
|
| | | }
|
| | | void DisplayEquips()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | int cacheMapId = 0;
|
| | |
|
| | | public event Action selectRealmRefresh;
|
| | |
|
| | | EquipModel equipModel { get { return ModelCenter.Instance.GetModel<EquipModel>(); } }
|
| | |
|
| | | public override void Init()
|
| | | {
|
| | | StageLoad.Instance.onStageLoadFinish += OnStageLoadFinish;
|
| | | ParseConfig();
|
| | | }
|
| | |
|
| | |
| | |
|
| | | public override void UnInit()
|
| | | {
|
| | | StageLoad.Instance.onStageLoadFinish -= OnStageLoadFinish;
|
| | | }
|
| | |
|
| | | void ParseConfig()
|
| | |
| | | {
|
| | | isBossPass = package.IsPass == 1;
|
| | | }
|
| | |
|
| | | private void OnStageLoadFinish()
|
| | | {
|
| | | if (!(StageLoad.Instance.currentStage is DungeonStage))
|
| | | {
|
| | | cacheMapId = 0;
|
| | | }
|
| | | else
|
| | | {
|
| | | var mapId = PlayerDatas.Instance.baseData.MapID;
|
| | | if (cacheMapId == REALM_DUNGEON_ID
|
| | | && mapId != REALM_DUNGEON_ID)
|
| | | {
|
| | | if (isBossPass)
|
| | | {
|
| | | SnxxzGame.Instance.StartCoroutine(Co_TryOpenRealmWin());
|
| | | }
|
| | | }
|
| | | cacheMapId = mapId;
|
| | | }
|
| | | }
|
| | |
|
| | | IEnumerator Co_TryOpenRealmWin()
|
| | | {
|
| | | yield return WaitingForSecondConst.WaitMS1000;
|
| | | TryOpenRealmWin();
|
| | | }
|
| | |
|
| | | private void TryOpenRealmWin()
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding)
|
| | | {
|
| | | return;
|
| | | }
|
| | | var treasureModel = ModelCenter.Instance.GetModel<TreasureModel>();
|
| | | if (treasureModel.newGotShowing)
|
| | | {
|
| | | return;
|
| | | }
|
| | | if (WindowCenter.Instance.ExistAnyFullScreenOrMaskWin())
|
| | | {
|
| | | return;
|
| | | }
|
| | | WindowCenter.Instance.Open<RealmWin>();
|
| | | }
|
| | | }
|
| | | } |