@rbxts/centurion-ui 1.0.0-dev-a7b777e → 1.0.0-dev-d5e9351
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
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
|
|
@@ -85,7 +85,6 @@ local function Suggestions()
|
|
|
85
85
|
suggestionSizeMotion:spring(UDim2.fromOffset(windowWidth, windowHeight), springs.responsive)
|
|
86
86
|
end)
|
|
87
87
|
return Vide.jsx(Group, {
|
|
88
|
-
size = UDim2.fromScale(1, 1),
|
|
89
88
|
visible = currentSuggestion ~= nil,
|
|
90
89
|
}, Vide.jsx(MainSuggestion, {
|
|
91
90
|
suggestion = suggestion,
|
package/out/palette.d.ts
CHANGED
|
@@ -44,13 +44,4 @@ export declare const DefaultPalette: {
|
|
|
44
44
|
readonly success: Color3;
|
|
45
45
|
readonly error: Color3;
|
|
46
46
|
};
|
|
47
|
-
readonly builder: {
|
|
48
|
-
readonly background: Color3;
|
|
49
|
-
readonly surface: Color3;
|
|
50
|
-
readonly text: Color3;
|
|
51
|
-
readonly subtext: Color3;
|
|
52
|
-
readonly highlight: Color3;
|
|
53
|
-
readonly success: Color3;
|
|
54
|
-
readonly error: Color3;
|
|
55
|
-
};
|
|
56
47
|
};
|
package/out/palette.lua
CHANGED
|
@@ -36,15 +36,6 @@ local DefaultPalette = {
|
|
|
36
36
|
success = Color3.fromRGB(64, 160, 43),
|
|
37
37
|
error = Color3.fromRGB(210, 15, 57),
|
|
38
38
|
},
|
|
39
|
-
builder = {
|
|
40
|
-
background = Color3.fromRGB(0, 0, 0),
|
|
41
|
-
surface = Color3.fromRGB(53, 53, 53),
|
|
42
|
-
text = Color3.fromRGB(255, 255, 255),
|
|
43
|
-
subtext = Color3.fromRGB(162, 162, 162),
|
|
44
|
-
highlight = Color3.fromRGB(239, 122, 54),
|
|
45
|
-
success = Color3.fromRGB(78, 204, 90),
|
|
46
|
-
error = Color3.fromRGB(255, 68, 68),
|
|
47
|
-
},
|
|
48
39
|
}
|
|
49
40
|
return {
|
|
50
41
|
DefaultPalette = DefaultPalette,
|
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-d5e9351",
|
|
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-d5e9351",
|
|
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-d5e9351"
|
|
52
51
|
},
|
|
53
|
-
"stableVersion": "
|
|
52
|
+
"stableVersion": "1.0.0"
|
|
54
53
|
}
|