Skip to content

Commit

Permalink
smartened up linkTo method
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBurchard committed Sep 12, 2010
1 parent 787295b commit 22e5ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 6 additions & 2 deletions akihabara/help.js
Expand Up @@ -420,8 +420,12 @@ var help={
return ((typeof(v) !== 'undefined') || (v===null));
},

linkTo:function(linkName) {
window.location = gbox.getLink(linkName);
linkTo:function(linkName, typeOfLink) {
if (typeOfLink === "newWindow")
window.open(gbox.getLink(linkName, ""));
else
window.location = gbox.getLink(linkName);

},
/**
* Automatically configures a bunch of settings depending on the web browser and device that is viewing the game. Mostly sets the maximum number of audio channels and touch settings.
Expand Down
3 changes: 0 additions & 3 deletions resources/barerpg/bundle-sprites.js
Expand Up @@ -61,9 +61,6 @@
toys.topview.adjustZindex(this);
if (!this.stilltimer&&!this.killed) toys.topview.setFrame(this); // set the right animation frame (if not attacking)

if (gbox.keyIsHit("b")){
help.linkTo("google");
}
},
blit:function() {

Expand Down

0 comments on commit 22e5ad5

Please sign in to comment.