切换场景后自动触发一次控件的cursorMove
This commit is contained in:
@@ -1248,6 +1248,7 @@ WIDGET.indexMeta={
|
|||||||
function WIDGET.setWidgetList(list)
|
function WIDGET.setWidgetList(list)
|
||||||
WIDGET.unFocus(true)
|
WIDGET.unFocus(true)
|
||||||
WIDGET.active=list or NONE
|
WIDGET.active=list or NONE
|
||||||
|
WIDGET.cursorMove(SCR.xOy:inverseTransformPoint(love.mouse.getPosition()))
|
||||||
|
|
||||||
--Reset all widgets
|
--Reset all widgets
|
||||||
if list then
|
if list then
|
||||||
|
|||||||
Reference in New Issue
Block a user