Class ToastMessageInfo
public sealed class ToastMessageInfo
- Inheritance
-
ToastMessageInfo
- Inherited Members
Constructors
ToastMessageInfo(ToastMessageStyle, int, bool, bool, bool, bool)
public ToastMessageInfo(ToastMessageStyle style, int channel, bool requiresClearing = false, bool inturrupt = false, bool canResend = false, bool requiresResend = false)
Parameters
styleToastMessageStylechannelintrequiresClearingboolinturruptboolcanResendboolrequiresResendbool
ToastMessageInfo(ToastMessageStyle, int, UnturnedUI, SendToastWithCustomUI, bool, bool)
public ToastMessageInfo(ToastMessageStyle style, int channel, UnturnedUI ui, SendToastWithCustomUI sendCallbackAction, bool requiresClearing = false, bool inturrupt = false)
Parameters
styleToastMessageStylechannelintuiUnturnedUIsendCallbackActionSendToastWithCustomUIrequiresClearingboolinturruptbool
ToastMessageInfo(ToastMessageStyle, int, IAssetLink<EffectAsset>, bool, bool, bool, bool)
public ToastMessageInfo(ToastMessageStyle style, int channel, IAssetLink<EffectAsset> asset, bool requiresClearing = false, bool inturrupt = false, bool canResend = false, bool requiresResend = false)
Parameters
styleToastMessageStylechannelintassetIAssetLink<EffectAsset>requiresClearingboolinturruptboolcanResendboolrequiresResendbool
Properties
Asset
The effect to send to the player.
public IAssetLink<EffectAsset> Asset { get; }
Property Value
- IAssetLink<EffectAsset>
CanResend
If ResendNames have been configured to allow resending the text components when
public bool CanResend { get; }
Property Value
Channel
Overlapping toasts are split up into channels. Each channel can only show one toast at a time.
public int Channel { get; }
Property Value
ClearableSlots
Number of actual slots in the UI that will be sent an empty string if not supplied as an argument.
public int ClearableSlots { get; set; }
Property Value
DisableFlags
Widget flags to disable when the UI is sent.
public EPluginWidgetFlags DisableFlags { get; set; }
Property Value
- EPluginWidgetFlags
Duration
public float Duration { get; set; }
Property Value
EnableFlags
Widget flags to enable when the UI is sent.
public EPluginWidgetFlags EnableFlags { get; set; }
Property Value
- EPluginWidgetFlags
Inturrupt
If this toast should inturrupt whatever toast is currently playing instead of queueing after it plays.
public bool Inturrupt { get; }
Property Value
Key
Unique key for UI that requires clearing or setting values.
public short Key { get; }
Property Value
Reliable
Should this effect be sent with a high reliability (in terms of how it's networked).
public bool Reliable { get; set; }
Property Value
RequiresClearing
If this effect needs to be cleared when it's Duration is over.
public bool RequiresClearing { get; }
Property Value
Remarks
Most effects will use Lifetime = X and Lifetime_Spread = 0 to auto-clear.
RequiresResend
public bool RequiresResend { get; }
Property Value
ResendNames
Names of all text components in order of their arguments ({0}, etc). CanResend must be set to true for this to work.
public string[] ResendNames { get; set; }
Property Value
- string[]
Remarks
Embedding plugin keys only works when the value is sent separately.
SendCallback
Callback to invoke when sending with a managed UI.
public SendToastWithCustomUI? SendCallback { get; }
Property Value
Style
Toast style this info represents.
public ToastMessageStyle Style { get; }
Property Value
UI
Optional managed UI to use.
public UnturnedUI? UI { get; }
Property Value
- UnturnedUI
Methods
UpdateAsset(IAssetLink<EffectAsset>)
public void UpdateAsset(IAssetLink<EffectAsset> assetContainer)
Parameters
assetContainerIAssetLink<EffectAsset>