Rename __ID to __ID__
This commit is contained in:
parent
d9bea36444
commit
523d9c1da2
9 changed files with 43 additions and 33 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import { __ID } from "../consts.mjs";
|
||||
import { __ID__ } from "../consts.mjs";
|
||||
import { Logger } from "../utils/Logger.mjs";
|
||||
|
||||
const key = `hotbarButtonGap`;
|
||||
|
||||
export function hotbarButtonGap() {
|
||||
|
||||
const prevented = Hooks.call(`${__ID}.preventSetting`, key);
|
||||
const prevented = Hooks.call(`${__ID__}.preventSetting`, key);
|
||||
if (!prevented) {
|
||||
Logger.log(`Preventing setting "${key}" from being registered`);
|
||||
return;
|
||||
|
|
@ -13,8 +13,8 @@ export function hotbarButtonGap() {
|
|||
|
||||
// #region Registration
|
||||
Logger.log(`Registering setting: ${key}`);
|
||||
document.body.classList.add(`${__ID}-${key}`);
|
||||
game.settings.register(__ID, key, {
|
||||
document.body.classList.add(`${__ID__}-${key}`);
|
||||
game.settings.register(__ID__, key, {
|
||||
name: `OFT.setting.${key}.name`,
|
||||
hint: `OFT.setting.${key}.hint`,
|
||||
scope: `user`,
|
||||
|
|
@ -33,7 +33,7 @@ export function hotbarButtonGap() {
|
|||
// #endregion Registration
|
||||
|
||||
// #region Implementation
|
||||
const buttonGap = game.settings.get(__ID, key);
|
||||
const buttonGap = game.settings.get(__ID__, key);
|
||||
document.body.style.setProperty(`--hotbar-button-gap`, `${buttonGap}px`);
|
||||
// #endregion Implementation
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue