Skip to content

Commit

Permalink
fix(config): Remove Houserules and Variants menu
Browse files Browse the repository at this point in the history
No longer needed now functionality is in the sheet.
  • Loading branch information
symposion committed Apr 13, 2017
1 parent 7f9f1a5 commit 727abe2
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/modules/config-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class ConfigUi extends ShapedModule {
reflexMenu: new CustomSaveTypeMenu(this.myState.config, ShapedConfig.configOptionsSpec, 'reflex'),
willMenu: new CustomSaveTypeMenu(this.myState.config, ShapedConfig.configOptionsSpec, 'will'),
textMenu: new NewCharacterTextSizeMenu(this.myState.config, ShapedConfig.configOptionsSpec),
varsMenu: new VariantsMenu(this.myState.config, ShapedConfig.configOptionsSpec),
seMenu: new SheetEnhancementsMenu(this.myState.config, ShapedConfig.configOptionsSpec),
displayMenu: new DisplayMenu(this.myState.config, ShapedConfig.configOptionsSpec),
msMenu: new MeasurementSystemsMenu(this.myState.config, ShapedConfig.configOptionsSpec),
Expand Down Expand Up @@ -299,9 +298,6 @@ class MainMenu extends ConfigMenu {
}) +
this.makeOptionRow({
title: 'Char. Sheet Enhancements', path: 'seMenu', command: '', linkText: 'view -->',
}) +
this.makeOptionRow({
title: 'Houserules & Variants', path: 'varsMenu', command: '', linkText: 'view -->',
});

return {
Expand Down Expand Up @@ -886,31 +882,6 @@ class NewCharacterTextSizeMenu extends ConfigMenu {
}
}


class VariantsMenu extends ConfigMenu {
getMenuParts() {
const root = 'variants';
const menu = 'varsMenu';
const spec = this.specRoot.variants;

const optionRows =
this.makeQuerySetting({
path: `${root}.rests.longRestHPRecovery`, title: 'Long Rest HP Recovery', menuCmd: menu,
spec: spec.rests.longRestHPRecovery(),
}) +
this.makeQuerySetting({
path: `${root}.rests.longRestHDRecovery`, title: 'Long Rest HD Recovery', menuCmd: menu,
spec: spec.rests.longRestHDRecovery(),
});

return {
title: 'Houserules & Variants',
footerText: this.backToMainMenuButton(),
optionRows,
};
}
}

class SheetEnhancementsMenu extends ConfigMenu {
getMenuParts() {
const root = 'sheetEnhancements';
Expand Down

0 comments on commit 727abe2

Please sign in to comment.