S9SourceNine Labs / CMAPI Docs 1.0
CMAPI / API reference

INotificationManager

Shows short messages through Planet Crafter's native HUD.

View source ↗
CMAPI 1.0.0Standalone runtimeWindows x64Tested with Planet Crafter 2.008
Namespace CMAPIInterfaceAssembly CMAPI.API.dll
public interface INotificationManager

Shows short messages through Planet Crafter's native HUD.

Members

Show

method
void Show(string message, float durationSeconds = 4f)

Queues a general in-game information message.

ShowItemAdded

method
void ShowItemAdded( string itemId, int amount = 1, float durationSeconds = 2.5f )

Queues a native inventory-style notification with the item's icon and localized display name.

ShowTerraTokensAdded

method
void ShowTerraTokensAdded(int amount)

Queues Planet Crafter's native Terra Token gain popup.