Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Oct 15, 2015
1 parent bbc60b6 commit 4f50b38
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
16 changes: 9 additions & 7 deletions cfg/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"name": "ssgl-dev",
"name": "SSGL",
"version": "0.0.0",
"main": "../src/index.html",
"window": {
"toolbar": true,
"toolbar": false,
"width": 1000,
"height": 550,
"resizable": true
"height": 650,
"resizable": false,
"title" : "Super Shotgun Launcher (loading...)"
},
"devDependencies": {
"recursive-readdir": "*"
"devDependencies": {
"recursive-readdir": "*"
}
}
}

4 changes: 2 additions & 2 deletions doom-launcher.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
[
{
"name": "Start NW",
"cmd": ["nw/nw.exe", "--enable-logging", "${project_path:${file_path}}"],
"working_dir": "${project_path:${file_path}}",
"shell_cmd": "nw -d",
"working_dir": "${project_path}",
"path": "./nw",
"shell": true
},
Expand Down
5 changes: 5 additions & 0 deletions src/app/controllers/appController.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@
nwService.getShell().openItem($scope.config.wadpath);
};

//TODO: doc
$scope.openDevTools = function() {
nwService.devTools();
};

/**
* Opens Oblige
*
Expand Down
4 changes: 3 additions & 1 deletion src/app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ var app = angular.module('ssgl', ['ngMaterial', 'ui.router']);
var args = nwService.getArgs();

if (args[0] === '-d' || args[0] === '--devtools') {
nwService.devTools();
$rootScope.DEVELOPER = true;
} else {
$rootScope.DEVELOPER = false;
}

$rootScope.config = nwService.readSyncJSON(nwService.buildPath(['config.json']), true);
Expand Down
6 changes: 5 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 style="margin-left: 10px;">Super Shotgun Launcher</h1>
</md-button>

<md-menu-content width="6">

<md-menu-item>
<md-button ng-click="openWADFolder()">Open WAD Folder</md-button>
</md-menu-item>
Expand All @@ -47,6 +47,10 @@ <h1 style="margin-left: 10px;">Super Shotgun Launcher</h1>
<md-button>About</md-button>
</md-menu-item>

<md-menu-item ng-show="DEVELOPER">
<md-button ng-click="openDevTools()"><i class="mdi mdi-code-not-equal-variant"></i> Open DevTools</md-button>
</md-menu-item>

</md-menu-content>

</md-menu>
Expand Down

0 comments on commit 4f50b38

Please sign in to comment.