@rbxts/centurion-ui 1.0.0-dev-a7b777e → 1.0.0-dev-c2dc3d9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/app/init.lua +10 -3
- package/package.json +3 -4
package/out/app/init.lua
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
1
|
-- Compiled with roblox-ts v2.3.0-dev-26ec859
|
|
2
2
|
local TS = _G[script]
|
|
3
|
-
local Signal = TS.import(script, TS.getModule(script, "@rbxts", "beacon").out).Signal
|
|
4
3
|
local _services = TS.import(script, TS.getModule(script, "@rbxts", "services"))
|
|
5
4
|
local ContentProvider = _services.ContentProvider
|
|
6
5
|
local Players = _services.Players
|
|
7
6
|
local mount = TS.import(script, TS.getModule(script, "@rbxts", "vide").src).mount
|
|
8
7
|
local DEFAULT_INTERFACE_OPTIONS = TS.import(script, script.Parent, "constants", "options").DEFAULT_INTERFACE_OPTIONS
|
|
8
|
+
local interfaceOptions = TS.import(script, script.Parent, "store").interfaceOptions
|
|
9
9
|
local CenturionApp = TS.import(script, script, "centurion-app").CenturionApp
|
|
10
10
|
local CenturionUI = {}
|
|
11
11
|
do
|
|
12
12
|
local _container = CenturionUI
|
|
13
13
|
local MAX_PRELOAD_ATTEMPTS = 3
|
|
14
14
|
local PRELOAD_ATTEMPT_INTERVAL = 3
|
|
15
|
-
local optionsChanged = Signal.new()
|
|
16
15
|
local function updateOptions(options)
|
|
17
|
-
|
|
16
|
+
interfaceOptions(function(prev)
|
|
17
|
+
local _object = table.clone(prev)
|
|
18
|
+
setmetatable(_object, nil)
|
|
19
|
+
for _k, _v in options do
|
|
20
|
+
_object[_k] = _v
|
|
21
|
+
end
|
|
22
|
+
return _object
|
|
23
|
+
end)
|
|
18
24
|
end
|
|
19
25
|
_container.updateOptions = updateOptions
|
|
20
26
|
local function create(options)
|
|
@@ -22,6 +28,7 @@ do
|
|
|
22
28
|
options = {}
|
|
23
29
|
end
|
|
24
30
|
return function(api)
|
|
31
|
+
updateOptions(options)
|
|
25
32
|
-- Attempt to preload font
|
|
26
33
|
task.spawn(function()
|
|
27
34
|
local _result = options.font
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rbxts/centurion-ui",
|
|
3
3
|
"description": "Terminal UI for the Centurion command framework",
|
|
4
|
-
"version": "1.0.0-dev-
|
|
4
|
+
"version": "1.0.0-dev-c2dc3d9",
|
|
5
5
|
"author": "paradoxuum",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "out/init.lua",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dev": "shx rm -rf out && rbxtsc -w"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@rbxts/centurion": "^1.0.0-dev-
|
|
35
|
+
"@rbxts/centurion": "^1.0.0-dev-c2dc3d9",
|
|
36
36
|
"@rbxts/compiler-types": "2.3.0-types.1",
|
|
37
37
|
"@rbxts/types": "^1.0.790",
|
|
38
38
|
"roblox-ts": "2.3.0-dev-26ec859",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"typescript": "~5.5.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@rbxts/beacon": "^2.1.1",
|
|
44
43
|
"@rbxts/charm": "^0.5.2",
|
|
45
44
|
"@rbxts/ripple": "^0.8.2",
|
|
46
45
|
"@rbxts/services": "^1.5.4",
|
|
@@ -48,7 +47,7 @@
|
|
|
48
47
|
"@rbxts/vide": "^0.4.1"
|
|
49
48
|
},
|
|
50
49
|
"peerDependencies": {
|
|
51
|
-
"@rbxts/centurion": "^1.0.0-dev-
|
|
50
|
+
"@rbxts/centurion": "^1.0.0-dev-c2dc3d9"
|
|
52
51
|
},
|
|
53
52
|
"stableVersion": "0.1.0"
|
|
54
53
|
}
|