Popups
Scriptable popups
```
let warningMsg: SimpleScreenMessage;
warningMsg.isShown = true;
warningMsg.duration = 5.00;
warningMsg.message = "Hello, this is a simple message";
warningMsg.type = SimpleMessageType.Relic;
/*
enum SimpleMessageType {
Undefined = 0,
Negative = 1,
Neutral = 2,
Vehicle = 3,
Apartment = 4,
Relic = 5,
Money = 6,
Reveal = 7,
Boss = 8,
Twintone = 9,
Police = 10,
}
*/
GameInstance.GetBlackboardSystem(this.GetGame()).Get(GetAllBlackboardDefs().UI_Notifications).SetVariant(GetAllBlackboardDefs().UI_Notifications.WarningMessage, ToVariant(warningMsg), true);
```Using Codeware
Last updated
Was this helpful?