Skip to content

Commit

Permalink
Version 10 Compatibility Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien-schiehle authored Sep 5, 2022
1 parent 7b8529e commit ba09fec
Show file tree
Hide file tree
Showing 8 changed files with 362 additions and 119 deletions.
20 changes: 20 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@
"WA.ConfigureStep2": "Step 2: Choose which of your available World Anvil worlds you would like to associated with this Foundry VTT World.",
"WA.ConfigureStep3": "Your World Anvil integration is properly configured!",

"WA.JournalPages.ArticleLabel": "Article main page",
"WA.JournalPages.ArticleHint": "Main page name when importing WA article. Default: Article",
"WA.JournalPages.ArticleDefault": "Article",
"WA.JournalPages.SecretsLabel": "Page for secrets",
"WA.JournalPages.SecretsHint": "Will store all secrets. Default: Secrets",
"WA.JournalPages.SecretsDefault": "Secrets",
"WA.JournalPages.SideContentLabel": "Page for detais",
"WA.JournalPages.SideContentHint": "Store addtional informations. Character example : eyes color, weight... Default: Side contents",
"WA.JournalPages.SideContentDefault": "Side contents",
"WA.JournalPages.PortraitLabel": "Page for portrait",
"WA.JournalPages.PortraitHint": "Portrait are used by character articles. Default: Portrait",
"WA.JournalPages.PortraitDefault": "Portrait",
"WA.JournalPages.CoverLabel": "Page for cover",
"WA.JournalPages.CoverHint": "In WA, you can define a cover for each article. Default: Cover",
"WA.JournalPages.CoverDefault": "Cover",
"WA.JournalPages.RelationshipsLabel": "Page for relationships",
"WA.JournalPages.RelationshipsHint": "In WA, you can define relationships between characters. Default: Relationships",
"WA.JournalPages.RelationshipsDefault": "Relationships",

"WA.UserToken": "User Authentication Token",
"WA.UserTokenHint": "Enter a World Anvil user authentication token for your World Anvil account on the Account Management page of your World Anvil user profile.",
"WA.WorldId": "Select World",
Expand All @@ -24,6 +43,7 @@

"WA.ButtonRefreshAll": "Refresh All",
"WA.ButtonImportAll": "Import All",
"WA.ButtonExpandCategory": "Expand category",
"WA.ButtonSyncAll": "Sync All",
"WA.ButtonVisibilityHide": "Hide from players",
"WA.ButtonVisibilityDisplay": "Display to players",
Expand Down
11 changes: 7 additions & 4 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "world-anvil",
"id": "world-anvil",
"title": "World Anvil Integration",
"description": "<p>A module to integrate <a href=\"https://worldanvil.com\" title=\"World Anvil\" target=\"_blank\">World Anvil</a> with Foundry Virtual Tabletop.</p>",
"author": "Atropos",
"authors": [],
"url": "https://github.com/foundryvtt/world-anvil",
"version": "1.3.3",
"minimumCoreVersion": "0.7.6",
"compatibleCoreVersion": "9",
"compatibility": {
"minimum": "10",
"verified": "10.284",
"maximum": "10"
},
"scripts": [],
"esmodules": [
"wa.js"
Expand All @@ -24,7 +27,7 @@
],
"packs": [],
"system": [],
"dependencies": [],
"relationships": {},
"manifest": "https://raw.githubusercontent.com/foundryvtt/world-anvil/master/module.json",
"download": "https://github.com/foundryvtt/world-anvil/archive/refs/tags/release-1.3.3.zip"
}
56 changes: 56 additions & 0 deletions module/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,61 @@ export default class WorldAnvilConfig extends FormApplication {
config: true
});

// Add the customizable labels for each importable page
//-------------------
game.settings.register("world-anvil", "mainArticlePage", {
name: "WA.JournalPages.ArticleLabel",
hint: "WA.JournalPages.ArticleHint",
scope: "world",
type: String,
default: "",
config: true
});

game.settings.register("world-anvil", "secretsPage", {
name: "WA.JournalPages.SecretsLabel",
hint: "WA.JournalPages.SecretsHint",
scope: "world",
type: String,
default: "",
config: true
});

game.settings.register("world-anvil", "sideContentPage", {
name: "WA.JournalPages.SideContentLabel",
hint: "WA.JournalPages.SideContentHint",
scope: "world",
type: String,
default: "",
config: true
});

game.settings.register("world-anvil", "portraitPage", {
name: "WA.JournalPages.PortraitLabel",
hint: "WA.JournalPages.PortraitHint",
scope: "world",
type: String,
default: "",
config: true
});

game.settings.register("world-anvil", "coverPage", {
name: "WA.JournalPages.CoverLabel",
hint: "WA.JournalPages.CoverHint",
scope: "world",
type: String,
default: "",
config: true
});

game.settings.register("world-anvil", "relationshipsPage", {
name: "WA.JournalPages.RelationshipsLabel",
hint: "WA.JournalPages.RelationshipsHint",
scope: "world",
type: String,
default: "",
config: true
});

}
}
Loading

0 comments on commit ba09fec

Please sign in to comment.