Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
80c72a274e | ||
|
|
91f0f7954c | ||
|
|
c74abcb608 | ||
|
|
4f60766d5d | ||
|
|
e992aeebef | ||
|
|
4108346a98 |
@@ -226,8 +226,8 @@ var attributeBase = function(charId, statName){
|
|||||||
var base = 0;
|
var base = 0;
|
||||||
var add = 0;
|
var add = 0;
|
||||||
var mul = 1;
|
var mul = 1;
|
||||||
var min = Math.NEGATIVE_INFINITY;
|
var min = Number.NEGATIVE_INFINITY;
|
||||||
var max = Math.POSITIVE_INFINITY;
|
var max = Number.POSITIVE_INFINITY;
|
||||||
|
|
||||||
Effects.find({
|
Effects.find({
|
||||||
charId: charId,
|
charId: charId,
|
||||||
|
|||||||
@@ -9,20 +9,24 @@
|
|||||||
<div class="pre-wrap">{{description}}</div>
|
<div class="pre-wrap">{{description}}</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<div horizontal layout>
|
{{> experienceEdit}}
|
||||||
<!--Name-->
|
|
||||||
<paper-input id="experienceNameInput" label="Name" floatinglabel value={{name}} flex></paper-input>
|
|
||||||
<!--Value-->
|
|
||||||
<paper-input-decorator label="Value" floatinglabel>
|
|
||||||
<input id="valueInput" type="number" value={{value}}>
|
|
||||||
</paper-input-decorator>
|
|
||||||
</div>
|
|
||||||
<!--Description-->
|
|
||||||
<paper-input-decorator label="Description" floatinglabel layout vertical>
|
|
||||||
<paper-autogrow-textarea>
|
|
||||||
<textarea id="experienceDescriptionInput" placeholder value={{description}}></textarea>
|
|
||||||
</paper-autogrow-textarea>
|
|
||||||
</paper-input-decorator>
|
|
||||||
{{/baseDialog}}
|
{{/baseDialog}}
|
||||||
{{/with}}
|
{{/with}}
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template name="experienceEdit">
|
||||||
|
<div horizontal layout>
|
||||||
|
<!--Name-->
|
||||||
|
<paper-input id="experienceNameInput" label="Name" floatinglabel value={{name}} flex></paper-input>
|
||||||
|
<!--Value-->
|
||||||
|
<paper-input-decorator label="Value" floatinglabel>
|
||||||
|
<input id="valueInput" type="number" value={{value}}>
|
||||||
|
</paper-input-decorator>
|
||||||
|
</div>
|
||||||
|
<!--Description-->
|
||||||
|
<paper-input-decorator label="Description" floatinglabel layout vertical>
|
||||||
|
<paper-autogrow-textarea>
|
||||||
|
<textarea id="experienceDescriptionInput" placeholder value={{description}}></textarea>
|
||||||
|
</paper-autogrow-textarea>
|
||||||
|
</paper-input-decorator>
|
||||||
|
</template>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
Template.experienceDialog.onRendered(function(){
|
Template.experienceEdit.onRendered(function(){
|
||||||
updatePolymerInputs(this);
|
updatePolymerInputs(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -22,8 +22,10 @@ Template.experienceDialog.events({
|
|||||||
);
|
);
|
||||||
GlobalUI.closeDetail();
|
GlobalUI.closeDetail();
|
||||||
},
|
},
|
||||||
//TODO validate input (integer, non-negative, etc) for these inputs and give validation errors
|
});
|
||||||
"change #experienceNameInput, input #experienceNameInput": function(event){
|
|
||||||
|
Template.experienceEdit.events({
|
||||||
|
"change #experienceNameInput": function(event){
|
||||||
var value = event.currentTarget.value;
|
var value = event.currentTarget.value;
|
||||||
Experiences.update(this._id, {$set: {name: value}});
|
Experiences.update(this._id, {$set: {name: value}});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -183,7 +183,21 @@ ChangeLogs.insert({
|
|||||||
"Big performance improvements: loading characters that you've viewed recently and changing effects on characters should be much faster",
|
"Big performance improvements: loading characters that you've viewed recently and changing effects on characters should be much faster",
|
||||||
"Spell dialogs no longer show their casting time, range, etc. if those fields aren't filled in",
|
"Spell dialogs no longer show their casting time, range, etc. if those fields aren't filled in",
|
||||||
"The settings dialog now has a done button so it can be closed on small devices",
|
"The settings dialog now has a done button so it can be closed on small devices",
|
||||||
"Experience dialogs should update their edit-mode inputs properly now",
|
|
||||||
"Container dialogs now have the weight summaries rounded down properly",
|
"Container dialogs now have the weight summaries rounded down properly",
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ChangeLogs.insert({
|
||||||
|
version: "0.6.1",
|
||||||
|
changes: [
|
||||||
|
"Experience dialogs should update their edit-mode inputs properly now",
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
ChangeLogs.insert({
|
||||||
|
version: "0.6.2",
|
||||||
|
changes: [
|
||||||
|
"Fixed a regression which broke min and max effects",
|
||||||
|
],
|
||||||
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user