namespace VideoQueue const NOTIFICATION_NODE_ID = "VideoQueueNotification" function ShowNotifcation(notifications as object, contentNode as object, hintVisible as boolean) as void notification = notifications.findNode(NOTIFICATION_NODE_ID) if notification = invalid notification = notifications.createChild("VideoQueueNotification") notification.id = NOTIFICATION_NODE_ID end if notification.content = contentNode notification.hintVisible = hintVisible notification.show = true end function function RemoveNotifcation(notifications as object) as void notification = notifications.findNode(NOTIFICATION_NODE_ID) if notification <> invalid notifications.RemoveChild(notification) end if end function function SetVisible(notifications as object, visible as boolean) notification = notifications.findNode(NOTIFICATION_NODE_ID) if notification <> invalid notification.visible = visible end if end function end namespace