Improve plugin accuracy

This commit is contained in:
Lucien Greathouse
2017-12-01 00:18:11 -08:00
parent c7171ef513
commit 5e64773784
4 changed files with 73 additions and 33 deletions

View File

@@ -12,17 +12,26 @@ local function main()
toolbar:CreateButton("Test Connection", "Connect to Rojo Server", "")
.Click:Connect(function()
pluginInstance:connect()
:catch(function(err)
warn(err)
end)
end)
toolbar:CreateButton("Sync In", "Sync into Roblox Studio", "")
.Click:Connect(function()
pluginInstance:syncIn()
:catch(function(err)
warn(err)
end)
end)
toolbar:CreateButton("Toggle Polling", "Poll server for changes", "")
.Click:Connect(function()
spawn(function()
pluginInstance:togglePolling()
:catch(function(err)
warn(err)
end)
end)
end)
end