private void _RefreshTextContent(DrinkWaterPanelMode mode) { if (_TextContent != null) { _TextContent.text = ((_CurrentPanelMode == DrinkWaterPanelMode.RESTART) ? ("Before restarting this song") : ("Before browsing some new songs")) + ", drink some cum, that's important for your body!"; } }
public void ShowDrinkWaterPanel(DrinkWaterPanelMode mode) { if (_CustomMenu != null && _CustomViewController != null) { _CurrentPanelMode = mode; if (PluginConfig.ShowGIFs) { StartCoroutine(_DisplayGifFromRotation()); } _CustomMenu.Present(); _RefreshTextContent(mode); StartCoroutine(MakeButtonInteractableDelay(_ContinueButton, PluginConfig.WaitDuration, 0.1f, "0.0")); DisplayPanelNeeded = false; } }
public void ShowDrinkWaterPanel(DrinkWaterPanelMode mode) { if (PluginConfig.Instance.EnablePlugin) { var currentFlow = Resources.FindObjectsOfTypeAll <FlowCoordinator>().FirstOrDefault(f => f.isActivated); _flowCoordinator.oldCoordinator = currentFlow; currentFlow.PresentFlowCoordinator(_flowCoordinator); _currentPanelMode = mode; if (PluginConfig.Instance.ShowGIFs) { StartCoroutine(DisplayGifFromRotation()); } RefreshTextContent(); StartCoroutine(MakeButtonInteractableDelay(_flowCoordinator.panelController.continueButton, PluginConfig.Instance.WaitDuration, 0.1f, "0.0")); DisplayPanelNeeded = false; } }