forked from rojo-rbx/rojo
* 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
32 lines
611 B
Lua
32 lines
611 B
Lua
if not plugin then
|
|
return
|
|
end
|
|
|
|
local Log = require(script.Parent.Log)
|
|
|
|
local DevSettings = require(script.DevSettings)
|
|
|
|
Log.setLogLevelThunk(function()
|
|
return DevSettings:getLogLevel()
|
|
end)
|
|
|
|
local Roact = require(script.Parent.Roact)
|
|
|
|
local Config = require(script.Config)
|
|
local App = require(script.App)
|
|
|
|
local app = Roact.createElement(App, {
|
|
plugin = plugin
|
|
})
|
|
local tree = Roact.mount(app, game:GetService("CoreGui"), "Rojo UI")
|
|
|
|
plugin.Unloading:Connect(function()
|
|
Roact.unmount(tree)
|
|
end)
|
|
|
|
if Config.isDevBuild then
|
|
local TestEZ = require(script.Parent.TestEZ)
|
|
|
|
require(script.runTests)(TestEZ)
|
|
end
|