Skip to content

Commit

Permalink
final changes for 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Feb 21, 2024
1 parent df96225 commit e90aba5
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 16 deletions.
6 changes: 3 additions & 3 deletions src/apps/module-initialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ class ModuleDocumentResolver extends FormApplication
options.resizable = true;
options.height = 600;
options.width = 400;
options.template = "systems/wfrp4e/templates/apps/document-resolver.hbs";
options.classes.push("document-resolver");
options.title = game.i18n.localize("INIT.ResolveDuplicates");
options.template = "systems/impmal/templates/apps/document-resolver.hbs";
options.classes = options.classes.concat(["document-resolver", "impmal"]);
options.title = game.i18n.localize("IMPMAL.ResolveDuplicates");
return options;
}

Expand Down
5 changes: 4 additions & 1 deletion src/system/hooks/loadScripts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/system/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export default function registerSettings()
"crithead" : "dvsiB3K8ezHI8F7M",
"critbody" : "kCP63j7ZWPVquLqW",
"critvehicle" : "wyIDvsnkkI18FbJy",
"fumble" : "3uBH6hO5EoJUORN9",
"perils" : "90WGBoSRiUCOdFVS",
"phenomena" : "Syx01tKswPV4oEsz",
"fumble" : "HL6DtTGWIUQy5NZ9",
"perils" : "2YYlAUyaVIt4bZVa",
"phenomena" : "9aSbu2mswOOI43J1",
"talents" : "9SLhM8FOgluaUwvO"
}
});
Expand Down
2 changes: 2 additions & 0 deletions static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,8 @@
"IMPMAL.RerollTest" : "Reroll Test",
"IMPMAL.RerollTestFate" : "Fate Reroll Test",
"IMPMAL.Resolve" : "Resolve",
"IMPMAL.ResolveDuplicates" : "Resolve Duplicates",
"IMPMAL.ResolveDuplicatesNote" : "These Documents already exist in the world; would you like to apply the data from the initialized module instead?<br><br>Leaving a Document checked will apply the new data, otherwise no modifications will be made.",
"IMPMAL.Resist" : "Resist",
"IMPMAL.RestrainedThreshold" : "Restrained Threshold",
"IMPMAL.Restricted" : "Restricted",
Expand Down
15 changes: 15 additions & 0 deletions static/templates/apps/document-resolver.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<form autocomplete="off">
<div>
<p class="note">{{{localize "IMPMAL.ResolveDuplicatesNote"}}}</p>
{{#each object}}
<div class="document">
<img src="{{this.img}}">
<a>{{this.name}}</a>
<input type="checkbox" name="{{this.id}}" checked="true">
</div>
{{/each}}
</div>

<button type="submit" name="submit">{{localize "Submit"}}</button>
</form>

15 changes: 7 additions & 8 deletions static/templates/apps/module-updater.hbs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
<form>

<p>{{localize "Updater1"}} <b>{{localize "Updater2"}}</b></p>
<p>{{localize "Updater3"}}</p>
<p>{{{localize "IMPMAL.UpdaterContent"}}}</p>
<ul>
<li><input type="checkbox" name="actors" checked> {{localize "UPDATER.OverwriteActors"}}</li>
<li><input type="checkbox" name="journals" checked> {{localize "UPDATER.OverwriteJournals"}}</li>
<li><input type="checkbox" name="items" checked> {{localize "UPDATER.OverwriteItems"}}</li>
<li><input type="checkbox" name="tables" checked> {{localize "UPDATER.OverwriteTables"}}</li>
<li><input type="checkbox" name="scenes" checked> {{localize "UPDATER.OverwriteScenes"}}</li>
<li><input type="checkbox" name="actors" checked> {{localize "IMPMAL.UpdaterOverwriteActors"}}</li>
<li><input type="checkbox" name="journals" checked> {{localize "IMPMAL.UpdaterOverwriteJournals"}}</li>
<li><input type="checkbox" name="items" checked> {{localize "IMPMAL.UpdaterOverwriteItems"}}</li>
<li><input type="checkbox" name="tables" checked> {{localize "IMPMAL.UpdaterOverwriteTables"}}</li>
<li><input type="checkbox" name="scenes" checked> {{localize "IMPMAL.UpdaterOverwriteScenes"}}</li>
</ul>
<ul>
<li><input type="checkbox" name="excludeNameChange" checked> {{localize "UPDATER.Exclude"}} <i title="{{localize 'UPDATER.ExcludeHint'}}" class="far fa-question-circle"></i></li>
<li><input type="checkbox" name="excludeNameChange" checked> {{localize "IMPMAL.UpdaterExclude"}} <i title="{{localize 'IMPMAL.UpdaterExcludeHint'}}" class="far fa-question-circle"></i></li>
</ul>

</form>
Expand Down
31 changes: 31 additions & 0 deletions style/apps/_document-resolver.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.impmal.document-resolver {
form {
height: 100%;

> div {
height: calc(100% - 45px);
overflow: auto;
color: #CCC
}
}

.document {
height: 100px;
display: flex;
align-items: center;
img {
object-fit: contain;
flex: 0 0 100px;
width: 100px;
height: 100px;
padding: 10px;
}
a {
flex: 1
}
input {
flex: 0 0 20px
}
}

}
1 change: 1 addition & 0 deletions style/impmal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@import "./apps/form";
@import "./apps/choice-config";
@import "./apps/effect-config";
@import "./apps/document-resolver";
@import "./apps/dialogs/test-dialog";
@import "./chat/roll";
@import "./chat/item-post";
Expand Down
2 changes: 1 addition & 1 deletion system.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"url": "https://github.com/moo-man/ImpMal-FoundryVTT",
"socket": true,
"manifest": "https://github.com/moo-man/ImpMal-FoundryVTT/releases/latest/download/system.json",
"download": "https://github.com/moo-man/ImpMal-FoundryVTT/releases/download/1.0.2/impmal.zip",
"download": "https://github.com/moo-man/ImpMal-FoundryVTT/releases/download/1.1.0/impmal.zip",
"license": "LICENSE.txt"
}

0 comments on commit e90aba5

Please sign in to comment.