clear UI when escape is pressed
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
(set textInput.callback null)
|
(set textInput.callback null)
|
||||||
(set textInput null))
|
(set textInput null))
|
||||||
|
|
||||||
|
// Press ESCAPE to clear the UI and cancel any input
|
||||||
|
(when FlxG.keys.justPressed.ESCAPE
|
||||||
|
(clearUI))
|
||||||
|
|
||||||
// Scroll the UI with the mouse:
|
// Scroll the UI with the mouse:
|
||||||
(var UI_SCROLL_FACTOR 2)
|
(var UI_SCROLL_FACTOR 2)
|
||||||
(+= uiCamera.y (* FlxG.mouse.wheel UI_SCROLL_FACTOR))
|
(+= uiCamera.y (* FlxG.mouse.wheel UI_SCROLL_FACTOR))
|
||||||
|
|||||||
Reference in New Issue
Block a user