切换场景后自动触发一次控件的cursorMove

This commit is contained in:
MrZ626
2021-08-11 16:17:12 +08:00
parent 6262ad637d
commit 2ee2eb4274

View File

@@ -1248,6 +1248,7 @@ WIDGET.indexMeta={
function WIDGET.setWidgetList(list)
WIDGET.unFocus(true)
WIDGET.active=list or NONE
WIDGET.cursorMove(SCR.xOy:inverseTransformPoint(love.mouse.getPosition()))
--Reset all widgets
if list then