protected override void DidActivate(bool firstActivation, bool addedToHierarchy, bool screenSystemEnabling) { try { if (firstActivation) { SetTitle("Anti Lag Mod"); showBackButton = true; ProvideInitialViewControllers(settingsView); } } catch (Exception exception) { AntiLagModController.ExternalCriticalError("ALMFlowCoordinator.cs", 37, exception); } }
public void Create() { try { Plugin.Log.Debug("Creating text object"); // setup text obj gameObject.transform.localScale = scale; dasCanvas = gameObject.AddComponent <Canvas>(); dasCanvas.renderMode = RenderMode.WorldSpace; var rectTransform = (RectTransform)dasCanvas.transform; rectTransform.sizeDelta = canvScale; indicatorTMPText = BeatSaberUI.CreateText(rectTransform, "", canvAnchorPos); indicatorTMPText.alignment = TextAlignmentOptions.Center; indicatorTMPText.overflowMode = TextOverflowModes.Overflow; indicatorTMPText.fontSize = textFontSize; //indicatorTMPText.enableWordWrapping = false; indicatorTMPText.rectTransform.position = rectTransformPos; } catch (Exception exception) { AntiLagModController.ExternalCriticalError("TextObj.cs", 0, exception); } }