Skip to content

Commit

Permalink
fixed default setting bug + better setting labels
Browse files Browse the repository at this point in the history
  • Loading branch information
prevostc committed Jan 11, 2015
1 parent 201f9b9 commit 49982c1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@


$scope.harborGenerationStrategyOptions = [
{id: 'separate-tiles', label: 'Separate Tiles'},
{id: 'coast-bars', label: 'Coast Bars'}
{id: 'separate-tiles', label: 'Separate Tiles (18 tiles)'},
{id: 'coast-bars', label: 'Enclosing edges bars (6 long pieces)'}
];
var selectedHarborGenerationStrategyValue = Settings.getHarborGenerationStrategy();
$scope.selectedHarborGenerationStrategy = null;
Expand Down
2 changes: 1 addition & 1 deletion www/js/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},

getHarborGenerationStrategy: function () {
return localStorageService.get('harborGenerationStrategy') || 12;
return localStorageService.get('harborGenerationStrategy') || 'coast-bars';
},
setHarborGenerationStrategy: function (harborGenerationStrategy) {
localStorageService.set('harborGenerationStrategy', harborGenerationStrategy);
Expand Down
2 changes: 1 addition & 1 deletion www/templates/tab-settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</label>
<label class="item item-input item-select">
<div class="input-label">
Harbor Generation Strategy
Ocean-Harbor tile type
</div>
<select ng-model="selectedHarborGenerationStrategy"
ng-change="updateHarborGenerationStrategy()"
Expand Down

0 comments on commit 49982c1

Please sign in to comment.