public void CheckOnClick(Vector3 position, string layerName) { if (!GameController.instance.IsGameSceneEnabled) { return; } int layerTouchable = LayerMask.GetMask(layerName); RaycastHit hit; Ray ray = Camera.main.ScreenPointToRay(position); if (Physics.Raycast(ray, out hit, Mathf.Infinity, layerTouchable)) { if (hit.transform.GetComponent <ITouchable>() != null && GameController.instance.IsGameSceneEnabled) { ITouchable objectTouched = hit.transform.GetComponent <ITouchable>(); HelpPanel panel = GameObject.FindObjectOfType <HelpPanel>(); if (!panel.IsPointerOverPanel()) { panel.SetPanel(objectTouched); } } else if (hit.transform.GetComponent <IMultitouchable>() != null && GameController.instance.IsGameSceneEnabled) { IMultitouchable multitouchable = hit.transform.GetComponent <IMultitouchable>(); multitouchable.MultiTouch(); } else { return; } } }
public void ShowMainMenu() { LoadMenuLevel(); GamePanel.SetActive(false); PauseMenu.SetActive(false); HelpPanel.SetActive(false); LevelPickerPanel.SetActive(false); LevelPickerContainerContainer.SetActive(false); //LevelPickerContainerFunContainer.SetActive(false); //LevelPickerContainerCommunityContainer.SetActive(false); LevelFailed.SetActive(false); LevelComplete.SetActive(false); MainMenu.SetActive(true); SetCameraPosition(true); SetCameraTouchX(false); if (MainMenu.activeSelf) { //if (!EventSystem.current.alreadySelecting) EventSystem.current.SetSelectedGameObject(PlayButton); } _canStartMoving = true; }
void BuildComponents( PlasticGUIClient plasticClient, bool isGluonMode, EditorWindow plasticWindow) { mHelpPanel = new HelpPanel(plasticWindow); mAdvancedDropdownMenu = new GenericMenu(); mAdvancedDropdownMenu.AddItem(new GUIContent( PlasticLocalization.GetString(PlasticLocalization.Name.UndoUnchangedButton)), false, () => { }); mSearchField = new SearchField(); mSearchField.downOrUpArrowKeyPressed += SearchField_OnDownOrUpArrowKeyPressed; PendingChangesTreeHeaderState headerState = PendingChangesTreeHeaderState.GetDefault(isGluonMode); TreeHeaderSettings.Load(headerState, UnityConstants.PENDING_CHANGES_TABLE_SETTINGS_NAME, (int)PendingChangesTreeColumn.Item, true); mPendingChangesTreeView = new PendingChangesTreeView( mWkInfo, mIsGluonMode, headerState, PendingChangesTreeHeaderState.GetColumnNames(), new PendingChangesViewMenu(this, this, this, this), mAssetStatusCache); mPendingChangesTreeView.Reload(); mMergeLinksListView = new MergeLinksListView(); mMergeLinksListView.Reload(); }
private void ShowHelpTextBlock_OnPreviewMouseDown(object sender, MouseButtonEventArgs e) { var duration = new Duration(TimeSpan.FromSeconds(0.150)); var newHeight = HelpPanel.Height > 0 ? 0 : +17; HelpPanel.BeginAnimation(HeightProperty, new DoubleAnimation(HelpPanel.Height, newHeight, duration)); }
void Awake() { instance = this; RelationType = transform.Find("Scroll View/Viewport/Content/Relation").GetComponent <Button>(); ChamberType = transform.Find("Scroll View/Viewport/Content/Type1").GetComponent <Button>(); InvestmentType = transform.Find("Scroll View/Viewport/Content/Type2").GetComponent <Button>(); AssetType = transform.Find("Scroll View/Viewport/Content/Type3").GetComponent <Button>(); RAnswer = transform.Find("Scroll View/Viewport/Content/RAnswer").gameObject; TranRo = RelationType.transform.Find("Image"); TranType1 = ChamberType.transform.Find("Image"); TranType2 = InvestmentType.transform.Find("Image"); TranType3 = AssetType.transform.Find("Image"); for (int i = 0; i < TypeOneQ.Length; i++) { TypeOneQ[i] = transform.Find("Scroll View/Viewport/Content/OQuestion" + (i + 1)).gameObject; TypeOneA[i] = transform.Find("Scroll View/Viewport/Content/OAnswer" + (i + 1)).gameObject; TypeOneQBtn[i] = TypeOneQ[i].GetComponent <Button>(); tranTOne[i] = TypeOneQ[i].transform.Find("Image"); } for (int i = 0; i < TypeTwoQ.Length; i++) { TypeTwoQ[i] = transform.Find("Scroll View/Viewport/Content/TQuestion" + (i + 1)).gameObject; TypeTwoA[i] = transform.Find("Scroll View/Viewport/Content/TAnswer" + (i + 1)).gameObject; TypeTwoQBtn[i] = TypeTwoQ[i].GetComponent <Button>(); traTTwo[i] = TypeTwoQ[i].transform.Find("Image"); } for (int i = 0; i < TypeThreeQ.Length; i++) { TypeThreeQ[i] = transform.Find("Scroll View/Viewport/Content/HQuestion" + (i + 1)).gameObject; TypeThreeA[i] = transform.Find("Scroll View/Viewport/Content/HAnswer" + (i + 1)).gameObject; TypeThreeQBtn[i] = TypeThreeQ[i].GetComponent <Button>(); tranTThree[i] = TypeThreeQ[i].transform.Find("Image"); } RelationType.onClick.AddListener(ClickRelationType); ChamberType.onClick.AddListener(ClickTypeOne); InvestmentType.onClick.AddListener(ClickTypeTwo); AssetType.onClick.AddListener(ClickTypeThree); TypeOneQBtn[0].onClick.AddListener(TypeOneQ1); TypeOneQBtn[1].onClick.AddListener(TypeOneQ2); TypeOneQBtn[2].onClick.AddListener(TypeOneQ3); TypeOneQBtn[3].onClick.AddListener(TypeOneQ4); TypeOneQBtn[4].onClick.AddListener(TypeOneQ5); TypeOneQBtn[5].onClick.AddListener(TypeOneQ6); TypeTwoQBtn[0].onClick.AddListener(TypeTwoQ1); TypeTwoQBtn[1].onClick.AddListener(TypeTwoQ2); TypeTwoQBtn[2].onClick.AddListener(TypeTwoQ3); TypeTwoQBtn[3].onClick.AddListener(TypeTwoQ4); TypeTwoQBtn[4].onClick.AddListener(TypeTwoQ5); TypeThreeQBtn[0].onClick.AddListener(TypeThreeQ1); TypeThreeQBtn[1].onClick.AddListener(TypeThreeQ2); TypeThreeQBtn[2].onClick.AddListener(TypeThreeQ3); TypeThreeQBtn[3].onClick.AddListener(TypeThreeQ4); TypeThreeQBtn[4].onClick.AddListener(TypeThreeQ5); TypeThreeQBtn[5].onClick.AddListener(TypeThreeQ6); TypeThreeQBtn[6].onClick.AddListener(TypeThreeQ7); TypeThreeQBtn[7].onClick.AddListener(TypeThreeQ8); TypeThreeQBtn[8].onClick.AddListener(TypeThreeQ9); }
// Token: 0x0600029D RID: 669 RVA: 0x0000A338 File Offset: 0x00008738 public void PushComplete() { if (!SuperGameMaster.GetStandby()) { if (this.tmpBagList[0] != -1) { if (!SuperGameMaster.tutorial.ClockOk()) { if (!base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().BagCompleteCursor.GetComponentInChildren <Image>().enabled) { HelpPanel help = base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("おべんとうに「えびづるのスコーン」\nおまもりに「よつ葉」\nを選んで<color=#61a8c7><b>かんりょう</b></color>ボタンを\n押してください"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); return; } base.GetComponentInParent <BagDeskPanels>().CloseCheck(); } SuperGameMaster.SetStandby(true); SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Enter"]); } else { if (!SuperGameMaster.tutorial.ClockOk()) { HelpPanel help = base.GetComponentInParent <BagDeskPanels>().GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("おべんとうに「えびづるのスコーン」\nおまもりに「よつ葉」\nを選んで<color=#61a8c7><b>かんりょう</b></color>ボタンを\n押してください"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); return; } base.GetComponentInParent <FlickCheaker>().stopFlick(true); ConfilmPanel confilm = base.GetComponentInParent <BagDeskPanels>().ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel("おべんとうを支度してください"); confilm.ResetOnClick_Screen(); confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Screen(delegate { this.GetComponentInParent <FlickCheaker>().stopFlick(false); }); } } else { SuperGameMaster.SetStandby(false); SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]); } this.ChangeBtnEnable(SuperGameMaster.GetStandby()); }
public EnemyIntroBtn(int id, GameObject root, HelpPanel panel) { this.id = id; this.root = root; this.panel = panel; enemyBtn = root.GetComponent <Button>(); enemyBtn.image.sprite = FactoryMgr.Instance.GetSprite(EnemyInfoMgr.Instance.enemyInfoList[id].helpSprite); enemyBtn.onClick.AddListener(BtnClick); }
public override void TouchObject(HelpPanel panel) { base.TouchObject(panel); this.panel.resourceImage.gameObject.SetActive(true); this.panel.resourcetxt.gameObject.SetActive(true); this.panel.timetxt.gameObject.SetActive(false); this.panel.resourcetxt.text = GameController.instance.player.skills.enhancementCounter.ToString(); this.panel.timetxt.text = "Enhancements per level"; this.panel.Nametxt.text = description.Name + " - " + lvl; }
public override void TouchObject(HelpPanel panel) { base.TouchObject(panel); this.panel.resourceImage.gameObject.SetActive(true); this.panel.resourcetxt.gameObject.SetActive(true); this.panel.timetxt.gameObject.SetActive(false); this.panel.resourcetxt.text = GameController.instance.player.skills.toxicityReducer.ToString(); this.panel.timetxt.text = string.Empty; this.panel.Nametxt.text = description.Name + " - " + lvl; }
public override void TouchObject(HelpPanel panel) { base.TouchObject(panel); this.panel.resourceImage.gameObject.SetActive(true); this.panel.resourcetxt.gameObject.SetActive(true); this.panel.timetxt.gameObject.SetActive(true); this.panel.resourcetxt.text = resourcePerTime.ToString(); this.panel.timetxt.text = timeInWork.ToString(); this.panel.Nametxt.text = description.Name + " - " + lvl; }
public virtual void TouchObject(HelpPanel panel) { if (!GameController.instance.IsGameSceneEnabled) { return; } this.panel = panel; ResetPanel(); panel.Nametxt.text = description.Name; panel.resourceImage.sprite = resource; }
public void HideMainMenu() { GamePanel.SetActive(false); PauseMenu.SetActive(false); MainMenu.SetActive(false); HelpPanel.SetActive(false); LevelPickerPanel.SetActive(false); LevelFailed.SetActive(false); LevelComplete.SetActive(false); SetCameraPosition(false); }
public void HelpPanelOpen() { if (HelpPanel.activeSelf == false) { HelpPanel.SetActive(true); helpBtn.GetComponentInChildren <TextMeshProUGUI>().text = "Close"; } else { HelpPanel.SetActive(false); helpBtn.GetComponentInChildren <TextMeshProUGUI>().text = "Help"; } }
public void Setup() { _ui = MockGame.Menu; _main = _ui.MainOptions; _help = _ui.HelpOptions; _settings = _ui.SettingsOptions; _activePanels = _ui.ActivePanels; _selector = _ui.Player; _newGame = _ui.NewGameOptions; _newGameAdvanced = _ui.NewGameAdvancedOptions; //Panels = new MenuPanel[] { main, help, settings, newGame, newGameAdvanced }; }
private void DisplayHelp() { var helpPanel = new HelpPanel(screen); helpPanel.RedrawContents(); screen.Render(helpPanel.Zone); Console.ReadKey(true); screen.Clear(); DrawInterface(); RenderLevel(level); }
// Token: 0x060002F1 RID: 753 RVA: 0x0000DCF8 File Offset: 0x0000C0F8 public void GetAchiveDisp() { if (this.getAchiIdList.Count > 0) { int num = this.getAchiIdList[0]; AchieveDataFormat achieveDataFormat = SuperGameMaster.sDataBase.get_AchieveDB_forId(num); if (achieveDataFormat == null) { return; } ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel("称号「" + achieveDataFormat.name + "」\nを獲得しました"); confilm.ResetOnClick_Screen(); confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Screen(delegate { this.GetAchiveDisp(); }); SuperGameMaster.Set_GetAchieve(num); this.getAchiIdList.RemoveAt(0); base.GetComponentInParent <UIMaster>().OnSave(); if (num == 0) { HelpPanel help = base.GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>(); help.OpenPanel(string.Concat(new string[] { "一定の条件を満たすと\n", SuperGameMaster.GetFrogName(), "の<color=#61a8c7><b>称号</b></color>を獲得します\n称号はかっこいいものから\nちょっと変わったものまで\nさまざまなものがあります\n称号は", SuperGameMaster.GetFrogName(), "をタップして\nセットすることができます" })); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.gameObject.SetActive(false); confilm.SetOnClick_Screen(delegate { help.gameObject.SetActive(true); }); } } }
/// <summary> /// Help Button On Click handler. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HelpButton_Click(object sender, EventArgs e) { // Keep focus on game this.ActiveControl = null; HelpButton.TabStop = false; // Enable or disable panel if (!HelpPanel.Visible) { HelpPanel.Show(); } else { HelpPanel.Hide(); } }
// Token: 0x06000571 RID: 1393 RVA: 0x00023428 File Offset: 0x00021828 public override void UI_Start() { this.BackFunc(); this.RaffleUI.GetComponent <RaffelPanel>().Init(); if (SuperGameMaster.GetTmpRaffleResult() != -1) { this.freezeObject(true); this.blockUI(true, new Color(0f, 0f, 0f, 0f)); ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel("前回のふくびきの景品を\n受け取っていません"); confilm.ResetOnClick_Screen(); confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Screen(delegate { this.RaffleUI.GetComponent <RaffelPanel>().SetTmpResult(); }); confilm.SetOnClick_Screen(delegate { this.RaffleUI.GetComponent <RaffelPanel>().CloseResultButton(); }); } if (!SuperGameMaster.GetFirstFlag(Flag.FIRST_RAFFLE_ROLL)) { SuperGameMaster.SetFirstFlag(Flag.FIRST_RAFFLE_ROLL); this.freezeObject(true); this.blockUI(true, new Color(0f, 0f, 0f, 0f)); HelpPanel help = this.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("ふくびき券5枚で\n1回抽選に挑戦ができます\n景品はここでしか手に入らない\n旅に役立つものものばかり\nぜひ挑戦してみてください"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { this.freezeObject(false); }); help.SetOnClick_Screen(delegate { this.blockUI(false, new Color(0f, 0f, 0f, 0f)); }); return; } }
// Token: 0x06000290 RID: 656 RVA: 0x00009D94 File Offset: 0x00008194 public void CheckDeskHelp() { if (!SuperGameMaster.GetFirstFlag(Flag.FIRST_SHOW_DESK)) { SuperGameMaster.SetFirstFlag(Flag.FIRST_SHOW_DESK); base.GetComponent <FlickCheaker>().stopFlick(true); HelpPanel help = base.GetComponentInParent <UIMaster_MainIn>().HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("<color=#61a8c7><b>つくえ</b></color>にしたくをしてあげると\n帰ってくるタイミングがあわなくても\n" + SuperGameMaster.GetFrogName() + "は自分でもちものを\n選んで旅立っていきます\nこまめにつくえにしたくを\nしておいてあげましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { this.GetComponent <FlickCheaker>().stopFlick(false); }); } }
// Start is called before the first frame update void Start() { //Debug.Log("Options Panel Start:"+name); aboutPanelGo = transform.Find("AboutPanel").gameObject; aboutPanel = aboutPanelGo.GetComponent <AboutPanel>(); visualPanelGo = transform.Find("VisualsPanel").gameObject; visualsPanel = visualPanelGo.GetComponent <VisualsPanel>(); mapFitPanelGo = transform.Find("MapFitPanel").gameObject; mapFitPanel = mapFitPanelGo.GetComponent <MapFitPanel>(); framePanelGo = transform.Find("FramePanel").gameObject; framePanel = framePanelGo.GetComponent <FramePanel>(); b19PanelGo = transform.Find("B19Panel").gameObject; b19Panel = b19PanelGo.GetComponent <B19Panel>(); generalPanelGo = transform.Find("GeneralPanel").gameObject; generalPanel = generalPanelGo.GetComponent <GeneralPanel>(); helpPanelGo = transform.Find("HelpPanel").gameObject; helpPanel = helpPanelGo.GetComponent <HelpPanel>(); var vgo = transform.Find("VisualsToggle").gameObject; visualToggle = vgo.GetComponent <Toggle>(); var mgo = transform.Find("MapFitToggle").gameObject; mapfitToggle = mgo.GetComponent <Toggle>(); var fgo = transform.Find("FrameToggle").gameObject; frameToggle = fgo.GetComponent <Toggle>(); var bgo = transform.Find("B19Toggle").gameObject; b19Toggle = bgo.GetComponent <Toggle>(); var ggo = transform.Find("GeneralToggle").gameObject; generalToggle = ggo.GetComponent <Toggle>(); var hgo = transform.Find("HelpToggle").gameObject; helpToggle = hgo.GetComponent <Toggle>(); var ago = transform.Find("AboutToggle").gameObject; aboutToggle = ago.GetComponent <Toggle>(); togGroup = GetComponent <ToggleGroup>(); togGroup.allowSwitchOff = true; // otherwise it does not save state correctly when we turn off the panel SyncState(); }
/// <summary> /// Constructor for the View. /// </summary> /// <param name="ctl"></param> public GameView(GameController ctl) { // Initalize InitializeComponent(); FormClosed += OnExit; theController = ctl; theWorld = theController.GetWorld(); HelpPanel.Hide(); // Register handlers for the controller's events theController.Error += ShowError; theController.UpdateArrived += OnFrame; theController.Connected += HandleConnected; // Set up key handlers this.KeyDown += HandleKeyDown; this.KeyUp += HandleKeyUp; }
public ExplodeView(IGlobal global) { m_Global = global; //Pass m_Global to DebugMethod class so it can print to the listener DebugMethods.SetGlobal(m_Global); //Create UI elements: m_MaxForm = new MaxFormEx { Size = new Size(302, 500), Text = "Explode", BackColor = Color.FromArgb(68, 68, 68), FormBorderStyle = FormBorderStyle.None }; var treeviewManager = new TreeviewManager(); //Create Controller m_Controller = new Controller(this, treeviewManager); //give treeview a controller treeviewManager.Controller = m_Controller; //Hook up event m_Controller.ExplodeChanged += m_Controller_ExplodeChanged; m_Controller.DebugTextChanged += m_Controller_DebugTextChanged; //Create UI m_HelpPanel = new HelpPanel { Location = new Point(1, 306), }; var addButton = new ButtonLabel { Size = new Size(125, 25), Location = new Point(10, 327), BackColor = Color.FromArgb(90, 90, 90), ForeColor = Color.FromArgb(220, 220, 220), Text = "Add LP", TextAlign = ContentAlignment.MiddleCenter, MouseDownProperty = false }; addButton.MouseUp += addButton_MouseUp; var addHPButton = new ButtonLabel { Size = new Size(125, 25), Location = new Point(151, 327), BackColor = Color.FromArgb(90, 90, 90), ForeColor = Color.FromArgb(220, 220, 220), Text = "Add HP", TextAlign = ContentAlignment.MiddleCenter, MouseDownProperty = false }; addHPButton.MouseUp += addHPButton_MouseUp; var explodeButton = new ButtonLabel { Size = new Size(125, 25), Location = new Point(10, 377), BackColor = Color.FromArgb(90, 90, 90), ForeColor = Color.FromArgb(220, 220, 220), Text = "Explode", TextAlign = ContentAlignment.MiddleCenter, MouseDownProperty = false }; explodeButton.MouseUp += explodeButton_MouseUp; var exportButton = new ButtonLabel { Size = new Size(125, 25), Location = new Point(151, 377), BackColor = Color.FromArgb(90, 90, 90), ForeColor = Color.FromArgb(220, 220, 220), Text = "Export", TextAlign = ContentAlignment.MiddleCenter, MouseDownProperty = false }; exportButton.MouseUp += exportButton_MouseUp; m_ExplodeAndExportButton = new ButtonLabel { Size = new Size(266, 25), Location = new Point(10, 409), BackColor = Color.FromArgb(90, 90, 90), ForeColor = Color.FromArgb(220, 220, 220), Text = "Explode & Export", TextAlign = ContentAlignment.MiddleCenter, MouseDownProperty = false }; m_ExplodeAndExportButton.MouseUp += explodeAndExportButton_MouseUp; //Add Controls m_MaxForm.Controls.Add(treeviewManager); m_MaxForm.Controls.Add(m_HelpPanel); m_MaxForm.Controls.Add(addButton); m_MaxForm.Controls.Add(addHPButton); m_MaxForm.Controls.Add(explodeButton); m_MaxForm.Controls.Add(exportButton); m_MaxForm.Controls.Add(m_ExplodeAndExportButton); //Show form IntPtr maxHandle = global.COREInterface.MAXHWnd; m_MaxForm.Show(new ArbitraryWindow(maxHandle)); #if DEBUG Form debugForm = new Form(); debugForm.Size = new Size(300, 300); debugForm.Show(new ArbitraryWindow(maxHandle)); debugForm.Closing += debugForm_Closing; Button button = new Button(); button.Size = new Size(200, 25); button.Location = new Point(10, 10); button.Text = "Create BB for Parent Node"; button.Click += button_Click; Button movebutton = new Button(); movebutton.Size = new Size(200, 25); movebutton.Location = new Point(10, 90); movebutton.Text = "movesomething"; movebutton.Click += movebutton_Click; Button getVertInfoFromID = new Button(); getVertInfoFromID.Size = new Size(200, 25); getVertInfoFromID.Location = new Point(10, 50); getVertInfoFromID.Text = "Close"; getVertInfoFromID.Click += getVertInfoFromID_Click; debugForm.Controls.Add(button); debugForm.Controls.Add(getVertInfoFromID); debugForm.Controls.Add(movebutton); #endif }
// Token: 0x06000754 RID: 1876 RVA: 0x00031A3C File Offset: 0x0002FE3C public void UpdateTutorial() { if (this.TutorialComplete()) { return; } if (this.SetScene == Scenes.NONE) { return; } Scenes setScene = this.SetScene; if (setScene != Scenes.MainOut) { if (setScene != Scenes.MainIn) { if (setScene == Scenes.Shop) { UIMaster_Shop UI_Cmp = this.UI.GetComponent <UIMaster_Shop>(); switch (this.tutorialStep) { case Step.d1_SH_BuyItem: { int selectShopIndex = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex(); if (selectShopIndex != -1 && !UI_Cmp.HelpUI.activeSelf && selectShopIndex != 0) { UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor(); UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex(); UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero); UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(true); UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("はじめにお手頃な\n「えびづるのスコーン」を\n買ってみましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { UI_Cmp.blockUI(false); }); help.SetOnClick_Screen(delegate { UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(false); }); } if (!UI_Cmp.BackFunc_GetStopFlag()) { UI_Cmp.BackFunc_Stop(true); } if (SuperGameMaster.FindItemStock(0) >= 1) { this.StepTutorial(true); } break; } case Step.d2_SH_GoHome: { int selectShopIndex2 = UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().GetSelectShopIndex(); if (selectShopIndex2 != -1 && !UI_Cmp.HelpUI.activeSelf) { UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().unsetCursor(); UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().ResetSelectShopIndex(); UI_Cmp.DisplayPanel.GetComponent <DisplayPanel>().SetInfoPanelData(-1, Vector3.zero); } break; } } } } else { UIMaster_MainIn component = this.UI.GetComponent <UIMaster_MainIn>(); ObjectMaster_MainIn component2 = this.Obj.GetComponent <ObjectMaster_MainIn>(); if (component2.Frog.activeSelf) { component2.Frog.SetActive(false); } if (component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.activeSelf) { component.BagDeskUI.GetComponent <BagDeskPanels>().EmptyIcon.SetActive(false); } Step step = this.tutorialStep; if (step != Step.e0_MI_OpenBag) { if (step != Step.e1_MI_ReStart) { if (step == Step.b0_MI_GoOut) { this.seTime += Time.deltaTime; if (this.seTime > 2f && this.seTime - Time.deltaTime < 2f) { HelpPanel component3 = component.HelpUI.GetComponent <HelpPanel>(); if (!component3.HelpWindow.activeSelf) { component3.ClosePanel(); component3.ActionStock_Next(); } } } } } else { if (component2.Frog.activeSelf) { component2.Frog.SetActive(false); } if (component.BagDeskUI.activeSelf) { component.BagDeskUI.GetComponent <FlickCheaker>().stopFlick(true); if (!component.BagDeskUI.GetComponent <BagDeskPanels>().BagPanelUI.GetComponent <BagPanel>().ItemView.activeSelf) { if (!SuperGameMaster.GetStandby()) { List <int> tmpListAll = component.BagDeskUI.GetComponent <BagDeskPanels>().Get_tmpListAll(); if (tmpListAll[0] == 0 && tmpListAll[1] == 1000) { component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = true; } else { component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false; } } else { component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false; } } else { component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false; } } else if (!component.BagMarkUI.activeSelf && !component.HelpUI.activeSelf) { component.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false; List <int> bagList = SuperGameMaster.GetBagList(); if (bagList[0] == 0 && bagList[1] == 1000 && SuperGameMaster.GetStandby()) { SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return); SuperGameMaster.travel.GoTravel(536870911, 1); int index = SuperGameMaster.evtMgr.search_TimerEvtIndex_forType(TimerEvent.Type.BackHome); EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_TimerEvt(index); List <int> list = new List <int>(eventTimerFormat.evtValue); if (list.Count >= 6 && list[4] >= 10000) { list[4] = 3009; } SuperGameMaster.evtMgr.set_TimerEvt_forId(eventTimerFormat.id, list); SuperGameMaster.evtMgr.SetTime_TimerEvt(TimerEvent.Type.GoTravel, 0, 536870911); SuperGameMaster.SetStandby(true); SuperGameMaster.SetLastTravelTime(536870911); SuperGameMaster.SetStandbyWait(0); component.BagCompleteCursor.SetActive(false); this.StepTutorial(true); } else { SuperGameMaster.saveData.lastTravelTime = SuperGameMaster.saveData.restTime; SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.GoTravel); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.BackHome); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Picture); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Return); component.blockUI(false); component.TutorialUBlock(); component.BagMarkUI.SetActive(true); } } } } } else { UIMaster_MainOut UI_Cmp = this.UI.GetComponent <UIMaster_MainOut>(); ObjectMaster_MainOut component4 = this.Obj.GetComponent <ObjectMaster_MainOut>(); Step step2 = this.tutorialStep; switch (step2 + 1) { case Step.a0_MO_FrogTap: this.seTime += Time.deltaTime; if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]); } if (Input.GetKeyDown(KeyCode.Escape) && !UI_Cmp.ConfilmUI.activeSelf) { if (!UI_Cmp.Title_StartUI.activeSelf) { if (UI_Cmp.WebViewUI.activeSelf) { UI_Cmp.WebViewUI.GetComponent <WebViewPanel>().ClosePanel(); } else { UI_Cmp.Title_StartUI.SetActive(true); UI_Cmp.Title_PolicyUI.SetActive(false); } SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]); } else { ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel_YesNo("アプリケーションを終了しますか?"); confilm.ResetOnClick_Yes(); confilm.SetOnClick_Yes(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Yes(delegate { SuperGameMaster.SaveData(); }); confilm.SetOnClick_Yes(delegate { Application.Quit(); }); confilm.ResetOnClick_No(); confilm.SetOnClick_No(delegate { confilm.ClosePanel(); }); } } break; case Step.a1_MO_FrogName: this.seTime += Time.deltaTime; if (this.seTime > 0f && this.seTime - Time.deltaTime < 0f) { this.seTime = 0f; } this.seTime2 += Time.deltaTime; if (this.seTime2 > 4f) { component4.Call_FlickMove(new Vector2(Mathf.Clamp((1.92f - Camera.main.transform.localPosition.x) / 60f, 1E-05f, 0.1f), 0f)); } if (this.seTime2 > 7f) { if (Input.GetMouseButtonDown(0)) { Vector2 point = Camera.main.ScreenToWorldPoint(Input.mousePosition); if (component4.Frog.GetComponent <Collider2D>().OverlapPoint(point)) { this.StepTutorial(false); UI_Cmp.FrogCursorUI.SetActive(false); } } else if (this.seTime2 > 9f) { this.StepTutorial(false); UI_Cmp.FrogCursorUI.SetActive(false); } } if (this.seTime2 >= 2f && this.seTime2 - Time.deltaTime < 2f) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Grassy"]); } if (this.seTime2 % 3f < (this.seTime2 - Time.deltaTime) % 3f && this.seTime2 > 7f) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]); } if (this.seTime % 5f < (this.seTime - Time.deltaTime) % 5f || this.seTime - Time.deltaTime == 0f) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Sparrow"]); } break; case Step.a2_MO_GoHome: if (this.seTime != 0f) { this.seTime += Time.deltaTime; UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, this.seTime)); if (this.seTime > 1f) { UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f)); this.seTime = 0f; UI_Cmp.FrogNameUI.GetComponent <FrogNamePanel>().OpenNamePanel(); component4.Frog.SetActive(false); } } break; case Step.b0_MI_GoOut: this.seTime += Time.deltaTime; if (this.seTime >= 0.5f && this.seTime - Time.deltaTime < 0.5f) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Frog"]); } if (this.seTime <= 1f) { UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 1f - this.seTime)); } if (this.seTime > 1f && this.seTime - Time.deltaTime < 1f) { UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel(string.Empty); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { help.ActionStock_Next(); }); help.ActionStock_New("おうちのなかに入っていきました\nなかをのぞいてみましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { UI_Cmp.blockUI(false); }); help.ActionStock_Add(delegate { UI_Cmp.TutorialUBlock(); }); help.ActionStock_Add(delegate { UI_Cmp.MoveCursorUI.SetActive(true); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { this.StepTutorial(true); }); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().enabled = true; }); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { SuperGameMaster.audioMgr.StopSE(); }); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Knock"]); }); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { this.seTime = 0f; }); }); } if (this.seTime > 3f && this.seTime - Time.deltaTime < 3f) { HelpPanel component5 = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); if (!component5.HelpWindow.activeSelf) { component5.ClosePanel(); component5.ActionStock_Next(); } } break; case Step.c0_MO_GetStandby: if (this.seTime == 0f) { UI_Cmp.setFadeOut(99999f); UI_Cmp.FadeUI.GetComponent <Image>().color = new Color(0f, 0f, 0f, 0f); } this.seTime += Time.deltaTime; if (this.seTime >= 1f && this.seTime - Time.deltaTime < 1f) { UI_Cmp.setFadeOut(0.25f); SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Move"]); } break; case Step.c1_MO_GetClover: if (!UI_Cmp.HelpUI.activeSelf) { if (Input.GetMouseButtonUp(0)) { component4.Call_FlickInit(); } this.Obj.GetComponent <FlickCheaker>().FlickUpdate(); component4.Call_FlickMove(); } if (Camera.main.transform.position.x <= -1.9f && UI_Cmp.CloverCursorUI.activeSelf) { UI_Cmp.CloverCursorUI.SetActive(false); HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("スライド操作でみつ葉のクローバーを\n収穫しましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { this.StepTutorial(false); }); } break; case Step.c2_MO_GoShop: if (Input.GetMouseButton(0)) { if (Camera.main.transform.position.x > 0f) { UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = true; } else { UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = false; } } if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf) { component4.ScrollAndCloverCheck(); component4.CloverFarm.GetComponent <CloverFarm>().CloverProc(); if (SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) + SuperGameMaster.CloverPointStock() >= SuperGameMaster.GetCloverList().Count) { if (SuperGameMaster.FindItemStock(1000) > 10) { SuperGameMaster.getCloverPoint(10); } this.StepTutorial(true); } } if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_CLOVER) && SuperGameMaster.CloverPointStock() >= 1) { UI_Cmp.CloverMarkUI.SetActive(true); HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("収穫したみつ葉のクローバーは\nこちらで確認することができます"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { UI_Cmp.CloverMarkUI.SetActive(false); }); help.SetOnClick_Screen(delegate { help.ActionStock_Next(); }); help.ActionStock_New("畑のクローバーを全て収穫しましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_CLOVER); } if (!UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.GetFirstFlag(Flag.TUTORIAL_FOURLEAF) && SuperGameMaster.FindItemStock(1000) >= 1) { ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>(); confilm.OpenPanel(string.Empty); confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(component4.CloverFarm.GetComponent <CloverFarm>().AddConfirm_pref)); confilm.ResetOnClick_Screen(); confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); confilm.SetOnClick_Screen(delegate { UI_Cmp.BackFunc_Stop(true); }); SuperGameMaster.SetFirstFlag(Flag.TUTORIAL_FOURLEAF); } break; case Step._StepMax: if (!UI_Cmp.ResultUI.activeSelf && !UI_Cmp.HelpUI.activeSelf && !UI_Cmp.ConfilmUI.activeSelf && !SuperGameMaster.tutorial.TutorialComplete()) { HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); ConfilmPanel confilm = UI_Cmp.ConfilmUI.GetComponent <ConfilmPanel>(); help.OpenPanel(string.Concat(new string[] { string.Empty, SuperGameMaster.GetFrogName(), "は旅立ちました\n", SuperGameMaster.GetFrogName(), "が帰ってくるには\nしばらく時間がかかります\n今回のしたくなら数時間ほどで\n帰ってきそうです" })); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { help.ActionStock_Next(); }); help.ActionStock_New("※ヘルプで通知をONに設定しておくと\n" + SuperGameMaster.GetFrogName() + "が帰ってきたときに\n通知が入ります"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New(SuperGameMaster.GetFrogName() + "は旅のしたくがなくても\n自由にでかけていきますが\n今回のように旅のしたくを\n手伝ってあげていると\n旅の様子をうつした<color=#61a8c7><b>写真</b></color>や\n手に入れた各地の<color=#61a8c7><b>おみやげ</b></color>を\nプレゼントしてくれます"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New(SuperGameMaster.GetFrogName() + "が出かけている間に\n次の旅に備えて\nみつ葉のクローバーを収穫して\nもちものを用意しておきましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New("チュートリアルはここまでです\n" + SuperGameMaster.GetFrogName() + "との\n旅をお楽しみください"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { confilm.OpenPanel(string.Empty); }); help.ActionStock_Add(delegate { confilm.AddContents(UnityEngine.Object.Instantiate <GameObject>(UI_Cmp.AddConfirm_pref)); }); help.ActionStock_Add(delegate { confilm.ResetOnClick_Screen(); }); help.ActionStock_Add(delegate { confilm.SetOnClick_Screen(delegate { confilm.ClosePanel(); }); }); help.ActionStock_Add(delegate { confilm.SetOnClick_Screen(delegate { UI_Cmp.blockUI(false); }); }); help.ActionStock_Add(delegate { confilm.SetOnClick_Screen(delegate { UI_Cmp.freezeObject(false); }); }); help.ActionStock_Add(delegate { confilm.SetOnClick_Screen(delegate { UI_Cmp.BackFunc_Stop(false); }); }); help.ActionStock_Add(delegate { confilm.SetOnClick_Screen(delegate { this.FinishTutorial(); }); }); SuperGameMaster.evtMgr.delete_Act_Timer_EvtList_forType(TimerEvent.Type.Drift); } break; } } }
// Token: 0x06000753 RID: 1875 RVA: 0x00030E6C File Offset: 0x0002F26C public void CallTutorial() { Scenes setScene = this.SetScene; if (setScene != Scenes.MainOut) { if (setScene != Scenes.MainIn) { if (setScene == Scenes.Shop) { UIMaster_Shop UI_Cmp = this.UI.GetComponent <UIMaster_Shop>(); if (!this.ClockOk()) { UI_Cmp.freezeObject(true); UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); UI_Cmp.BackFunc_Stop(true); } switch (this.tutorialStep) { case Step.d0_SH_BuyStandby: { HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("はじめにお手頃な\n「えびづるのスコーン」を\n買ってみましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { UI_Cmp.TutorialUBlock(); }); help.SetOnClick_Screen(delegate { this.StepTutorial(false); }); break; } case Step.d1_SH_BuyItem: UI_Cmp.TutorialUBlock(); UI_Cmp.blockUI(false); break; case Step.d2_SH_GoHome: { HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("早速、旅のもちものを\nしたくしてあげましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { UI_Cmp.blockUI(false); }); help.SetOnClick_Screen(delegate { UI_Cmp.TutorialUBlock(); }); help.SetOnClick_Screen(delegate { UI_Cmp.DisplayPanel.GetComponent <FlickCheaker>().stopFlick(false); }); help.SetOnClick_Screen(delegate { UI_Cmp.MoveCursorUI.SetActive(true); }); help.SetOnClick_Screen(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().InBtn.GetComponent <Button>().onClick.AddListener(delegate { this.StepTutorial(true); }); }); break; } } } } else { UIMaster_MainIn UI_Cmp = this.UI.GetComponent <UIMaster_MainIn>(); ObjectMaster_MainIn component = this.Obj.GetComponent <ObjectMaster_MainIn>(); if (!this.ClockOk()) { UI_Cmp.freezeObject(true); UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); UI_Cmp.BackFunc_Stop(true); } Step step = this.tutorialStep; if (step != Step.e0_MI_OpenBag) { if (step != Step.e1_MI_ReStart) { if (step == Step.b0_MI_GoOut) { if (!component.Tutorial_Frog.activeSelf) { component.Tutorial_Frog.SetActive(true); component.Tutorial_Frog.GetComponent <AnmAnimationObj>().SetUpAniAnimation(); } UI_Cmp.TutorialUBlockAll(); if (!SuperGameMaster.audioMgr.isPlayingBGM() && this.BGMOk()) { SuperGameMaster.audioMgr.PlayBGM(Define.BGMDict["BGM_Default"]); } HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel(string.Empty); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { help.ActionStock_Next(); }); help.ActionStock_New("旅に出かけるしたくをしています\n" + SuperGameMaster.GetFrogName() + "の旅のしたくを\n少しだけ手伝ってあげましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New("旅のしたくでは\n<color=#61a8c7><b>おべんとう</b></color>、<color=#61a8c7><b>おまもり</b></color>、<color=#61a8c7><b>どうぐ</b></color>\nの3種類を用意することができます\n\n今回は旅に欠かすことのできない\n<color=#61a8c7><b>おべんとう</b></color>をしたくしてあげましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New("旅のもちものは、<color=#61a8c7><b>みつ葉のクローバー</b></color>を\n使って、おみせで買うことができます\nまずは、<color=#61a8c7><b>みつ葉のクローバー</b></color>を収穫しに\nにわさきの畑まで行ってみましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { UI_Cmp.blockUI(false); }); help.ActionStock_Add(delegate { UI_Cmp.TutorialUBlock(); }); help.ActionStock_Add(delegate { UI_Cmp.MoveCursorUI.SetActive(true); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().OutBtn.GetComponent <Button>().onClick.AddListener(delegate { this.StepTutorial(true); }); }); this.seTime = 0f; } } else { if (!component.Tutorial_Frog.activeSelf) { component.Tutorial_Frog.SetActive(true); component.Tutorial_Frog.GetComponent <AnmAnimationObj>().SetUpAniAnimation(); } HelpPanel component2 = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); component2.OpenPanel(string.Concat(new string[] { "旅のしたくが完了しました\n", SuperGameMaster.GetFrogName(), "が旅立つまで待ちましょう\n※今回はチュートリアルなので\n再起動で", SuperGameMaster.GetFrogName(), "は旅立ちます" })); component2.ResetOnClick_Screen(); } } else { if (!component.Tutorial_Frog.activeSelf) { component.Tutorial_Frog.SetActive(true); component.Tutorial_Frog.GetComponent <AnmAnimationObj>().SetUpAniAnimation(); } UI_Cmp.BagCompleteCursor.SetActive(true); UI_Cmp.BagCompleteCursor.GetComponentInChildren <Image>().enabled = false; UI_Cmp.TutorialUBlock(); UI_Cmp.blockUI(false); UI_Cmp.BagMarkUI.SetActive(true); Button component3 = UI_Cmp.BagDeskUI.GetComponent <BagDeskPanels>().BagOpenUI.GetComponent <Button>(); component3.onClick.AddListener(delegate { UI_Cmp.BagDeskUI.GetComponent <BagDeskPanels>().BagPanelUI.GetComponent <BagPanel>().ChangeButton.SetActive(false); }); component3.onClick.AddListener(delegate { UI_Cmp.BagDeskUI.GetComponent <BagDeskPanels>().DeskPanelUI.GetComponent <BagPanel>().ChangeButton.SetActive(false); }); component3.onClick.AddListener(delegate { UI_Cmp.BagMarkUI.SetActive(false); }); component3.onClick.AddListener(delegate { UI_Cmp.BagDeskUI.GetComponent <BagDeskPanels>().BagPanelUI.GetComponent <BagPanel>().CloseBtn.SetActive(false); }); HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); component3.onClick.AddListener(delegate { help.OpenPanel("おべんとうに「えびづるのスコーン」\nおまもりに「よつ葉」\nを選んで<color=#61a8c7><b>かんりょう</b></color>ボタンを\n押してください"); }); component3.onClick.AddListener(delegate { help.ResetOnClick_Screen(); }); component3.onClick.AddListener(delegate { help.SetOnClick_Screen(delegate { help.ClosePanel(); }); }); } } } else { UIMaster_MainOut UI_Cmp = this.UI.GetComponent <UIMaster_MainOut>(); ObjectMaster_MainOut component4 = this.Obj.GetComponent <ObjectMaster_MainOut>(); if (component4.Post.activeSelf && !this.ClockOk()) { component4.Post.SetActive(false); } if (!this.ClockOk()) { UI_Cmp.freezeObject(true); UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); UI_Cmp.BackFunc_Stop(true); } Step step2 = this.tutorialStep; switch (step2 + 1) { case Step.a0_MO_FrogTap: { UI_Cmp.TitleUI.SetActive(true); Vector3 position = Camera.main.transform.position; Camera.main.transform.position = new Vector3(-Mathf.Abs(position.x), position.y, position.z); UI_Cmp.TutorialUBlock(); this.seTime = 0f; break; } case Step.a1_MO_FrogName: { component4.Call_FlickInit(); Vector3 position2 = Camera.main.transform.position; Camera.main.transform.position = new Vector3(-Mathf.Abs(position2.x), position2.y, position2.z); component4.Frog.SetActive(true); component4.Frog.GetComponent <AnmAnimationObj>().SetUpAniAnimation(); UI_Cmp.TutorialUBlock(); if (this.seTime != 0f) { this.seTime = this.seTime % 5f - 5f; } this.seTime2 = 0f; break; } case Step.a2_MO_GoHome: { component4.Frog.SetActive(true); UI_Cmp.FrogCursorUI.SetActive(false); this.seTime = 0f; HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("かえるがいます\n名前をつけてあげましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { UI_Cmp.blockUI(true, new Color(0f, 0f, 0f, 0f)); }); help.SetOnClick_Screen(delegate { this.seTime = -1E-06f; }); help.SetOnClick_Screen(delegate { UI_Cmp.FrogCursorUI.SetActive(false); }); break; } case Step.b0_MI_GoOut: UI_Cmp.TutorialUBlock(); this.seTime = 0f; break; case Step.c1_MO_GetClover: UI_Cmp.CloverCursorUI.SetActive(true); UI_Cmp.TutorialUBlock(); break; case Step.c2_MO_GoShop: UI_Cmp.CloverCursorUI.SetActive(true); UI_Cmp.CloverCursorUI.GetComponentInChildren <Image>().enabled = false; UI_Cmp.TutorialUBlock(); break; case Step.d0_SH_BuyStandby: { HelpPanel help = UI_Cmp.HelpUI.GetComponent <HelpPanel>(); help.OpenPanel("<color=#61a8c7><b>よつ葉のクローバー</b></color>を見つけました\n畑では、みつ葉のクローバー以外にも\n稀によつ葉のクローバーを収穫します\nよつ葉のクローバーは旅の<color=#61a8c7><b>おまもり</b></color>に\nしたくすることができます"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { help.ActionStock_Next(); }); help.ActionStock_New("折角ですので、<color=#61a8c7><b>おまもり</b></color>も\nしたくしてあげましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { help.ActionStock_Next(); }); help.ActionStock_New("みつ葉のクローバーを収穫し終えました\nでは、みつ葉のクローバーを使って\n<color=#61a8c7><b>おみせ</b></color>で買い物をしてみましょう"); help.ActionStock_Add(delegate { help.ClosePanel(); }); help.ActionStock_Add(delegate { UI_Cmp.blockUI(false); }); help.ActionStock_Add(delegate { UI_Cmp.TutorialUBlock(); }); help.ActionStock_Add(delegate { UI_Cmp.MoveCursorUI.transform.localPosition = new Vector2(UI_Cmp.MoveCursorUI.transform.localPosition.x, UI_Cmp.MoveCursorUI.transform.localPosition.y + 94f); }); help.ActionStock_Add(delegate { UI_Cmp.MoveCursorUI.SetActive(true); }); help.ActionStock_Add(delegate { UI_Cmp.MoveUI.GetComponent <MovePanel>().ShopBtn.GetComponent <Button>().onClick.AddListener(delegate { this.StepTutorial(true); }); }); break; } } } }
public void BackButton() { BGPanel.SetActive(true); MiddlePanel.SetActive(true); HelpPanel.SetActive(false); }
// Token: 0x06000384 RID: 900 RVA: 0x000145D4 File Offset: 0x000129D4 public void CheckTravelEvent() { if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) != -1 || SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Return) != -1) { int num = SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Return); if (num != -1) { EventTimerFormat eventTimerFormat = SuperGameMaster.evtMgr.get_ActEvt(num); SuperGameMaster.evtMgr.delete_ActEvt_forId(eventTimerFormat.id); } if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.BackHome) == -1) { this.OpenView(ResultPanel.ResultMode.Return); this.BackFunc(); } else { this.OpenView(ResultPanel.ResultMode.BackTravel); this.BackFunc(); } SuperGameMaster.SetFrogMotion(-1); } else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Picture) != -1) { this.OpenView(ResultPanel.ResultMode.Picture); this.BackFunc(); } else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.GoTravel) != -1) { this.OpenView(ResultPanel.ResultMode.GoTravel); this.BackFunc(); } else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Drift) != -1) { this.OpenView(ResultPanel.ResultMode.Drift); this.BackFunc(); } else if (SuperGameMaster.evtMgr.search_ActEvtIndex_forType(TimerEvent.Type.Friend) != -1 && this.FriendComeCheck()) { this.OpenView(ResultPanel.ResultMode.Friend); this.BackFunc(); } else { if (this.MODE != ResultPanel.ResultMode.NONE) { SuperGameMaster.audioMgr.PlaySE(Define.SEDict["SE_Cancel"]); } if (!SuperGameMaster.GetFirstFlag(Flag.FIRST_COME_FRIEND) && this.MODE == ResultPanel.ResultMode.Friend) { SuperGameMaster.audioMgr.StopSE(); SuperGameMaster.SetFirstFlag(Flag.FIRST_COME_FRIEND); base.GetComponentInParent <UIMaster>().freezeObject(true); base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0f)); HelpPanel help = base.GetComponentInParent <UIMaster_MainOut>().HelpUI.GetComponent <HelpPanel>(); help.OpenPanel(SuperGameMaster.GetFrogName() + "の<color=#61a8c7><b>友だち</b></color>が遊びにきました\n" + SuperGameMaster.GetFrogName() + "からもらった<color=#61a8c7><b>めいぶつ</b></color>で\n<color=#61a8c7><b>おもてなし</b></color>をしてあげましょう"); help.ResetOnClick_Screen(); help.SetOnClick_Screen(delegate { help.ClosePanel(); }); help.SetOnClick_Screen(delegate { this.GetComponentInParent <UIMaster>().freezeObject(false); }); help.SetOnClick_Screen(delegate { this.GetComponentInParent <UIMaster>().blockUI(false, new Color(0f, 0f, 0f, 0f)); }); } if (this.MODE == ResultPanel.ResultMode.Friend) { this.MailUI.CheckNewMail(); } base.GetComponentInParent <UIMaster_MainOut>().BackFunc(); } }
void Awake() { mainScene = GameObject.Find("MainScene"); GameObject goMaterial= new GameObject("sol", typeof(MeshRenderer), typeof(MeshFilter)); m_curMatRenderer = goMaterial.GetComponent<Renderer>(); m_curMatRenderer.material.SetTextureScale("_MainTex", new Vector2(c_tiling, c_tiling)); goMaterial.transform.parent = this.gameObject.transform; _helpPanel = mainScene.GetComponent<HelpPanel>(); }
protected override void OnClickListener(GameObject gob) { var btnid = (MenuBtn)UIEventListener.Get(gob).parameter; var gdata = App.GetGameData <TexasGameData>(); switch (btnid) { case MenuBtn.Menu_Btn: MenuFather.SetActive(true); foreach (var tween in BtnTweens) { tween.GetComponent <TweenColor>().ResetToBeginning(); tween.GetComponent <TweenScale>().ResetToBeginning(); } if (gdata.IsRoomGame) { //房卡没有换房 var changeBtn = Tools.GobSelectName(Buttons, MenuBtn.Change_Btn.ToString()); if (changeBtn != null) { changeBtn.SetActive(false); } MenuPanelGrid.cellHeight = 100; //解散房间 if (gdata.IsRoomOwner || gdata.IsPlayed) { var backBtn = Tools.GobSelectName(Buttons, MenuBtn.Back_Btn.ToString()); if (backBtn != null) { var sprName = "dismiss"; var btn = backBtn.GetComponent <UIButton>(); btn.normalSprite = sprName + "_up"; btn.pressedSprite = sprName + "_over"; btn.hoverSprite = sprName + "_over"; btn.disabledSprite = sprName + "_up"; } } } MenuBgTween.PlayForward(); break; case MenuBtn.Back_Btn: //开放模式下,走解散房间,否则更换房间 if (gdata.IsRoomGame) { DismissRoom(); } else { QuitRoom(); } CloseMenu(); break; case MenuBtn.Change_Btn: ChangeRoom(); CloseMenu(); break; case MenuBtn.PokerType_Btn: if (HelpPanel != null) { HelpPanel.SetActive(true); } CloseMenu(); break; case MenuBtn.Close_Btn: CloseMenu(); break; case MenuBtn.AddGold_Btn: { var selfInfo = gdata.GetPlayerInfo(); if (gdata.GStatus > YxEGameStatus.Over && selfInfo.State) { YxMessageBox.Show(new YxMessageBoxData { Msg = "正在游戏中,不能添加筹码!", IsTopShow = true, Delayed = 5, }); } else { //打开选择携带钱界面 App.GetGameManager <TexasGameManager>().GetGoldMagr.OpenPanel(selfInfo); } } break; case MenuBtn.Setting_Btn: OnClickSettingBtn(); CloseMenu(); break; case MenuBtn.History_Btn: var historyResultMgr = App.GetGameManager <TexasGameManager>().HistoryResultMgr; if (historyResultMgr != null) { historyResultMgr.ShowHistoryView(); } CloseMenu(); break; case MenuBtn.HelpBtn: break; } }
public void HelpPanelClose() { HelpPanel.SetActive(false); }
private void OnHelp() { OptionPanel.SetActive(false); HelpPanel.SetActive(true); }
public HelpPanel() { instance = this; }