aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/with.lua
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-03-23 17:25:28 +0800
committerLi Jin <dragon-fly@qq.com>2025-03-23 17:25:28 +0800
commit08b68269ff6d6f868242dcefce75e1db26e4de61 (patch)
tree3c63e851edc5baa49ad0d180021c2ddecd77f013 /spec/outputs/with.lua
parent28bae6517f43c384a828df62b727517e26b3af9b (diff)
downloadyuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.tar.gz
yuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.tar.bz2
yuescript-08b68269ff6d6f868242dcefce75e1db26e4de61.zip
Fixed issue #198.
Diffstat (limited to 'spec/outputs/with.lua')
-rw-r--r--spec/outputs/with.lua20
1 files changed, 9 insertions, 11 deletions
diff --git a/spec/outputs/with.lua b/spec/outputs/with.lua
index 5d33bdb..1a795c1 100644
--- a/spec/outputs/with.lua
+++ b/spec/outputs/with.lua
@@ -158,17 +158,15 @@ do
158 } 158 }
159end 159end
160do 160do
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
173end 171end
174do 172do