Explorar el Código

Marked Interactive.cursor as nullable (#775)

Sébastien Bénard hace 5 años
padre
commit
bd08520a93
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      h2d/Interactive.hx
  2. 1 1
      h3d/scene/Interactive.hx

+ 1 - 1
h2d/Interactive.hx

@@ -14,7 +14,7 @@ class Interactive extends Drawable implements hxd.SceneEvents.Interactive {
 	/**
 		Cursor used when Interactive is under mouse cursor ( default : Button )
 	**/
-	public var cursor(default,set) : hxd.Cursor;
+	public var cursor(default,set) : Null<hxd.Cursor>;
 	/**
 		Should object collision be in rectangle or ellipse form? Ignored if `shape` is set.
 	**/

+ 1 - 1
h3d/scene/Interactive.hx

@@ -14,7 +14,7 @@ class Interactive extends Object implements hxd.SceneEvents.Interactive {
 	**/
 	@:s public var priority : Int;
 
-	public var cursor(default,set) : hxd.Cursor;
+	public var cursor(default,set) : Null<hxd.Cursor>;
 	/**
 		Set the default `cancel` mode (see `hxd.Event`), default to false.
 	**/