Skip to Main Content

BTD_Mod_Helper​.Api​.UI​.ModPopupImage


BloonsTD6 Mod Helper

BTD_Mod_Helper.Api.UI

ModPopupImage Class

Registers an image that can be used within hint / event popups

public abstract class ModPopupImage : BTD_Mod_Helper.Api.ModContent

Inheritance System.ObjectModContent  ModPopupImage

Properties

ModPopupImage.Image Property

The Image to use


(Name of .png or .jpg, not including file extension)

public virtual string Image { get; }

Property Value

System.String

ModPopupImage.ImageReference Property

If you're not going to use a custom .png for your Image, use this to directly control its SpriteReference

public virtual SpriteReference ImageReference { get; }

Property Value

Il2CppNinjaKiwi.Common.ResourceUtils.SpriteReference

ModPopupImage.Index Property

What should be passed in to methods like Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.QueueHint(System.Int32,System.String,System.Int32,System.Boolean,System.Boolean,System.Int32,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback) and Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ShowEventPopup(Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.Placement,System.String,System.String,System.String,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback,System.String,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback,Il2CppAssets.Scripts.Unity.UI_New.Popups.Popup.TransitionAnim,System.Int32,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.BackGround,UnityEngine.Sprite)

public int Index { get; set; }

Property Value

System.Int32

Operators

ModPopupImage.implicit operator int(ModPopupImage) Operator

What should be passed in to methods like Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.QueueHint(System.Int32,System.String,System.Int32,System.Boolean,System.Boolean,System.Int32,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback) and Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ShowEventPopup(Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.Placement,System.String,System.String,System.String,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback,System.String,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.ReturnCallback,Il2CppAssets.Scripts.Unity.UI_New.Popups.Popup.TransitionAnim,System.Int32,Il2CppAssets.Scripts.Unity.UI_New.Popups.PopupScreen.BackGround,UnityEngine.Sprite)

public static int implicit operator int(BTD_Mod_Helper.Api.UI.ModPopupImage image);

Parameters

image ModPopupImage

Returns

System.Int32