| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 722e5e3d30096674e811f5bd191246a0 |
| | | folderAsset: yes |
| | | timeCreated: 1539228128 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 3e05761d690b75440a6be79207d0fb01 |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1d70ccd06161e0443b7a802ad94292f8 |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 71e878ac60c49ad4f964dd2dbc725739 |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: eed34091b0568664b9fb42f0634496c1 |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 32ceb8b7faf99f84a8b73ce53c5e3e4d |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 77f69c2b862d1704299a32d0d8eeb71e |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fa14960fa44b0d1439bab471a764e34f |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: d914565b65f8e8145988734c4d915834 |
| | | folderAsset: yes |
| | | timeCreated: 1547643019 |
| | | licenseType: Pro |
| | | DefaultImporter: |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | [SerializeField] Button m_Close; |
| | | |
| | | [SerializeField] FunctionButtonGroup m_Group; |
| | | [SerializeField] FunctionButton m_Equip; |
| | | [SerializeField] FunctionButton m_Star; |
| | | [SerializeField] FunctionButton m_Strengthen; |
| | | [SerializeField] FunctionButton m_Inlay; |
| | |
| | | protected override void AddListeners() |
| | | { |
| | | m_Close.SetListener(() => { WindowCenter.Instance.Close<EquipFrameWin>(); }); |
| | | m_Equip.AddListener(OpenEquipWin); |
| | | m_Star.AddListener(OpenStarWin); |
| | | m_Strengthen.AddListener(OpenStrengthenWin); |
| | | m_Inlay.AddListener(OpenInlayWin); |
| | |
| | | { |
| | | WindowCenter.Instance.Close(item); |
| | | } |
| | | } |
| | | |
| | | private void OpenEquipWin() |
| | | { |
| | | CloseSubWindows(); |
| | | WindowCenter.Instance.Open<RealmEquipWin>(); |
| | | } |
| | | |
| | | private void OpenStarWin() |
| | |
| | | { |
| | | public class EquipModel : Model |
| | | { |
| | | public int showedUnLockLevel |
| | | { |
| | | public int showedUnLockLevel { |
| | | get { return LocalSave.GetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSetUnLockHasShowed"), 1); } |
| | | set { LocalSave.SetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSetUnLockHasShowed"), value); } |
| | | } |
| | | |
| | | public int showedUnLockSlot |
| | | { |
| | | public int showedUnLockSlot { |
| | | get { return LocalSave.GetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSlotUnLockHasShowed"), 1); } |
| | | set { LocalSave.SetInt(StringUtility.Contact(PlayerDatas.Instance.baseData.PlayerID, "EquipSlotUnLockHasShowed"), value); } |
| | | } |
| | |
| | | return; |
| | | } |
| | | |
| | | var pak = new C032F_tagCRequestEquipShowHide(); |
| | | pak.EquipShowSwitch = (uint)level; |
| | | GameNetSystem.Instance.SendInfo(pak); |
| | | } |
| | | |
| | | //fabao |
| | | public EquipAppearance GetAppearance() |
| | | { |
| | | var level = PlayerDatas.Instance.baseData.equipShowSwitch / 10; |
| | | var isSuit = PlayerDatas.Instance.baseData.equipShowSwitch % 10 > 0; |
| | | |
| | | var appearance = GetAppearance((int)level); |
| | | appearance.isSuit = isSuit; |
| | | return appearance; |
| | | } |
| | | |
| | | public EquipAppearance GetAppearance(int level) |
| | |
| | | public int clothes; |
| | | public int weapon; |
| | | public int secondary; |
| | | public bool isSuit; |
| | | } |
| | | |
| | | } |
| | |
| | | [SerializeField] Button m_Select; |
| | | [SerializeField] ItemBehaviour m_Item; |
| | | [SerializeField] Text m_ItemName; |
| | | [SerializeField] Text m_Rate; |
| | | |
| | | string equip = string.Empty; |
| | | EquipStarModel model { get { return ModelCenter.Instance.GetModel<EquipStarModel>(); } } |
| | |
| | | |
| | | public class EquipStarMaterialCandidateWidget : MonoBehaviour |
| | | { |
| | | [SerializeField] Text m_Title; |
| | | [SerializeField] Button m_Close; |
| | | [SerializeField] RectTransform m_MaterialContainer; |
| | | [SerializeField] CyclicScroll m_MaterialCycScroll; |
| | | |
| | |
| | | [SerializeField] WayCell[] m_GetWays; |
| | | |
| | | EquipStarModel model { get { return ModelCenter.Instance.GetModel<EquipStarModel>(); } } |
| | | EquipModel equipModel { get { return ModelCenter.Instance.GetModel<EquipModel>(); } } |
| | | |
| | | public void Display(int level, int place, int starLevel) |
| | | { |
| | | var config = RealmConfig.Get(equipModel.GetEquipSet(level).realm); |
| | | m_Title.text = string.Format("点击选择装备"); |
| | | |
| | | var materials = model.GetMaterials(level, place, starLevel); |
| | | if (materials.IsNullOrEmpty()) |
| | | { |
| | |
| | | if (i < ways.Count) |
| | | { |
| | | behaviour.gameObject.SetActive(true); |
| | | var config = GetItemWaysConfig.Get(ways[i]); |
| | | behaviour.icon.SetSprite(config.Icon); |
| | | behaviour.wayName.text = config.Text; |
| | | behaviour.funcName.text = config.name; |
| | | var getWayConfig = GetItemWaysConfig.Get(ways[i]); |
| | | behaviour.icon.SetSprite(getWayConfig.Icon); |
| | | behaviour.wayName.text = getWayConfig.Text; |
| | | behaviour.funcName.text = getWayConfig.name; |
| | | behaviour.wayButton.SetListener(() => |
| | | { |
| | | WindowCenter.Instance.Close<EquipFrameWin>(); |
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().ClickGetWay(config.ID); |
| | | ModelCenter.Instance.GetModel<GetItemPathModel>().ClickGetWay(getWayConfig.ID); |
| | | }); |
| | | } |
| | | else |
| | |
| | | |
| | | m_MaterialCycScroll.Init(materials); |
| | | } |
| | | |
| | | m_Close.SetListener(Close); |
| | | } |
| | | |
| | | private void Close() |
| | | { |
| | | model.operateMaterialIndex.value = 0; |
| | | } |
| | | } |
| | | |
| | | } |
| | |
| | | |
| | | var targetEquip = model.selectedEquip.value; |
| | | var item = packModel.GetItemByGuid(targetEquip); |
| | | var starLevel = model.GetEquipStarLevel(item.config.lv, item.config.EquipPlace); |
| | | var starLevel = model.GetEquipStarLevel(item.config.LV, item.config.EquipPlace); |
| | | m_MaterialCandidateWidget.Display(item.config.LV, item.config.EquipPlace, starLevel); |
| | | |
| | | var position = Vector3.zero; |
| | |
| | | RegisterModel<NewYearFairylandCeremonyModel>();
|
| | | RegisterModel<JadeDynastyGemModel>();
|
| | | RegisterModel<LuckyTreasureModel>();
|
| | | // RegisterModel<EquipModel>();
|
| | | // RegisterModel<EquipStarModel>();
|
| | | RegisterModel<EquipModel>();
|
| | | RegisterModel<EquipStarModel>();
|
| | | RegisterModel<TreasureSkillModel>();
|
| | | inited = true;
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | RectTransform m_RectTransform;
|
| | | public RectTransform rectTransform {
|
| | | get {
|
| | | return m_RectTransform ?? (m_RectTransform = this.transform as RectTransform);
|
| | | }
|
| | | }
|
| | | public RectTransform rectTransform { get { return this.transform as RectTransform; } }
|
| | |
|
| | | private Vector2 maxOffset { get { return rectTransform.GetMaxReferencePosition(rectTransform); } }
|
| | | private Vector2 minOffset { get { return rectTransform.GetMinReferencePosition(rectTransform); } }
|
| | |
| | | normalTasks.Add(new ConfigInitTask("DailyQuestMixServerStateTimeConfig", () => { DailyQuestMixServerStateTimeConfig.Init(); }, () => { return DailyQuestMixServerStateTimeConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("CrossRealmPKDanAwardConfig", () => { CrossRealmPKDanAwardConfig.Init(); }, () => { return CrossRealmPKDanAwardConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("CrossServerOneVsOneRobotConfig", () => { CrossServerOneVsOneRobotConfig.Init(); }, () => { return CrossServerOneVsOneRobotConfig.inited; }));
|
| | | // normalTasks.Add(new ConfigInitTask("EquipPlaceMapConfig", () => { EquipPlaceMapConfig.Init(); }, () => { return EquipPlaceMapConfig.inited; }));
|
| | | // normalTasks.Add(new ConfigInitTask("EquipControlConfig", () => { EquipControlConfig.Init(); }, () => { return EquipControlConfig.inited; }));
|
| | | // normalTasks.Add(new ConfigInitTask("EquipSuitConfig", () => { EquipSuitConfig.Init(); }, () => { return EquipSuitConfig.inited; })); |
| | | normalTasks.Add(new ConfigInitTask("EquipPlaceMapConfig", () => { EquipPlaceMapConfig.Init(); }, () => { return EquipPlaceMapConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("EquipControlConfig", () => { EquipControlConfig.Init(); }, () => { return EquipControlConfig.inited; }));
|
| | | normalTasks.Add(new ConfigInitTask("EquipSuitConfig", () => { EquipSuitConfig.Init(); }, () => { return EquipSuitConfig.inited; })); |
| | | } |
| | | |
| | | static List<ConfigInitTask> doingTasks = new List<ConfigInitTask>(); |