From d30945201da9e0bc94301d3a2568a416206ce8d9 Mon Sep 17 00:00:00 2001 From: Mute Date: Thu, 29 Feb 2024 18:17:35 +0000 Subject: [PATCH] dev.10 * Removed the patch to disable FBC tighten/loosen input, it wasn't doing anything for a while now. * Come on peeps, deprecation doesn't mean what you think it means. --- mbchc.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mbchc.mjs b/mbchc.mjs index 1e0c0e1..e384234 100644 --- a/mbchc.mjs +++ b/mbchc.mjs @@ -5,7 +5,7 @@ const MISSING_PLAYER_DIALOG = {Tag: 'MISSING PLAYER DIALOG: ', Text: '\u200C'} if (window.MBCHC) throw new Error('MBCHC found, aborting loading') window.MBCHC = { - VERSION: 'dev.9', + VERSION: 'dev.10', NEXT_MESSAGE: 1, LOG_MESSAGES: false, RETHROW: false, @@ -712,7 +712,7 @@ window.MBCHC = { window.ChatRoomLastMessageIndex -= 1 } }) - this.before('ChatRoomDrawCharacterOverlay', (C, CharX, CharY, Zoom, _Pos) => { + this.before('ChatRoomCharacterViewDrawOverlay', (C, CharX, CharY, Zoom, _Pos) => { // if (window.ChatRoomHideIconState < 1 && C.MBCHC) { // window.DrawRect(CharX + (175 * Zoom), CharY, 50 * Zoom, 50 * Zoom, C.MBCHC.VERSION === window.Player.MBCHC.VERSION ? this.RGB_POLLY : this.RGB_MUTE) // } @@ -721,7 +721,7 @@ window.MBCHC = { window.DrawTextFit(hours < 10 ? '0' + hours.toString() : hours.toString(), CharX + (200 * Zoom), CharY + (25 * Zoom), 46 * Zoom, 'white', 'black') } }) - this.after('ElementValue', (ID, Value, cc = window.CurrentCharacter) => ID === 'bce_LayerPriority' && cc?.FocusGroup && window.InventoryGet(cc, cc.FocusGroup.Name)?.Difficulty.toString() === Value && window.InventoryLocked(cc, cc.FocusGroup.Name, true) && window.ElementSetAttribute(ID, 'disabled', true)) + // this.after('ElementValue', (ID, Value, cc = window.CurrentCharacter) => ID === 'bce_LayerPriority' && cc?.FocusGroup && window.InventoryGet(cc, cc.FocusGroup.Name)?.Difficulty.toString() === Value && window.InventoryLocked(cc, cc.FocusGroup.Name, true) && window.ElementSetAttribute(ID, 'disabled', true)) this.after('ChatRoomCreateElement', () => this.COMP_HINT.parentElement || document.body.append(this.COMP_HINT)) this.before('ChatRoomClearAllElements', () => { this.complete_hint_hide()