Clean up development a little bit -- when 'dev' is set to true, port 8001 is used

This commit is contained in:
Lucien Greathouse
2017-12-03 19:20:54 -08:00
parent 34d5de9f2c
commit d0c6f2a470
3 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
return {
pollingRate = 0.3,
version = "DEV",
version = "v0.2.2",
dev = false,
}

View File

@@ -8,7 +8,9 @@ local Config = require(script.Parent.Config)
local function main()
local pluginInstance = Plugin.new()
local toolbar = plugin:CreateToolbar("Rojo Plugin v" .. Config.version)
local displayedVersion = Config.dev and "DEV" or Config.version
local toolbar = plugin:CreateToolbar("Rojo Plugin v" .. displayedVersion)
toolbar:CreateButton("Test Connection", "Connect to Rojo Server", "")
.Click:Connect(function()

View File

@@ -19,7 +19,7 @@ Plugin.__index = Plugin
function Plugin.new()
local address = "localhost"
local port = 8000
local port = Config.dev and 8001 or 8000
local remote = ("http://%s:%d"):format(address, port)