Rename __ID to __ID__

This commit is contained in:
Oliver 2025-12-07 15:40:00 -07:00
parent d9bea36444
commit 523d9c1da2
9 changed files with 43 additions and 33 deletions

View file

@ -1,11 +1,11 @@
import { __ID } from "../consts.mjs";
import { __ID__ } from "../consts.mjs";
import { Logger } from "../utils/Logger.mjs";
const key = `hotbarButtonSize`;
export function hotbarButtonSize() {
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 hotbarButtonSize() {
// #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 hotbarButtonSize() {
// #endregion Registration
// #region Implementation
const hotbarSize = game.settings.get(__ID, key);
const hotbarSize = game.settings.get(__ID__, key);
document.body.style.setProperty(`--hotbar-size`, `${hotbarSize}px`);
// #endregion Implementation
};