diff options
Diffstat (limited to 'spec/outputs/with.lua')
-rw-r--r-- | spec/outputs/with.lua | 82 |
1 files changed, 71 insertions, 11 deletions
diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua index 5d33bdb..530915e 100644 --- a/spec/outputs/with.lua +++ b/spec/outputs/with.lua | |||
@@ -158,17 +158,15 @@ do | |||
158 | } | 158 | } |
159 | end | 159 | end |
160 | do | 160 | do |
161 | do | 161 | local _with_0 = SolidRect({ |
162 | local _with_0 = SolidRect({ | 162 | width = w, |
163 | width = w, | 163 | height = h, |
164 | height = h, | 164 | color = 0x66000000 |
165 | color = 0x66000000 | 165 | }) |
166 | }) | 166 | mask = _with_0 |
167 | mask = _with_0 | 167 | if _with_0 ~= nil then |
168 | if _with_0 ~= nil then | 168 | _with_0.touchEnabled = true |
169 | _with_0.touchEnabled = true | 169 | _with_0.swallowTouches = true |
170 | _with_0.swallowTouches = true | ||
171 | end | ||
172 | end | 170 | end |
173 | end | 171 | end |
174 | do | 172 | do |
@@ -189,4 +187,66 @@ do | |||
189 | return _with_0[123] | 187 | return _with_0[123] |
190 | end | 188 | end |
191 | end | 189 | end |
190 | do | ||
191 | f((function() | ||
192 | local _with_0 = item | ||
193 | do | ||
194 | local _accum_0 | ||
195 | repeat | ||
196 | if _with_0.id > 0 then | ||
197 | _accum_0 = _with_0.content | ||
198 | break | ||
199 | end | ||
200 | until true | ||
201 | _with_0 = _accum_0 | ||
202 | end | ||
203 | return _with_0 | ||
204 | end)()) | ||
205 | local a | ||
206 | do | ||
207 | local _with_0 = tb | ||
208 | do | ||
209 | local _accum_0 | ||
210 | repeat | ||
211 | if _with_0.v then | ||
212 | _accum_0 = _with_0.a | ||
213 | break | ||
214 | end | ||
215 | until true | ||
216 | _with_0 = _accum_0 | ||
217 | end | ||
218 | a = _with_0 | ||
219 | end | ||
220 | local _accum_0 | ||
221 | while true do | ||
222 | local _with_0 = tb | ||
223 | local _accum_1 | ||
224 | repeat | ||
225 | if _with_0 ~= nil then | ||
226 | _accum_1 = 1 | ||
227 | break | ||
228 | end | ||
229 | until true | ||
230 | _with_0 = _accum_1 | ||
231 | _accum_0 = _with_0 | ||
232 | break | ||
233 | end | ||
234 | a = _accum_0 | ||
235 | end | ||
236 | do | ||
237 | local a | ||
238 | local _accum_0 | ||
239 | for i = 1, 100 do | ||
240 | local x = tb[i] | ||
241 | if x ~= nil then | ||
242 | local _des_0 = 1 | ||
243 | if _des_0 then | ||
244 | x.id = _des_0 | ||
245 | _accum_0 = x | ||
246 | break | ||
247 | end | ||
248 | end | ||
249 | end | ||
250 | a = _accum_0 | ||
251 | end | ||
192 | return nil | 252 | return nil |