com.watabou.glscripts.Script Java Examples

The following examples show how to use com.watabou.glscripts.Script. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Game.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onPause() {
	super.onPause();
	
	if (scene != null) {
		scene.pause();
	}
	
	view.onPause();
	Script.reset();
	
	Music.INSTANCE.pause();
	Sample.INSTANCE.pause();
}
 
Example #2
Source File: Game.java    From shattered-pixel-dungeon with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void pause() {
	paused = true;
	
	if (scene != null) {
		scene.onPause();
	}
	
	Script.reset();
}
 
Example #3
Source File: Game.java    From remixed-dungeon with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onPause() {
    super.onPause();
    paused = true;
    view.onPause();

    if (scene != null) { // view.onPause will wait for gl thread, so it safe to access scene here
        scene.pause();
    }

    Music.INSTANCE.pause();
    Sample.INSTANCE.pause();

    Script.reset();
}
 
Example #4
Source File: Game.java    From PD-classes with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void onPause() {
	super.onPause();
	
	if (scene != null) {
		scene.pause();
	}
	
	view.onPause();
	Script.reset();
	
	Music.INSTANCE.pause();
	Sample.INSTANCE.pause();
}
 
Example #5
Source File: Game.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void pause() {
	if (scene != null) {
		scene.onPause();
	}
	
	Script.reset();
	
	Music.INSTANCE.pause();
	Sample.INSTANCE.pause();
}
 
Example #6
Source File: NoosaScript.java    From YetAnotherPixelDungeon with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScript get() {
	return Script.use( NoosaScript.class );
}
 
Example #7
Source File: NoosaScriptNoLighting.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScriptNoLighting get(){
	return Script.use( NoosaScriptNoLighting.class );
}
 
Example #8
Source File: NoosaScript.java    From shattered-pixel-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScript get() {
	return Script.use( NoosaScript.class );
}
 
Example #9
Source File: MaskedTilemapScript.java    From remixed-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static MaskedTilemapScript get() {
    return Script.use(MaskedTilemapScript.class);
}
 
Example #10
Source File: NoosaScript.java    From remixed-dungeon with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScript get() {
	return Script.use( NoosaScript.class );
}
 
Example #11
Source File: NoosaScript.java    From PD-classes with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScript get() {
	return Script.use( NoosaScript.class );
}
 
Example #12
Source File: NoosaScriptNoLighting.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScriptNoLighting get(){
	return Script.use( NoosaScriptNoLighting.class );
}
 
Example #13
Source File: NoosaScript.java    From shattered-pixel-dungeon-gdx with GNU General Public License v3.0 4 votes vote down vote up
public static NoosaScript get() {
	return Script.use( NoosaScript.class );
}