使用元表输出控件信息

This commit is contained in:
MrZ626
2020-09-21 16:55:20 +08:00
parent 9303821c0f
commit 5c21b10686
2 changed files with 42 additions and 28 deletions

View File

@@ -206,14 +206,7 @@ function love.keypressed(i)
P:lose()
end
end
elseif i=="q"then
local W=WIDGET.sel
if W then W:printInfo()end
elseif i=="e"then
for k,v in next,_G do
DBP(k,v)
end
elseif WIDGET.sel then
elseif i=="f7"then for k,v in next,_G do DBP(k,v)end
local W=WIDGET.sel
if i=="left"then W.x=W.x-10
elseif i=="right"then W.x=W.x+10