forked from rojo-rbx/rojo
Add notification popups (#540)
* Add notifications prototype * Add timeout * Improve function name * Faster timeouts and fully clickable * Update remove padding from old X button * Only auto-dismiss when viewport is open * Start auto dismiss once viewed * Avoid redundantly displaying widget text as notifs * Add sound effect * Add setting for notifications * Remove duplicate PluginSettings.StudioProvider * Use short pop sound effect * Fix broken audio, thanks Roblox * Use e instead of createElement
This commit is contained in:
@@ -202,12 +202,20 @@ function SettingsPage:render()
|
||||
layoutOrder = 1,
|
||||
}),
|
||||
|
||||
ShowNotifications = e(Setting, {
|
||||
id = "showNotifications",
|
||||
name = "Show Notifications",
|
||||
description = "Popup notifications in viewport",
|
||||
transparency = self.props.transparency,
|
||||
layoutOrder = 2,
|
||||
}),
|
||||
|
||||
TwoWaySync = e(Setting, {
|
||||
id = "twoWaySync",
|
||||
name = "Two-Way Sync",
|
||||
description = "EXPERIMENTAL! Editing files in Studio will sync them into the filesystem",
|
||||
transparency = self.props.transparency,
|
||||
layoutOrder = 2,
|
||||
layoutOrder = 3,
|
||||
}),
|
||||
|
||||
Layout = e("UIListLayout", {
|
||||
@@ -227,4 +235,4 @@ function SettingsPage:render()
|
||||
end)
|
||||
end
|
||||
|
||||
return SettingsPage
|
||||
return SettingsPage
|
||||
|
||||
Reference in New Issue
Block a user