Forráskód Böngészése

added sentinel pause

Nicolas Cannasse 8 éve
szülő
commit
985972db07
1 módosított fájl, 5 hozzáadás és 0 törlés
  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 {}
 
 }