mirror of
https://gitea.com/SweetSea-ButImNotSweet/tromi_mobile.git
synced 2025-01-08 17:33:09 +08:00
Update virtual control texture
This commit is contained in:
@@ -18,20 +18,32 @@ end
|
||||
ShowLoadingText('virtual key skin')
|
||||
local empty_quad
|
||||
-- A table containing quads used to draw icons for virtual control system.
|
||||
-- local virtual_quad=setmetatable((function()
|
||||
-- local t={}
|
||||
-- local w=180
|
||||
-- empty_quad=gc_newQuad(0,0,1,1,5*w,7*w)
|
||||
-- for i,name in next,{
|
||||
-- 'left','right','up','down','',
|
||||
-- 'rotate_right','rotate_left','','','',
|
||||
-- '','','','','',
|
||||
-- '','','','','',
|
||||
-- '','','menu_back','','',
|
||||
-- '','','','','',
|
||||
-- '','','','','menu_decide',
|
||||
-- } do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,7*w) end end
|
||||
-- t.rotate_right2, t.rotate_left2 = t.rotate_right, t.rotate_left
|
||||
-- return t
|
||||
-- end)(),{
|
||||
-- __index=function() return empty_quad end
|
||||
-- })
|
||||
local virtual_quad=setmetatable((function()
|
||||
local t={}
|
||||
local w=180
|
||||
empty_quad=gc_newQuad(0,0,1,1,5*w,7*w)
|
||||
empty_quad=gc_newQuad(0,0,1,1,5*w,2*w)
|
||||
for i,name in next,{
|
||||
'left','right','up','down','',
|
||||
'rotate_right','rotate_left','','','',
|
||||
'','','','','',
|
||||
'','','','','',
|
||||
'','','menu_back','','',
|
||||
'','','','','',
|
||||
'','','','','menu_decide',
|
||||
} do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,7*w) end end
|
||||
t.rotate_right2, t.rotate_left2 = t.rotate_right, t.rotate_left
|
||||
'left','right','up','down','restart',
|
||||
'rotate_right','rotate_left','rotate_right2','rotate_left2','',
|
||||
} do if #name>0 then t[name]=gc_newQuad((i-1)%5*w,math.floor((i-1)/5)*w,w,w,5*w,2*w) end end
|
||||
return t
|
||||
end)(),{
|
||||
__index=function() return empty_quad end
|
||||
|
||||
Reference in New Issue
Block a user