COLUMNS! no more flexbox shenanigans

This commit is contained in:
Thaum
2015-02-16 14:26:26 +00:00
parent 28aed14cda
commit d18c58c5ed
20 changed files with 93 additions and 95 deletions

View File

@@ -188,7 +188,7 @@ Schemas.Character = new SimpleSchema({
owner: { type: String, regEx: SimpleSchema.RegEx.Id },
readers: { type: [String], regEx: SimpleSchema.RegEx.Id },
writers: { type: [String], regEx: SimpleSchema.RegEx.Id },
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "grey"}
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
//TODO add per-character settings
});

View File

@@ -7,7 +7,7 @@ Schemas.Feature = new SimpleSchema({
uses: {type: String, optional: true, trim: false},
used: {type: Number, defaultValue: 0},
reset: {type: String, allowedValues: ["manual", "longRest", "shortRest"], defaultValue: "manual"},
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"}
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
});
Features.attachSchema(Schemas.Feature);

View File

@@ -7,7 +7,7 @@ Schemas.SpellLists = new SimpleSchema({
saveDC: {type: String, optional: true},
attackBonus: {type: String, optional: true},
maxPrepared: {type: String, optional: true},
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"},
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"},
"settings.showUnprepared": {type: Boolean, defaultValue: true},
});

View File

@@ -16,7 +16,7 @@ Schemas.Spell = new SimpleSchema({
ritual: {type: Boolean, defaultValue: false},
level: {type: Number, defaultValue: 0},
school: {type: String, defaultValue: "Abjuration", allowedValues: magicSchools},
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"}
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
});
Spells.attachSchema(Schemas.Spell);

View File

@@ -9,7 +9,7 @@ Schemas.Container = new SimpleSchema({
weight: {type: Number, min: 0, defaultValue: 0, decimal: true},
value: {type: Number, min: 0, defaultValue: 0, decimal: true},
description:{type: String, optional: true},
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "brown"}
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
});
Containers.attachSchema(Schemas.Container);

View File

@@ -15,7 +15,7 @@ Schemas.Item = new SimpleSchema({
allowedValues: ["none", "head", "armor", "arms", "hands", "held", "feet"]
},
equipped: {type: Boolean, defaultValue: false},
color: {type: String, allowedValues: _.keys(colorOptions), defaultValue: "green"}
color: {type: String, allowedValues: _.pluck(colorOptions, "key"), defaultValue: "q"}
});
Items.attachSchema(Schemas.Item);