控件更新时改回先刷新hide状态再选择是否update
This commit is contained in:
@@ -1383,13 +1383,13 @@ end
|
|||||||
|
|
||||||
function WIDGET.update()
|
function WIDGET.update()
|
||||||
for _,W in next,WIDGET.active do
|
for _,W in next,WIDGET.active do
|
||||||
if W.update then W:update()end
|
|
||||||
if W.hideF then
|
if W.hideF then
|
||||||
W.hide=W.hideF()
|
W.hide=W.hideF()
|
||||||
if W.hide and W==WIDGET.sel then
|
if W.hide and W==WIDGET.sel then
|
||||||
WIDGET.unFocus(true)
|
WIDGET.unFocus(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if W.update then W:update()end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
local widgetCanvas
|
local widgetCanvas
|
||||||
|
|||||||
Reference in New Issue
Block a user