Skip to content

Commit 75259b1

Browse files
committed
Added OpenURL action.
1 parent 670bd4e commit 75259b1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.bladecoder.engine.actions;
2+
3+
import com.badlogic.gdx.Gdx;
4+
import com.bladecoder.engine.model.VerbRunner;
5+
6+
@ActionDescription("Open an URL in the default Browser")
7+
public class OpenURLAction implements Action {
8+
@ActionProperty(required=true)
9+
@ActionPropertyDescription("The URL")
10+
private String url;
11+
12+
@Override
13+
public boolean run(VerbRunner cb) {
14+
15+
Gdx.net.openURI(url);
16+
17+
return false;
18+
}
19+
}

0 commit comments

Comments
 (0)