Show / Hide Table of Contents

Class ItemGetMessage

Represents a message displayed when an item is obtained in the game.

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
ItemGetMessage
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class ItemGetMessage : MonoBehaviour

Properties

| Edit this page View Source

Icon

Gets or sets the icon of the item.

Declaration
public Sprite Icon { get; set; }
Property Value
Type Description
Sprite
| Edit this page View Source

Text

Gets or sets the text of the item message.

Declaration
public string Text { get; set; }
Property Value
Type Description
string

Methods

| Edit this page View Source

Hide()

Hides the item message with a fade-out animation.

Declaration
public void Hide()
| Edit this page View Source

Show()

Shows the item message with a fade-in animation.

Declaration
public void Show()
| Edit this page View Source

ShowInstant()

Displays the item message instantly without animation.

Declaration
public void ShowInstant()
| Edit this page View Source

Spawn(Sprite, string)

Spawns an item message for a specific item sprite and text.

Declaration
public static ItemGetMessage Spawn(Sprite itemSprite, string itemText)
Parameters
Type Name Description
Sprite itemSprite

The sprite of the item to display.

string itemText

The text to display for the item message.

Returns
Type Description
ItemGetMessage

The spawned ItemGetMessage instance.

| Edit this page View Source

SpawnCharm(int)

Spawns an item message for a specific charm ID.

Declaration
public static ItemGetMessage SpawnCharm(int charmID)
Parameters
Type Name Description
int charmID

The ID of the charm to display the message for.

Returns
Type Description
ItemGetMessage

The spawned ItemGetMessage instance.

| Edit this page View Source

SpawnCharm(IWeaverCharm)

Spawns an item message for a specific WeaverCharm.

Declaration
public static ItemGetMessage SpawnCharm(IWeaverCharm charm)
Parameters
Type Name Description
IWeaverCharm charm

The WeaverCharm to display the message for.

Returns
Type Description
ItemGetMessage

The spawned ItemGetMessage instance.

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾