| | |
| | | using UnityEngine.EventSystems;
|
| | | using Snxxz.UI;
|
| | |
|
| | | namespace Snxxz.UI {
|
| | | namespace Snxxz.UI
|
| | | {
|
| | |
|
| | | public class RoleEquipWin : Window
|
| | | {
|
| | |
| | | private Text _timeDown;
|
| | | [SerializeField] UIEffect STREffect;
|
| | | [SerializeField] UIEffect StarsEffect;
|
| | | [SerializeField] Button m_JadeDynasty;
|
| | | #endregion
|
| | |
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | {
|
| | | PlayerPackModel playerPack {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PlayerPackModel>()); }
|
| | | }
|
| | |
|
| | |
|
| | | ItemTipsModel _itemTipsModel;
|
| | | ItemTipsModel itemTipsModel
|
| | | {
|
| | | get
|
| | | {
|
| | | ItemTipsModel itemTipsModel {
|
| | | get {
|
| | | return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>());
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | PackModelInterface _modelInterface;
|
| | | PackModelInterface modelInterface
|
| | | {
|
| | | PackModelInterface modelInterface {
|
| | | get { return _modelInterface ?? (_modelInterface = ModelCenter.Instance.GetModel<PackModelInterface>()); }
|
| | | }
|
| | | private bool isUpdatePlayerLv;
|
| | |
| | | {
|
| | | _oneKeySellBtn.onClick.AddListener(OnClickOneKeySell);
|
| | | _sortBtn.onClick.AddListener(() => { OnClickSortBtn(); });
|
| | | m_JadeDynasty.SetListener(() => { WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.JadeDynastyEquip); });
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | protected override void OnPreOpen()
|
| | |
| | |
|
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | |
| | |
|
| | | SuccessConfig successConfig = Config.Instance.Get<SuccessConfig>(AchievementGoto.guideAchievementId);
|
| | | if(successConfig != null && successConfig.Type == 95)
|
| | | if (successConfig != null && successConfig.Type == 95)
|
| | | {
|
| | | playerPack.SetJumpToOneKeySell(_oneKeySellBtn.transform);
|
| | | }
|
| | |
|
| | | if(playerPack.IsActiveStarAttr())
|
| | | if (playerPack.IsActiveStarAttr())
|
| | | {
|
| | | ControlEffect(1,true);
|
| | | ControlEffect(1, true);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
| | |
|
| | | public void UpdateRoleEquip(int equipPlace)
|
| | | {
|
| | | for(int i = 0; i < equipPlaces.Count; i++)
|
| | | for (int i = 0; i < equipPlaces.Count; i++)
|
| | | {
|
| | | var placeCell = equipPlaces[i];
|
| | | if ((int)placeCell.equipType == equipPlace)
|
| | |
| | | }
|
| | |
|
| | |
|
| | | public void PutOnEquip(PackType type,int index, int Id)
|
| | | public void PutOnEquip(PackType type, int index, int Id)
|
| | | {
|
| | | //临时条件判断
|
| | | if (type != PackType.rptEquip) return;
|
| | |
| | | UpdateRoleEquip(index);
|
| | | }
|
| | |
|
| | | public void PutOffEquip(PackType type, int place,int id)
|
| | | public void PutOffEquip(PackType type, int place, int id)
|
| | | {
|
| | | if (type != PackType.rptEquip) return;
|
| | |
|
| | |
| | | {
|
| | | WindowCenter.Instance.Open<PlayerStarNumWin>();
|
| | | }
|
| | | |
| | |
|
| | | public void OnClickSortBtn()
|
| | | {
|
| | | modelInterface.SendPackResetQuest(PackType.rptItem);
|
| | |
| | | _timeDown.text = Language.Get("BagWin_SortCDbtn_Text_1", 5);
|
| | | _sortImage.SetSprite("BlackBtn");
|
| | | _sortBtn.enabled = false;
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | private void RefreshTime(float time)
|
| | | {
|
| | | |
| | |
|
| | | if (time <= 0)
|
| | | {
|
| | | _sortImage.SetSprite("SecondBtn1");
|
| | |
| | | _timeDown.text = Language.Get("BagWin_SortCDbtn_Text_1", time);
|
| | | _sortBtn.enabled = false;
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | public void OnFrenshBagInfo()
|
| | | {
|