All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bladecoder.engine.actions.OpenURLAction Maven / Gradle / Ivy

The newest version!
package com.bladecoder.engine.actions;

import com.badlogic.gdx.Gdx;
import com.bladecoder.engine.model.VerbRunner;
import com.bladecoder.engine.model.World;

@ActionDescription("Open an URL in the default Browser")
public class OpenURLAction implements Action {
	@ActionProperty(required=true)
	@ActionPropertyDescription("The URL")
	private String url;
	
	@Override
	public void init(World w) {
	}

	@Override
	public boolean run(VerbRunner cb) {
		
		Gdx.net.openURI(url);
		
		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy