可用于个人Lua、制作灾厄之章等等
Sync部分请个人自行研究 本人仅提供UI接口
查看更多本人的Lua教学请至:
范例图:
ui.lua
screen = UI.ScreenSize()
rectangleBGD=UI.Box.Create()
rectangleBGD:Set({x = screen.width/3+81, y = 3, width =368, height = 7, r = 179, g = 179, b = 179, a = 255})
rectangleBG=UI.Box.Create()
rectangleBG:Set({x = screen.width/3+81, y = 4, width =368, height = 4, r = 255, g = 255, b = 255, a = 255})
hypotenuse01 = {}
hypotenuse02 = {}
hypotenuse01BGD = {}
hypotenuse02BGD = {}
under_hypotenuse01 = {}
under_hypotenuse02 = {}
Round_rectangle=UI.Box.Create()
Round_rectangle:Set({x = screen.width/2-96, y = 10, width =200, height = 61, r = 56, g = 56, b = 56, a = 255})
for i=1,30 do
hypotenuse01[i]=UI.Box.Create()
hypotenuse01[i]:Set({x = screen.width/3+103+112, y = 9+(i*2), width =-135+(i*0.58), height = 1, r = 77, g = 77, b = 77, a = 255})
hypotenuse02[i]=UI.Box.Create()
hypotenuse02[i]:Set({x = screen.width/2+48, y = 9+(i*2), width =135-(i*0.58), height = 1, r = 77, g = 77, b = 77, a = 255})
hypotenuse01BGD[i]=UI.Box.Create()
hypotenuse01BGD[i]:Set({x = screen.width/3+103+112, y = 10+(i*2), width =-135+(i*0.58), height = 1, r = 58, g = 58, b = 58, a = 255})
hypotenuse02BGD[i]=UI.Box.Create()
hypotenuse02BGD[i]:Set({x = screen.width/2+48, y = 10+(i*2), width =135-(i*0.58), height = 1, r = 58, g = 58, b = 58, a = 255})
end
for i=1,10 do
under_hypotenuse01[i]=UI.Box.Create()
under_hypotenuse01[i]:Set({x = screen.width/2, y = 68+(i*2), width =-152+(i*0.58), height = 4, r = 44, g = 45, b = 46, a = 200})
under_hypotenuse02[i]=UI.Box.Create()
under_hypotenuse02[i]:Set({x = screen.width/2, y = 68+(i*2), width = 152-(i*0.58), height = 4, r = 44, g = 45, b = 46, a = 200})
end
Round=UI.Text.Create()
Round:Set({text=’ROUND’,font=’small’,align=’center’,x=screen.width/30-58,y=10,width=screen.width,height=50,r=122,g=122,b=122})
Rounds=UI.Text.Create()
Rounds:Set({text=’01’,font=’medium’,align=’center’,x=screen.width/30-58,y=35,width=screen.width,height=50,r=122,g=122,b=122})
TOTAL_KILL=UI.Text.Create()
TOTAL_KILL:Set({text=’TOTAL KILL’,font=’small’,align=’left’,x=screen.width/2-135,y=10,width=screen.width,height=50,r=122,g=122,b=122})
TOTAL_KILL_VALUE=UI.Text.Create()
TOTAL_KILL_VALUE:Set({text=’00’,font=’medium’,align=’right’,x=-53,y=35,width=screen.width/2,height=50,r=238,g=238,b=238})
KILL=UI.Text.Create()
KILL:Set({text=’KILL’,font=’small’,align=’left’,x=screen.width/2+50,y=10,width=screen.width,height=50,r=122,g=122,b=122})
KILL_VALUE=UI.Text.Create()
KILL_VALUE:Set({text=’00’,font=’medium’,align=’left’,x=screen.width/2+50,y=35,width=screen.width,height=50,r=238,g=238,b=238})
TIME=UI.Text.Create()
TIME:Set({text=’00:00:00′,font=’small’,align=’left’,x=screen.width/2-33,y=68,width=screen.width,height=50,r=238,g=238,b=238})
Shadow_Left = {}
Shadow_Right = {}
for i=1,30 do
Shadow_Right[i]=UI.Box.Create()
Shadow_Right[i]:Set({x = screen.width/2+48, y = 10, width =5+(i*3), height = 61, r = 35, g = 35, b = 35, a = 30-(i*1)})
Shadow_Left[i]=UI.Box.Create()
Shadow_Left[i]:Set({x = screen.width/3+103+112, y = 10, width =-5-(i*3), height = 61, r = 35, g = 35, b = 35, a = 30-(i*1)})
end