Update VirtualControl.lua

This commit is contained in:
Nguyễn Quốc Hưng
2024-04-14 07:01:31 +07:00
committed by GitHub
parent a3bd3b6933
commit 9cfeb04176

View File

@@ -23,7 +23,7 @@ local virtual_quad=setmetatable((function()
for i,name in next,{
'left','right','up','down',
'rotate_left','rotate_right','rotate_left2','rotate_right2',
} do if #name>0 then t[name]=gc_newQuad((i-1)%4*w,math.floor((i-1)/4)*w,w,w,5*w,7*w) end end
} do if #name>0 then t[name]=gc_newQuad((i-1)%4*w,math.floor((i-1)/4)*w,w,w,4*w,2*w) end end -- 4x2 is the size of entire texture
return t
end)(),{
__index=function() return empty_quad end