Table of Contents
Extensions for PopupScreen
public static class PopupScreenExt
Inheritance System.Object PopupScreenExt
Gets the NK_TextMeshProUGUI of the ActivePopup, or null
public static NK_TextMeshProUGUI GetBodyText(this PopupScreen popupScreen);
popupScreen
Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen
Gets the InputField of the ActivePopup, or null
public static TMP_InputField GetTMP_InputField(this PopupScreen popupScreen);
popupScreen
Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen
Modifies the TMP InputField of the most recently created popup
public static void ModifyBodyText(this PopupScreen popupScreen, System.Action<NK_TextMeshProUGUI> func);
popupScreen
Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen
func
System.Action<Il2Cpp.NK_TextMeshProUGUI>
Modifies the NK_TextMeshProUGUI of the most recently created popup
public static void ModifyField(this PopupScreen popupScreen, System.Action<TMP_InputField> func);
popupScreen
Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen
func
System.Action<Il2CppTMPro.TMP_InputField>
Since a recent BTD6 update, trying to show a popup while there already is one can cause a game crash. This method
safely queues a popup for once there aren't any already active
public static void SafelyQueue(this PopupScreen popupScreen, System.Action<PopupScreen> action);
popupScreen
Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen
action
System.Action<Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen>