Jelajahi Sumber

added sentinel pause

Nicolas Cannasse 8 tahun lalu
induk
melakukan
985972db07
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      std/hl/UI.hx

+ 5 - 0
std/hl/UI.hx

@@ -28,6 +28,10 @@ abstract Sentinel(SentinelHandle) {
 	public function new( timeout, callback ) {
 		this = create_sentinel(timeout,callback);
 	}
+	
+	public function setPause( p : Bool ) {
+		_pause(this, p);
+	}
 
 	public function tick() {
 		_tick(this);
@@ -38,6 +42,7 @@ abstract Sentinel(SentinelHandle) {
 	}
 
 	@:hlNative("ui","ui_sentinel_tick") static function _tick( h : SentinelHandle ) : Void {}
+	@:hlNative("ui","ui_sentinel_pause") static function _pause( h : SentinelHandle, b : Bool ) : Void {}
 
 }