From a459610c09ad52c1acee9b82bb3163f8bba2b5a6 Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 21 Apr 2017 15:10:33 +0200 Subject: [PATCH] Added library UI for selecting a library item --- rpg-docs/Model/Inventory/Items.js | 3 + .../inventory/itemDialog/itemDialog.html | 2 +- .../inventory/itemDialog/itemDialog.js | 15 +++++ .../itemLibraryDialog/itemLibraryDialog.css | 7 +++ .../itemLibraryDialog/itemLibraryDialog.html | 54 ++++++++++++++++++ .../itemLibraryDialog/itemLibraryDialog.js | 57 +++++++++++++++++++ .../paperTemplates/baseDialog/baseDialog.html | 6 ++ 7 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 rpg-docs/client/views/character/inventory/itemLibraryDialog/itemLibraryDialog.css create mode 100644 rpg-docs/client/views/character/inventory/itemLibraryDialog/itemLibraryDialog.html create mode 100644 rpg-docs/client/views/character/inventory/itemLibraryDialog/itemLibraryDialog.js diff --git a/rpg-docs/Model/Inventory/Items.js b/rpg-docs/Model/Inventory/Items.js index b266968a..ae4c88ef 100644 --- a/rpg-docs/Model/Inventory/Items.js +++ b/rpg-docs/Model/Inventory/Items.js @@ -10,6 +10,9 @@ Schemas.Item = new SimpleSchema({ value: {type: Number, min: 0, defaultValue: 0, decimal: true}, enabled: {type: Boolean, defaultValue: false}, requiresAttunement: {type: Boolean, defaultValue: false}, + category: {type: String, optional: true, allowedValues: [ + "adventuringGear", "armor", "weapons", "tools", + ],}, "settings.showIncrement": {type: Boolean, defaultValue: false}, color: { type: String, diff --git a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html index b9aef095..31f2a52a 100644 --- a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html +++ b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.html @@ -1,6 +1,6 @@