Przeglądaj źródła

Marked Interactive.cursor as nullable (#775)

Sébastien Bénard 5 lat temu
rodzic
commit
bd08520a93
2 zmienionych plików z 2 dodań i 2 usunięć
  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 )
 		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.
 		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;
 	@: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.
 		Set the default `cancel` mode (see `hxd.Event`), default to false.
 	**/
 	**/