This commit is contained in:
2021-04-28 00:52:04 +02:00
parent fac04cf8b8
commit b5621e38c3
2 changed files with 2 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ export default function notification() {
if (textColor > -1) mp.game.invoke(_SET_NOTIFICATION_COLOR_NEXT, textColor);
if (bgColor > -1) mp.game.invoke(_SET_NOTIFICATION_BACKGROUND_COLOR, bgColor);
if (flashing) mp.game.ui.setNotificationFlashColor(flashColor[0], flashColor[1], flashColor[2], flashColor[3]);
mp.game.graphics.requestStreamedTextureDict(notifPic, true);
mp.game.gxt.set("BNOTIF_LONG_TEXT_ENTRY_IMG", `~a~${message}`);
mp.game.ui.setNotificationTextEntry("BNOTIF_LONG_TEXT_ENTRY_IMG");