正方形按钮控件省略宽度信息

This commit is contained in:
MrZ626
2020-08-28 11:39:20 +08:00
parent b9722dcca1
commit ea1fe0237c
2 changed files with 80 additions and 78 deletions

View File

@@ -310,6 +310,7 @@ function WIDGET.newImage(D)
}for k,v in next,button do _[k]=v end return _
end
function WIDGET.newButton(D)
if not D.h then D.h=D.w end
local _={
name= D.name,
@@ -333,6 +334,7 @@ function WIDGET.newButton(D)
}for k,v in next,button do _[k]=v end return _
end
function WIDGET.newKey(D)
if not D.h then D.h=D.w end
local _={
name= D.name,