mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Clean up development a little bit -- when 'dev' is set to true, port 8001 is used
This commit is contained in:
parent
34d5de9f2c
commit
d0c6f2a470
3 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue