mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 20:21:38 +00:00
Clearer names and titles
This commit is contained in:
parent
6a5876c287
commit
2a8cb118d5
1 changed files with 8 additions and 8 deletions
|
|
@ -65,7 +65,7 @@ function App:init()
|
||||||
guiEnabled = false,
|
guiEnabled = false,
|
||||||
notifications = {},
|
notifications = {},
|
||||||
toolbarIcon = Assets.Images.PluginButton,
|
toolbarIcon = Assets.Images.PluginButton,
|
||||||
popups = {},
|
permissionPopups = {},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -210,7 +210,7 @@ function App:requestPermission(source: string, name: string, apis: {string}, ini
|
||||||
local responseEvent = Instance.new("BindableEvent")
|
local responseEvent = Instance.new("BindableEvent")
|
||||||
|
|
||||||
self:setState(function(state)
|
self:setState(function(state)
|
||||||
state.popups[source] = {
|
state.permissionPopups[source] = {
|
||||||
responseEvent = responseEvent,
|
responseEvent = responseEvent,
|
||||||
initialState = initialState,
|
initialState = initialState,
|
||||||
name = name,
|
name = name,
|
||||||
|
|
@ -232,7 +232,7 @@ function App:requestPermission(source: string, name: string, apis: {string}, ini
|
||||||
responseEvent:Destroy()
|
responseEvent:Destroy()
|
||||||
|
|
||||||
self:setState(function(state)
|
self:setState(function(state)
|
||||||
state.popups[source] = nil
|
state.permissionPopups[source] = nil
|
||||||
return state
|
return state
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
@ -399,11 +399,11 @@ function App:render()
|
||||||
return e(Page, props)
|
return e(Page, props)
|
||||||
end
|
end
|
||||||
|
|
||||||
local popups = {}
|
local permissionPopups = {}
|
||||||
for id, popup in self.state.popups do
|
for id, popup in self.state.permissionPopups do
|
||||||
popups["Rojo_"..id] = e(StudioPluginGui, {
|
permissionPopups["Rojo_"..id] = e(StudioPluginGui, {
|
||||||
id = id,
|
id = id,
|
||||||
title = popup.name .. " Popup",
|
title = popup.name .. " Permissions",
|
||||||
active = true,
|
active = true,
|
||||||
|
|
||||||
initDockState = Enum.InitialDockState.Top,
|
initDockState = Enum.InitialDockState.Top,
|
||||||
|
|
@ -441,7 +441,7 @@ function App:render()
|
||||||
value = self.props.plugin,
|
value = self.props.plugin,
|
||||||
}, {
|
}, {
|
||||||
e(Theme.StudioProvider, nil, {
|
e(Theme.StudioProvider, nil, {
|
||||||
popups = Roact.createFragment(popups),
|
permissionPopups = Roact.createFragment(permissionPopups),
|
||||||
|
|
||||||
gui = e(StudioPluginGui, {
|
gui = e(StudioPluginGui, {
|
||||||
id = pluginName,
|
id = pluginName,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue