| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Thursday, September 07, 2017 |
| | | //-------------------------------------------------------- |
| | | using UnityEngine; |
| | | using System.Collections; |
| | | using UnityEngine.UI; |
| | | using System; |
| | | //底层按钮面板控制 |
| | | namespace Snxxz.UI { |
| | | |
| | | public class LowSettingTip:MonoBehaviour { |
| | | [SerializeField] Button _Role1Btn;//角色按钮 |
| | | [SerializeField] Button _SkillBtn;//技能按钮 |
| | | [SerializeField] Button _Pet1Btn;//宠物按钮 |
| | | [SerializeField] Button _Synthesis1Btn;//合成按钮 |
| | | // [SerializeField] Button _RealmBtn;//境界 |
| | | [SerializeField] Button _Rune1Btn;//符印按钮 |
| | | [SerializeField] Button _SetUp1Btn;//设置按钮 |
| | | |
| | | |
| | | [SerializeField] Button _RankingListBtn;//排行榜按钮 |
| | | [SerializeField] Button _Strengthen1Btn;//强化按钮 |
| | | [SerializeField] Button _Asuram1Btn;//仙盟按钮 |
| | | [SerializeField] Button m_BagualuBtn;//八卦炉 |
| | | |
| | | [SerializeField] Button m_TreasureSoulBtn;//觉醒按钮 |
| | | |
| | | public void Init() |
| | | { |
| | | _Role1Btn.onClick.AddListener(Role1Button); |
| | | _SkillBtn.onClick.AddListener(SkillButton); |
| | | _Strengthen1Btn.onClick.AddListener(Strengthen1Button); |
| | | _Asuram1Btn.onClick.AddListener(Asuram1Button); |
| | | _Synthesis1Btn.onClick.AddListener(Synthesis1Button); |
| | | _Rune1Btn.onClick.AddListener(Rune1Button); |
| | | _Pet1Btn.onClick.AddListener(Pet1Button); |
| | | //_RealmBtn.onClick.AddListener(OnRealmButton); |
| | | _SetUp1Btn.onClick.AddListener(SetUp1Btn); |
| | | _RankingListBtn.onClick.AddListener(RankingListButton); |
| | | m_BagualuBtn.AddListener(OnClickBagualuBtn); |
| | | m_TreasureSoulBtn.AddListener(OnClickTreasureSoul); |
| | | } |
| | | |
| | | public void UnInit() |
| | | { |
| | | _Role1Btn.onClick.RemoveAllListeners(); |
| | | _SkillBtn.onClick.RemoveAllListeners(); |
| | | _Strengthen1Btn.onClick.RemoveAllListeners(); |
| | | _Asuram1Btn.onClick.RemoveAllListeners(); |
| | | _Synthesis1Btn.onClick.RemoveAllListeners(); |
| | | _Rune1Btn.onClick.RemoveAllListeners(); |
| | | _Pet1Btn.onClick.RemoveAllListeners(); |
| | | // _RealmBtn.onClick.RemoveAllListeners(); |
| | | _SetUp1Btn.onClick.RemoveAllListeners(); |
| | | _RankingListBtn.onClick.RemoveAllListeners(); |
| | | m_BagualuBtn.RemoveAllListeners(); |
| | | } |
| | | |
| | | void Role1Button() |
| | | { |
| | | |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<RolePanel>(); |
| | | /* DesignDebug.Log("角色按钮")*/; |
| | | } |
| | | void OnClickBagualuBtn() |
| | | { |
| | | //DesignDebug.Log("德龙的八卦炉"); |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<BlastFurnaceWin>(); |
| | | } |
| | | |
| | | void SkillButton() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<SkillPanel>(); |
| | | |
| | | |
| | | //DesignDebug.Log("技能按钮"); |
| | | } |
| | | void OnClickTreasureSoul() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<TreasureSoulWin>(); |
| | | } |
| | | //private void OnRealmButton() |
| | | //{ |
| | | // WindowCenter.Instance.Open<RealmWin>(); |
| | | // WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | //} |
| | | |
| | | void Strengthen1Button() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<EquipReinforceWin>(); |
| | | //DesignDebug.Log("强化按钮"); |
| | | } |
| | | |
| | | |
| | | |
| | | void Asuram1Button() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | ModelCenter.Instance.GetModel<FairyModel>().GotoFairyWin(); |
| | | //WindowCenter.Instance.Open<UnionPanel>(false, PlayerDatas.Instance.fairyData.HasFairy ? 2 : 3); |
| | | |
| | | //DesignDebug.Log("仙盟按钮"); |
| | | } |
| | | |
| | | |
| | | |
| | | void Synthesis1Button() |
| | | { |
| | | //SysNotifyMgr.Instance.ShowTip("UnopenedFunction"); |
| | | //DesignDebug.Log("合成按钮"); |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<ComposeWin>(); |
| | | } |
| | | |
| | | void Rune1Button() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<RunePanel>(); |
| | | |
| | | //DesignDebug.Log("符印按钮"); |
| | | } |
| | | |
| | | void Pet1Button() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<PetWin>(); |
| | | |
| | | //DesignDebug.Log("宠物按钮"); |
| | | } |
| | | |
| | | |
| | | void SetUp1Btn() |
| | | { |
| | | WindowCenter.Instance.Close<MainInterfaceWin>(); |
| | | WindowCenter.Instance.Open<SettingUpWin>(); |
| | | //SysNotifyMgr.Instance.ShowTip("UnopenedFunction"); |
| | | //DesignDebug.Log("设置按钮"); |
| | | } |
| | | |
| | | void RankingListButton()//排行榜 |
| | | { |
| | | WindowCenter.Instance.Open<RankPanel>(); |
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | //--------------------------------------------------------
|
| | | // [Author]: 第二世界
|
| | | // [ Date ]: Thursday, September 07, 2017
|
| | | //--------------------------------------------------------
|
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using UnityEngine.UI;
|
| | | using System;
|
| | | //底层按钮面板控制
|
| | | namespace Snxxz.UI {
|
| | |
|
| | | public class LowSettingTip:MonoBehaviour {
|
| | | [SerializeField] Button _Role1Btn;//角色按钮
|
| | | [SerializeField] Button _SkillBtn;//技能按钮
|
| | | [SerializeField] Button _Pet1Btn;//宠物按钮
|
| | | [SerializeField] Button _Synthesis1Btn;//合成按钮
|
| | | // [SerializeField] Button _RealmBtn;//境界
|
| | | [SerializeField] Button _Rune1Btn;//符印按钮
|
| | | [SerializeField] Button _SetUp1Btn;//设置按钮
|
| | |
|
| | |
|
| | | [SerializeField] Button _RankingListBtn;//排行榜按钮
|
| | | [SerializeField] Button _Strengthen1Btn;//强化按钮
|
| | | [SerializeField] Button _Asuram1Btn;//仙盟按钮
|
| | | [SerializeField] Button m_BagualuBtn;//八卦炉
|
| | |
|
| | | [SerializeField] Button m_TreasureSoulBtn;//觉醒按钮
|
| | | [SerializeField] Button m_GodBeastBtn;//神兽按钮
|
| | | public void Init()
|
| | | {
|
| | | _Role1Btn.onClick.AddListener(Role1Button);
|
| | | _SkillBtn.onClick.AddListener(SkillButton);
|
| | | _Strengthen1Btn.onClick.AddListener(Strengthen1Button);
|
| | | _Asuram1Btn.onClick.AddListener(Asuram1Button);
|
| | | _Synthesis1Btn.onClick.AddListener(Synthesis1Button);
|
| | | _Rune1Btn.onClick.AddListener(Rune1Button);
|
| | | _Pet1Btn.onClick.AddListener(Pet1Button);
|
| | | //_RealmBtn.onClick.AddListener(OnRealmButton);
|
| | | _SetUp1Btn.onClick.AddListener(SetUp1Btn);
|
| | | _RankingListBtn.onClick.AddListener(RankingListButton);
|
| | | m_BagualuBtn.AddListener(OnClickBagualuBtn);
|
| | | m_TreasureSoulBtn.AddListener(OnClickTreasureSoul);
|
| | | m_GodBeastBtn.AddListener(GodBeastBtn);
|
| | | }
|
| | |
|
| | | public void UnInit()
|
| | | {
|
| | | _Role1Btn.onClick.RemoveAllListeners();
|
| | | _SkillBtn.onClick.RemoveAllListeners();
|
| | | _Strengthen1Btn.onClick.RemoveAllListeners();
|
| | | _Asuram1Btn.onClick.RemoveAllListeners();
|
| | | _Synthesis1Btn.onClick.RemoveAllListeners();
|
| | | _Rune1Btn.onClick.RemoveAllListeners();
|
| | | _Pet1Btn.onClick.RemoveAllListeners();
|
| | | // _RealmBtn.onClick.RemoveAllListeners();
|
| | | _SetUp1Btn.onClick.RemoveAllListeners();
|
| | | _RankingListBtn.onClick.RemoveAllListeners();
|
| | | m_BagualuBtn.RemoveAllListeners();
|
| | | m_GodBeastBtn.RemoveAllListeners();
|
| | | }
|
| | |
|
| | | void Role1Button()
|
| | | {
|
| | | |
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<RolePanel>();
|
| | | /* DesignDebug.Log("角色按钮")*/;
|
| | | }
|
| | | void OnClickBagualuBtn()
|
| | | {
|
| | | //DesignDebug.Log("德龙的八卦炉");
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<BlastFurnaceWin>();
|
| | | }
|
| | |
|
| | | void SkillButton()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SkillPanel>();
|
| | | |
| | |
|
| | | //DesignDebug.Log("技能按钮");
|
| | | }
|
| | | void OnClickTreasureSoul()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<TreasureSoulWin>();
|
| | | }
|
| | | private void GodBeastBtn()
|
| | | {
|
| | | SysNotifyMgr.Instance.ShowTip("FuncNextVersion");//信息提示
|
| | | return;
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<DogzWin>();
|
| | | }
|
| | |
|
| | | void Strengthen1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<EquipReinforceWin>();
|
| | | //DesignDebug.Log("强化按钮");
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | void Asuram1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | ModelCenter.Instance.GetModel<FairyModel>().GotoFairyWin();
|
| | | //WindowCenter.Instance.Open<UnionPanel>(false, PlayerDatas.Instance.fairyData.HasFairy ? 2 : 3);
|
| | |
|
| | | //DesignDebug.Log("仙盟按钮");
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | void Synthesis1Button()
|
| | | {
|
| | | //SysNotifyMgr.Instance.ShowTip("UnopenedFunction");
|
| | | //DesignDebug.Log("合成按钮");
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<ComposeWin>();
|
| | | }
|
| | |
|
| | | void Rune1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<RunePanel>();
|
| | | |
| | | //DesignDebug.Log("符印按钮");
|
| | | }
|
| | |
|
| | | void Pet1Button()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<PetWin>();
|
| | | |
| | | //DesignDebug.Log("宠物按钮");
|
| | | }
|
| | |
|
| | |
|
| | | void SetUp1Btn()
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SettingUpWin>();
|
| | | //SysNotifyMgr.Instance.ShowTip("UnopenedFunction");
|
| | | //DesignDebug.Log("设置按钮");
|
| | | }
|
| | |
|
| | | void RankingListButton()//排行榜
|
| | | {
|
| | | WindowCenter.Instance.Open<RankPanel>();
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|