generated from League-of-Foundry-Developers/FoundryVTT-Module-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17badd4
commit 4e9cec1
Showing
4 changed files
with
81 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{ | ||
"rmHeaderText.name": "Hide header icon text", | ||
"rmHeaderText.hint": "Hides the header icon text shown on actor sheets for those with so many modules that it gets cluttered to hell. Be careful as you need to remember what each icon does." | ||
"rmHeaderText":{ | ||
"actor":{ | ||
"name":"Hide actor header icon text", | ||
"hint":"Hides the header icon text shown on actor sheets for those with so many modules that it gets cluttered to hell. Be careful as you need to remember what each icon does." | ||
}, | ||
"item":{ | ||
"name":"Hide item header icon text", | ||
"hint":"Hides the header icon text shown on item sheets. Be careful as you need to remember what each icon does." | ||
}, | ||
"journal":{ | ||
"name":"Hide journal header icon text", | ||
"hint":"Hides the header icon text shown on journal sheets. Be careful as you need to remember what each icon does." | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{ | ||
"rmHeaderText.name": "ヘッダーボタンのテキスト非表示", | ||
"rmHeaderText.hint": "キャラクターシートの上に表示される既存・Modのボタンテキストを非表示にし、アイコンのみを残します。Modを多く使っているときに便利ですが、どのアイコンが何をするのかを覚える必要があることから上級者設定です。" | ||
"rmHeaderText":{ | ||
"actor":{ | ||
"name":"キャラシのヘッダーボタンのテキスト非表示", | ||
"hint":"キャラクターシートの上に表示される既存・Modのボタンテキストを非表示にし、アイコンのみを残します。Modを多く使っているときに便利ですが、どのアイコンが何をするのかを覚える必要があることから上級者設定です。" | ||
}, | ||
"item":{ | ||
"name":"アイテムのヘッダーボタンのテキスト非表示", | ||
"hint":"アイテムシートの上に表示される既存・Modのボタンテキストを非表示にし、アイコンのみを残します。" | ||
}, | ||
"journal":{ | ||
"name":"資料のヘッダーボタンのテキスト非表示", | ||
"hint":"キャラクターシートの上に表示される既存・Modのボタンテキストを非表示にし、アイコンのみを残します。" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,54 @@ | ||
Hooks.on("renderActorSheet", (app, html, data) => { | ||
if (game.settings.get("rm-header-text", "rmHeaderIconStyle") === true ) { | ||
html[0].classList.add("rmh"); | ||
} | ||
if (game.settings.get("rm-header-text", "rmHeaderIconActorStyle") === true ) { | ||
html[0].classList.add("rmh"); | ||
} | ||
}); | ||
|
||
Hooks.on("renderItemSheet", (app, html, data) => { | ||
if (game.settings.get("rm-header-text", "rmHeaderIconItemStyle") === true ) { | ||
html[0].classList.add("rmh"); | ||
} | ||
}); | ||
|
||
Hooks.on("renderJournalSheet", (app, html, data) => { | ||
if (game.settings.get("rm-header-text", "rmHeaderIconJournalStyle") === true ) { | ||
html[0].classList.add("rmh"); | ||
} | ||
}); | ||
|
||
Hooks.on("init", () => { | ||
// game.settings.register("remove-header-icons", { | ||
// scope: "world", | ||
// config: false, | ||
// type: Boolean, | ||
// default: false | ||
// }); | ||
|
||
|
||
game.settings.register("rm-header-text", "rmHeaderIconActorStyle", { | ||
name: game.i18n.localize("rmHeaderText.actor.name"), | ||
hint: game.i18n.localize("rmHeaderText.actor.hint"), | ||
scope: "local", | ||
config: true, | ||
type: Boolean, | ||
default: true // デフォで使う | ||
}); | ||
Hooks.on("init", () => { | ||
// game.settings.register("remove-header-icons", { | ||
// scope: "world", | ||
// config: false, | ||
// type: Boolean, | ||
// default: false | ||
// }); | ||
|
||
game.settings.register("rm-header-text", "rmHeaderIconStyle", { | ||
name: game.i18n.localize("rmHeaderText.name"), | ||
hint: game.i18n.localize("rmHeaderText.hint"), | ||
scope: "local", | ||
config: true, | ||
type: Boolean, | ||
default: false // デフォでは使わない | ||
}); | ||
}); | ||
|
||
game.settings.register("rm-header-text", "rmHeaderIconItemStyle", { | ||
name: game.i18n.localize("rmHeaderText.item.name"), | ||
hint: game.i18n.localize("rmHeaderText.item.hint"), | ||
scope: "local", | ||
config: true, | ||
type: Boolean, | ||
default: true // デフォで使う | ||
}); | ||
|
||
game.settings.register("rm-header-text", "rmHeaderIconJournalStyle", { | ||
name: game.i18n.localize("rmHeaderText.journal.name"), | ||
hint: game.i18n.localize("rmHeaderText.journal.hint"), | ||
scope: "local", | ||
config: true, | ||
type: Boolean, | ||
default: true // デフォで使う | ||
}); | ||
}); |