Skip to Main Content

BTD_Mod_Helper​.Extensions​.PopupScreenExt


BloonsTD6 Mod Helper

BTD_Mod_Helper.Extensions

PopupScreenExt Class

Extensions for PopupScreen

public static class PopupScreenExt

Inheritance System.Object  PopupScreenExt

Methods

PopupScreenExt.GetBodyText(this PopupScreen) Method

Gets the NK_TextMeshProUGUI of the ActivePopup, or null

public static NK_TextMeshProUGUI GetBodyText(this PopupScreen popupScreen);

Parameters

popupScreen Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

Returns

Il2Cpp.NK_TextMeshProUGUI

PopupScreenExt.GetTMP_InputField(this PopupScreen) Method

Gets the InputField of the ActivePopup, or null

public static TMP_InputField GetTMP_InputField(this PopupScreen popupScreen);

Parameters

popupScreen Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

Returns

Il2CppTMPro.TMP_InputField

PopupScreenExt.ModifyBodyText(this PopupScreen, Action<NK_TextMeshProUGUI>) Method

Modifies the TMP InputField of the most recently created popup

public static void ModifyBodyText(this PopupScreen popupScreen, System.Action<NK_TextMeshProUGUI> func);

Parameters

popupScreen Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

func System.Action<Il2Cpp.NK_TextMeshProUGUI>

PopupScreenExt.ModifyField(this PopupScreen, Action<TMP_InputField>) Method

Modifies the NK_TextMeshProUGUI of the most recently created popup

public static void ModifyField(this PopupScreen popupScreen, System.Action<TMP_InputField> func);

Parameters

popupScreen Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

func System.Action<Il2CppTMPro.TMP_InputField>

PopupScreenExt.SafelyQueue(this PopupScreen, Action) Method

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);

Parameters

popupScreen Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen

action System.Action<Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen>

To learn how to download BTD Mod Helper and install mods, click here