帮助界面二维码使用图片控件

This commit is contained in:
MrZ626
2020-10-19 12:00:07 +08:00
parent 60c656fd38
commit 4cdf3f52b5
3 changed files with 11 additions and 14 deletions

View File

@@ -58,20 +58,17 @@ function image:reset()
end
function image:draw()
gc.setColor(1,1,1,self.alpha)
gc.draw(self.img,self.x,self.y,self.ang,self.kx,self.ky,self.ox,self.oy)
gc.draw(self.img,self.x,self.y,self.ang,self.k)
end
function WIDGET.newImage(D)
local _={
name= D.name,
img= D.img,
alpha= D.alpha or 1,
img= D.img or D.name,
alpha= D.alpha,
x= D.x,
y= D.y,
ang= D.ang,
kx= D.kx,
ky= D.ky,
ox= D.ox,
oy= D.oy,
k= D.k,
hide= D.hide,
}
for k,v in next,image do _[k]=v end

View File

@@ -634,11 +634,13 @@ local Widgets={
newButton({name="back", x=640, y=600,w=200,h=80,font=35,code=BACK}),
},
help={
newButton({name="dict", x=1140, y=410,w=220,h=70, font=35,code=goScene("dict")}),
newButton({name="staff", x=1140, y=490,w=220,h=70, font=35,code=goScene("staff")}),
newButton({name="his", x=1140, y=570,w=220,h=70, font=35,code=goScene("history")}),
newButton({name="qq", x=1140, y=650,w=220,h=70, font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=mobileHide}),
newButton({name="back", x=640, y=600,w=170,h=80, font=35,code=BACK}),
newImage({name="pay1", x=20, y=20}),
newImage({name="pay2", x=1014, y=20}),
newButton({name="dict", x=1140, y=410,w=220,h=70,font=35,code=goScene("dict")}),
newButton({name="staff", x=1140, y=490,w=220,h=70,font=35,code=goScene("staff")}),
newButton({name="his", x=1140, y=570,w=220,h=70,font=35,code=goScene("history")}),
newButton({name="qq", x=1140, y=650,w=220,h=70,font=35,code=function()love.system.openURL("tencent://message/?uin=1046101471&Site=&Menu=yes")end,hide=mobileHide}),
newButton({name="back", x=640, y=600,w=170,h=80,font=35,code=BACK}),
},
dict={
newText({name="title", x=20,y=5,font=70,align="L"}),