mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Clean up development a little bit -- when 'dev' is set to true, port 8001 is used
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
pollingRate = 0.3,
|
pollingRate = 0.3,
|
||||||
version = "DEV",
|
version = "v0.2.2",
|
||||||
|
dev = false,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,9 @@ local Config = require(script.Parent.Config)
|
|||||||
local function main()
|
local function main()
|
||||||
local pluginInstance = Plugin.new()
|
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", "")
|
toolbar:CreateButton("Test Connection", "Connect to Rojo Server", "")
|
||||||
.Click:Connect(function()
|
.Click:Connect(function()
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ Plugin.__index = Plugin
|
|||||||
|
|
||||||
function Plugin.new()
|
function Plugin.new()
|
||||||
local address = "localhost"
|
local address = "localhost"
|
||||||
local port = 8000
|
local port = Config.dev and 8001 or 8000
|
||||||
|
|
||||||
local remote = ("http://%s:%d"):format(address, port)
|
local remote = ("http://%s:%d"):format(address, port)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user