@rbxts/centurion-ui 1.0.0-dev-ba19f7f → 1.0.0-dev-d309887
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
|
@@ -26,12 +26,12 @@ do
|
|
|
26
26
|
_container.setVisible = setVisible
|
|
27
27
|
local function updateOptions(options)
|
|
28
28
|
interfaceOptions(function(prev)
|
|
29
|
-
local _object = table.clone(
|
|
29
|
+
local _object = table.clone(DEFAULT_INTERFACE_OPTIONS)
|
|
30
30
|
setmetatable(_object, nil)
|
|
31
|
-
for _k, _v in
|
|
31
|
+
for _k, _v in prev do
|
|
32
32
|
_object[_k] = _v
|
|
33
33
|
end
|
|
34
|
-
for _k, _v in
|
|
34
|
+
for _k, _v in options do
|
|
35
35
|
_object[_k] = _v
|
|
36
36
|
end
|
|
37
37
|
return _object
|
|
@@ -3,6 +3,7 @@ local TS = _G[script]
|
|
|
3
3
|
local Vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
4
4
|
local function Group(props)
|
|
5
5
|
return Vide.jsx("frame", {
|
|
6
|
+
Name = props.name,
|
|
6
7
|
Size = props.size or UDim2.fromScale(1, 1),
|
|
7
8
|
Position = props.position,
|
|
8
9
|
AnchorPoint = props.anchorPoint,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import Vide, { Derivable } from "@rbxts/vide";
|
|
2
2
|
interface LayerProps extends Vide.PropsWithChildren {
|
|
3
|
+
name?: Derivable<string>;
|
|
3
4
|
visible?: Derivable<boolean>;
|
|
4
5
|
displayOrder?: Derivable<number>;
|
|
5
6
|
}
|
|
6
|
-
export declare function Layer({ visible, displayOrder, children }: LayerProps): Vide.Node;
|
|
7
|
+
export declare function Layer({ name, visible, displayOrder, children }: LayerProps): Vide.Node;
|
|
7
8
|
export {};
|
|
@@ -4,10 +4,12 @@ local Vide = TS.import(script, TS.getModule(script, "@rbxts", "vide").src)
|
|
|
4
4
|
local IS_EDIT = TS.import(script, script.Parent.Parent.Parent, "constants", "util").IS_EDIT
|
|
5
5
|
local Group = TS.import(script, script.Parent, "group").Group
|
|
6
6
|
local function Layer(_param)
|
|
7
|
+
local name = _param.name
|
|
7
8
|
local visible = _param.visible
|
|
8
9
|
local displayOrder = _param.displayOrder
|
|
9
10
|
local children = _param.children
|
|
10
11
|
return if IS_EDIT then (Vide.jsx(Group, {
|
|
12
|
+
name = name,
|
|
11
13
|
visible = visible,
|
|
12
14
|
zIndex = displayOrder,
|
|
13
15
|
}, children)) else (Vide.jsx("screengui", {
|
|
@@ -16,6 +18,7 @@ local function Layer(_param)
|
|
|
16
18
|
DisplayOrder = displayOrder,
|
|
17
19
|
IgnoreGuiInset = true,
|
|
18
20
|
ZIndexBehavior = "Sibling",
|
|
21
|
+
Name = name,
|
|
19
22
|
}, children))
|
|
20
23
|
end
|
|
21
24
|
return {
|
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-d309887",
|
|
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-d309887",
|
|
36
36
|
"@rbxts/compiler-types": "2.3.0-types.1",
|
|
37
37
|
"@rbxts/types": "^1.0.794",
|
|
38
38
|
"roblox-ts": "2.3.0-dev-26ec859",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@rbxts/vide": "^0.4.2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@rbxts/centurion": "
|
|
50
|
+
"@rbxts/centurion": "^1.0.0-dev-d309887"
|
|
51
51
|
},
|
|
52
52
|
"stableVersion": "1.0.0"
|
|
53
53
|
}
|