Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions characters/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ angular.module('optc') .run(function($rootScope, $timeout, $storage) {
}
}
}
//filter rumble style
if (filters.styleATK && unit.pirateFest.class !== "ATK") return false;
if (filters.styleDEF && unit.pirateFest.class !== "DEF") return false;
if (filters.styleRCV && unit.pirateFest.class !== "RCV") return false;
if (filters.styleSPT && unit.pirateFest.class !== "SPT") return false;
if (filters.styleDBF && unit.pirateFest.class !== "DBF") return false;
// filter by stars
if (filters.stars && filters.stars.length && filters.stars.indexOf(unit.stars) == -1) return false;
// filter by cost
Expand Down
19 changes: 19 additions & 0 deletions characters/views/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,25 @@
ng-click="filters.superTypeUnits = !filters.superTypeUnits">Show Super Type/Class Character Units</span>
</div>

<div class="filter-container expandable" id="rumble-style-filter" ng-class="{ expanded: !filters.rumbleStyleEnabled }">
<span class="filter-header" ng-click="filters.rumbleStyleEnabled = !filters.rumbleStyleEnabled">
Rumble style filters
<i class="pull-right fa fa-{{filters.rumbleStyleEnabled ? 'chevron-up' : 'chevron-down'}}"></i>
</span>
<span class="filter width-12 exc" ng-model="filters.styleATK" ng-class="{ active: filters.styleATK }"
ng-click="filters.styleATK = !filters.styleATK">ATK</span>
<span class="filter width-12 exc" ng-model="filters.styleDEF" ng-class="{ active: filters.styleDEF }"
ng-click="filters.styleDEF = !filters.styleDEF">DEF</span>
<span class="filter width-12 exc" ng-model="filters.styleRCV" ng-class="{ active: filters.styleRCV }"
ng-click="filters.styleRCV = !filters.styleRCV">RCV</span>
<span class="filter width-12 exc" ng-model="filters.styleSPT" ng-class="{ active: filters.styleSPT }"
ng-click="filters.styleSPT = !filters.styleSPT">SPT</span>
<span class="filter width-12 exc" ng-model="filters.styleDBF" ng-class="{ active: filters.styleDBF }"
ng-click="filters.styleDBF = !filters.styleDBF">DBF</span>
<span class="filter width-12 exc" ng-model="filters.styleBAL" ng-class="{ active: filters.styleBAL }"
ng-click="filters.styleBAL = !filters.styleBAL">BAL</span>
</div>

<div class="filter-container expandable" id="class-filter"
ng-class="{ expanded: !filters.classEnabled }">
<span class="filter-header" ng-click="filters.classEnabled = !filters.classEnabled">
Expand Down