Added extra argument to @text.notification...
That clears the current list of notifications, dismisses the current one if it's visible and then shows the new one
This commit is contained in:
parent
de102f4aa7
commit
61de91a141
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
Select Case command.ToLower()
|
Select Case command.ToLower()
|
||||||
Case "notification"
|
Case "notification"
|
||||||
'@text.notification(message,[int_delay=500],[int_backgroundID=0],[int_IconID=0],[str_sfx],[str_script],[bool_force=0])
|
'@text.notification(message,[int_delay=500],[int_backgroundID=0],[int_IconID=0],[str_sfx],[str_script],[bool_force=0],[clear_list=0])
|
||||||
Dim _NotificationPopup As New NotificationPopup
|
Dim _NotificationPopup As New NotificationPopup
|
||||||
Dim args As String() = argument.Split(CChar(","))
|
Dim args As String() = argument.Split(CChar(","))
|
||||||
Select Case args.Length
|
Select Case args.Length
|
||||||
|
@ -30,11 +30,21 @@
|
||||||
_NotificationPopup.Setup(args(0), int(args(1)), int(args(2)), int(args(3)), args(4), args(5))
|
_NotificationPopup.Setup(args(0), int(args(1)), int(args(2)), int(args(3)), args(4), args(5))
|
||||||
Case 7
|
Case 7
|
||||||
_NotificationPopup.Setup(args(0), int(args(1)), int(args(2)), int(args(3)), args(4), args(5), CBool(args(6)))
|
_NotificationPopup.Setup(args(0), int(args(1)), int(args(2)), int(args(3)), args(4), args(5), CBool(args(6)))
|
||||||
|
Case 8
|
||||||
|
_NotificationPopup.Setup(args(0), int(args(1)), int(args(2)), int(args(3)), args(4), args(5), CBool(args(6)))
|
||||||
End Select
|
End Select
|
||||||
If args.Length = 7 AndAlso CBool(args(6)) = True Then
|
If args.Length = 8 Then
|
||||||
CType(CurrentScreen, OverworldScreen).NotificationPopupList.Insert(0, _NotificationPopup)
|
If CType(CurrentScreen, OverworldScreen).NotificationPopupList.Count > 0 AndAlso CBool(args(7)) = True Then
|
||||||
Else
|
CType(CurrentScreen, OverworldScreen).NotificationPopupList(0)._delayDate = Date.Now
|
||||||
CType(CurrentScreen, OverworldScreen).NotificationPopupList.Add(_NotificationPopup)
|
If CType(CurrentScreen, OverworldScreen).NotificationPopupList.Count > 1 Then
|
||||||
|
CType(CurrentScreen, OverworldScreen).NotificationPopupList.RemoveRange(1, CType(CurrentScreen, OverworldScreen).NotificationPopupList.Count - 2)
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If args.Length >= 7 AndAlso CBool(args(6)) = True Then
|
||||||
|
CType(CurrentScreen, OverworldScreen).NotificationPopupList.Insert(0, _NotificationPopup)
|
||||||
|
Else
|
||||||
|
CType(CurrentScreen, OverworldScreen).NotificationPopupList.Add(_NotificationPopup)
|
||||||
End If
|
End If
|
||||||
Case "show"
|
Case "show"
|
||||||
Screen.TextBox.reDelay = 0.0F
|
Screen.TextBox.reDelay = 0.0F
|
||||||
|
|
Loading…
Reference in New Issue