@rbxts/app-forge 0.7.2-prototype.17 → 0.7.2-prototype.19
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/renders.luau +50 -6
- package/package.json +1 -1
package/out/renders.luau
CHANGED
|
@@ -32,7 +32,8 @@ do
|
|
|
32
32
|
self.__px = false
|
|
33
33
|
self.Rendered = {}
|
|
34
34
|
self.Render = function(props)
|
|
35
|
-
|
|
35
|
+
local _binding = props
|
|
36
|
+
local forge = _binding.forge
|
|
36
37
|
local _result = props.renders
|
|
37
38
|
if _result ~= nil then
|
|
38
39
|
_result = _result.groups
|
|
@@ -42,7 +43,47 @@ do
|
|
|
42
43
|
-- ▼ ReadonlyArray.forEach ▼
|
|
43
44
|
local _callback = function(group)
|
|
44
45
|
local groupEntries = self:getGroupEntries(group)
|
|
45
|
-
|
|
46
|
+
local _result_1 = props.renders
|
|
47
|
+
if _result_1 ~= nil then
|
|
48
|
+
_result_1 = _result_1.name
|
|
49
|
+
end
|
|
50
|
+
if _result_1 ~= "" and _result_1 then
|
|
51
|
+
local _name = props.renders.name
|
|
52
|
+
local _test = groupEntries[_name]
|
|
53
|
+
if _test ~= nil then
|
|
54
|
+
local _group = group
|
|
55
|
+
_test = _test[_group]
|
|
56
|
+
end
|
|
57
|
+
local test = _test
|
|
58
|
+
print("props.renders.name", test)
|
|
59
|
+
end
|
|
60
|
+
local _result_2 = props.renders
|
|
61
|
+
if _result_2 ~= nil then
|
|
62
|
+
_result_2 = _result_2.names
|
|
63
|
+
end
|
|
64
|
+
if _result_2 then
|
|
65
|
+
local test = {}
|
|
66
|
+
local _exp_1 = props.renders.names
|
|
67
|
+
-- ▼ ReadonlyArray.forEach ▼
|
|
68
|
+
local _callback_1 = function(name)
|
|
69
|
+
local _name = name
|
|
70
|
+
local _entry = groupEntries[_name]
|
|
71
|
+
if _entry ~= nil then
|
|
72
|
+
local _group = group
|
|
73
|
+
_entry = _entry[_group]
|
|
74
|
+
end
|
|
75
|
+
local entry = _entry
|
|
76
|
+
if not entry then
|
|
77
|
+
return forge.logger:log("INFO", `Failed to find a Name of {name} searching through group {group}`)
|
|
78
|
+
end
|
|
79
|
+
table.insert(test, entry)
|
|
80
|
+
end
|
|
81
|
+
for _k, _v in _exp_1 do
|
|
82
|
+
_callback_1(_v, _k - 1, _exp_1)
|
|
83
|
+
end
|
|
84
|
+
-- ▲ ReadonlyArray.forEach ▲
|
|
85
|
+
print("props.renders.namen", test)
|
|
86
|
+
end
|
|
46
87
|
end
|
|
47
88
|
for _k, _v in _exp do
|
|
48
89
|
_callback(_v, _k - 1, _exp)
|
|
@@ -72,15 +113,18 @@ do
|
|
|
72
113
|
end
|
|
73
114
|
end
|
|
74
115
|
function Renders:getGroupEntries(group)
|
|
75
|
-
local entries
|
|
116
|
+
local entries = {}
|
|
76
117
|
-- ▼ ReadonlyMap.forEach ▼
|
|
77
|
-
local _callback = function(regGroupEntries,
|
|
118
|
+
local _callback = function(regGroupEntries, name)
|
|
78
119
|
-- ▼ ReadonlyMap.forEach ▼
|
|
79
|
-
local _callback_1 = function(
|
|
120
|
+
local _callback_1 = function(_, regGroup)
|
|
80
121
|
if group ~= regGroup then
|
|
81
122
|
return nil
|
|
82
123
|
end
|
|
83
|
-
|
|
124
|
+
local _entries = entries
|
|
125
|
+
local _name = name
|
|
126
|
+
local _regGroupEntries = regGroupEntries
|
|
127
|
+
_entries[_name] = _regGroupEntries
|
|
84
128
|
end
|
|
85
129
|
for _k, _v in regGroupEntries do
|
|
86
130
|
_callback_1(_v, _k, regGroupEntries)
|