private void SetUpButtons() { var decisionButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(DecisionButtonPrefabPath, m_decisionButtonRoot) .SetModel <ButtonModel>(decisionButtonModel); decisionButtonModel.OnClicked += () => { OnSelectSearchButton(); }; var searchButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(SearchButtonPrefabPath, m_searchButtonRoot) .SetModel <ButtonModel>(searchButtonModel); searchButtonModel.OnClicked += () => { OnSelectSearchButton(); }; // TODO : 演出を入れるならその場所に移動 decisionButtonModel.Appear(); decisionButtonModel.SkipAppearing(); searchButtonModel.Appear(); searchButtonModel.SkipAppearing(); }
private void SetUpButtons() { if (m_previousButtonView != null) { m_previousButtonView.Detach(); } if (m_nextButtonView != null) { m_nextButtonView.Detach(); } m_previousButton = new ButtonModel(); m_nextButton = new ButtonModel(); m_previousButtonView = ButtonView.Attach <ButtonView>(PreviousButtonPrefabPath, m_previousButtonRoot); m_previousButtonView.SetModel <ButtonModel>(m_previousButton); m_nextButtonView = ButtonView.Attach <ButtonView>(NextButtonPrefabPath, m_nextButtonRoot); m_nextButtonView.SetModel <ButtonModel>(m_nextButton); m_previousButton.OnClicked += () => { OnClickPreviousButton(); }; m_nextButton.OnClicked += () => { OnClickNextButton(); }; // TODO : 演出を入れるならその場所に移動 m_previousButton.Appear(); m_previousButton.SkipAppearing(); m_nextButton.Appear(); m_nextButton.SkipAppearing(); }
void SetUpButtons() { var executeButtonModel = new ButtonModel(); var returnButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(ExecuteButtonPrefabPath, m_executeButtonRoot) .SetModel <ButtonModel>(executeButtonModel); executeButtonModel.OnClicked += () => { OnClickExecButton(); }; ButtonView .Attach <ButtonView>(ReturnButtonPrefabPath, m_returnButtonRoot) .SetModel <ButtonModel>(returnButtonModel); returnButtonModel.OnClicked += () => { OnClickReturnButton(); }; // TODO : 演出を入れるならそこに移動 executeButtonModel.Appear(); executeButtonModel.SkipAppearing(); returnButtonModel.Appear(); returnButtonModel.SkipAppearing(); }
private void SetUpButtons() { var sortButtonModel = new ButtonModel(); m_SortButton = ButtonView.Attach <FriendListSortButton>(SortButtonPrefabPath, m_sortButtonRoot); m_SortButton.SetModel <ButtonModel>(sortButtonModel); sortButtonModel.OnClicked += () => { OnClickSortButton(); }; // TODO : 演出を入れるならその場所に移動 sortButtonModel.Appear(); sortButtonModel.SkipAppearing(); var reloadButtonModel = new ButtonModel(); m_ReloadButton = ButtonView.Attach <FriendReloadButton>(ReloadButtonPrefabPath, m_reloadButtonRoot); m_ReloadButton.SetReloadButtonModel(reloadButtonModel); reloadButtonModel.isEnabled = MainMenuParam.m_IsEnableQuestFriendReload; reloadButtonModel.OnClicked += () => { OnClickReloadButton(); }; reloadButtonModel.Appear(); reloadButtonModel.SkipAppearing(); }
private void SetUpButtons() { m_nextButton = new ButtonModel(); m_returnButton = new ButtonModel(); ButtonView .Attach <ButtonView>(NextButtonPrefabPath, m_nextButtonRoot) .SetModel <ButtonModel>(m_nextButton); ButtonView .Attach <ButtonView>(ReturnButtonPrefabPath, m_returnButtonRoot) .SetModel <ButtonModel>(m_returnButton); m_nextButton.OnClicked += () => { OnClickNextButton(); }; m_returnButton.OnClicked += () => { OnClickReturnButton(); }; // TODO : 演出を入れるならその場所に移動 m_nextButton.Appear(); m_nextButton.SkipAppearing(); m_returnButton.Appear(); m_returnButton.SkipAppearing(); }
void SetUpButtons() { var linkButtonModel = new ButtonModel(); m_LinkButton = ButtonView.Attach <PartySelectLinkButton>(LInkButtonPrefabPath, m_linkButtonRoot); m_LinkButton.SetModel <ButtonModel>(linkButtonModel); linkButtonModel.OnClicked += () => { OnClickLinkButton(); }; linkButtonModel.Appear(); linkButtonModel.SkipAppearing(); }
private void SetUpButtons() { var confirmButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(ConfirmButtonPrefabPath, m_confirmButtonRoot) .SetModel <ButtonModel>(confirmButtonModel); confirmButtonModel.OnClicked += () => { OnSelectButton(); }; // TODO : 演出を入れるならその場所に移動 confirmButtonModel.Appear(); confirmButtonModel.SkipAppearing(); }
private void SetUpButtons() { var sortButtonModel = new ButtonModel(); var fixButtonModel = new ButtonModel(); m_SortButton = ButtonView.Attach <UnitGridSortButton>(SortButtonPrefabPath, m_SortButtonRoot); m_SortButton.SetModel <ButtonModel>(sortButtonModel); sortButtonModel.OnClicked += () => { OnClickSortButton(); }; sortButtonModel.Appear(); sortButtonModel.SkipAppearing(); }
private void SetUpButtons() { var model = new ButtonModel(); ButtonView .Attach <ButtonView>(ButtonPrefabPath, m_buttonRoot) .SetModel <ButtonModel>(model); model.OnClicked += () => { OnSelectButton(); }; // TODO : 演出を入れるならそこに移動 model.Appear(); model.SkipAppearing(); }
public void SetUpButtons(bool isQuest) { if (m_isSetupButtons == true) { return; } m_isSetupButtons = true; var nextButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(NextButtonPrefabPath, m_nextButtonRoot) .SetModel <ButtonModel>(nextButtonModel); nextButtonModel.OnClicked += () => { OnClickNextButton(); }; m_MemberButtonModel = new ButtonModel(); m_MemberButton = ButtonView.Attach <PartySelectMemberButton>(MemberButtonPrefabPath, (isQuest ? m_questMemberButtonRoot : m_memberButtonRoot)); m_MemberButton.SetModel(m_MemberButtonModel); m_MemberButtonModel.OnClicked += () => { OnClickMemberSettingButton(); }; var autoPlayButtonModel = new ButtonModel(); ButtonView .Attach <ButtonView>(AutoPlayButtonPrefabPath, m_autoPlayButtonRoot) .SetModel <ButtonModel>(autoPlayButtonModel); autoPlayButtonModel.OnClicked += () => { OnClickAutoPlayButton(); }; // TODO : 演出を入れるならその場所に移す nextButtonModel.Appear(); nextButtonModel.SkipAppearing(); m_MemberButtonModel.Appear(); m_MemberButtonModel.SkipAppearing(); autoPlayButtonModel.Appear(); autoPlayButtonModel.SkipAppearing(); }
private void SetUpButtons() { if (FormDatas.Count <= 1) { return; } if (m_previousButtonView != null) { m_previousButtonView.Detach(); } if (m_nextButtonView != null) { m_nextButtonView.Detach(); } m_previousButton = new ButtonModel(); m_nextButton = new ButtonModel(); m_previousButtonView = ButtonView.Attach <ButtonView>(PreviousButtonPrefabPath, m_previousButtonRoot); m_previousButtonView.SetModel <ButtonModel>(m_previousButton); m_nextButtonView = ButtonView.Attach <ButtonView>(NextButtonPrefabPath, m_nextButtonRoot); m_nextButtonView.SetModel <ButtonModel>(m_nextButton); m_previousButton.OnClicked += () => { OnClickPreviousButton(); }; m_nextButton.OnClicked += () => { OnClickNextButton(); }; UnityUtil.SetObjectEnabledOnce(m_decisionButton.gameObject, true); // TODO : 演出を入れるならその場所に移動 m_previousButton.Appear(); m_previousButton.SkipAppearing(); m_nextButton.Appear(); m_nextButton.SkipAppearing(); }
public static FriendListSelectButton Attach(GameObject parent) { return(ButtonView.Attach <FriendListSelectButton>(SelectButtonPrefabPath, parent)); }
public static QuestDetailSwitchButton Attach(GameObject parent) { return(ButtonView.Attach <QuestDetailSwitchButton>(SwitchButtonPrefabPath, parent)); }
public static ChallengeBossButton Attach(GameObject parent) { return(ButtonView.Attach <ChallengeBossButton>(PrefabPath, parent)); }
public static HomeMenuCharacterChange Attach(GameObject parent) { return(ButtonView.Attach <HomeMenuCharacterChange>(PrefabPath, parent)); }
public static MainMenuHeaderMenuButton Attach(GameObject parent) { return(ButtonView.Attach <MainMenuHeaderMenuButton>(PrefabPath, parent)); }
public static TabButtonView Attach(string prefabPath, GameObject parent) { return(ButtonView.Attach <TabButtonView>(prefabPath, parent)); }
new public static T Attach <T>(string prefabPath, GameObject parent) where T : ButtonView { return(ButtonView.Attach <T>(prefabPath, parent)); }
public static AreaSelectSwitchButton Attach(GameObject parent) { return(ButtonView.Attach <AreaSelectSwitchButton>(PrefabPath, parent)); }
public static HomeMenuScoreInfo Attach(GameObject parent) { return(ButtonView.Attach <HomeMenuScoreInfo>(PrefabPath, parent)); }
public static HomeMenuPresent Attach(GameObject parent) { return(ButtonView.Attach <HomeMenuPresent>(PrefabPath, parent)); }
public static MainMenuFooterUnitsButton Attach(GameObject parent) { return(ButtonView.Attach <MainMenuFooterUnitsButton>(PrefabPath, parent)); }
public static RegionSwitchButton Attach(GameObject parent) { return(ButtonView.Attach <RegionSwitchButton>(PrefabPath, parent)); }