From 6fe217d4a5c05c2e8c0f47e86725c11db56a0580 Mon Sep 17 00:00:00 2001 From: MiraclePatrickLumowa Date: Tue, 2 Sep 2025 14:16:22 +0800 Subject: [PATCH] Small update --- Auto-Image.js | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/Auto-Image.js b/Auto-Image.js index 234d92b..cbbc75d 100644 --- a/Auto-Image.js +++ b/Auto-Image.js @@ -487,6 +487,18 @@ pixels: 'Pixels', charges: 'Charges', batchSize: 'Batch Size', + cooldownSettings: 'Cooldown Settings', + waitCharges: 'Wait for Charges', + settings: 'Settings', + showStats: 'Show Statistics', + compactMode: 'Compact Mode', + minimize: 'Minimize', + tokenCapturedSuccess: 'Token captured successfully', + turnstileInstructions: 'Complete the verification', + hideTurnstileBtn: 'Hide', + notificationsNotSupported: 'Notifications not supported', + chargesReadyMessage: 'Charges are ready', + chargesReadyNotification: 'WPlace AutoBot', initMessage: "Click 'Upload Image' to begin", }, }; @@ -3476,7 +3488,7 @@ - ${state.cooldownChargeThreshold} ${Utils.t('charges')} + ${Utils.t('charges')} @@ -3785,7 +3797,7 @@ - ${CONFIG.PAINTING_SPEED.DEFAULT} pixels + pixels @@ -4744,10 +4756,10 @@ const speed = Math.max(CONFIG.PAINTING_SPEED.MIN, Math.min(CONFIG.PAINTING_SPEED.MAX, parseInt(newValue))); state.paintingSpeed = speed; - // Update both controls and single indicator + // Update both controls (value shows in input, label shows unit only) speedSlider.value = speed; speedInput.value = speed; - speedValue.textContent = `${speed} pixels`; + speedValue.textContent = `pixels`; saveBotSettings(); }; @@ -6710,10 +6722,10 @@ const threshold = Math.max(1, Math.min(state.maxCharges || 999, parseInt(newValue))); state.cooldownChargeThreshold = threshold; - // Update both controls and single indicator + // Update both controls (value shows in input, label shows unit only) cooldownSlider.value = threshold; cooldownInput.value = threshold; - cooldownValue.textContent = `${threshold} ${Utils.t('charges')}`; + cooldownValue.textContent = `${Utils.t('charges')}`; saveBotSettings(); NotificationManager.resetEdgeTracking(); // prevent spurious notify after threshold change @@ -7628,7 +7640,7 @@ const speedValue = document.getElementById('speedValue'); if (speedSlider) speedSlider.value = state.paintingSpeed; if (speedInput) speedInput.value = state.paintingSpeed; - if (speedValue) speedValue.textContent = `${state.paintingSpeed} pixels`; + if (speedValue) speedValue.textContent = `pixels`; const enableSpeedToggle = document.getElementById('enableSpeedToggle'); if (enableSpeedToggle) enableSpeedToggle.checked = CONFIG.PAINTING_SPEED_ENABLED; @@ -7664,7 +7676,7 @@ const cooldownValue = document.getElementById('cooldownValue'); if (cooldownSlider) cooldownSlider.value = state.cooldownChargeThreshold; if (cooldownInput) cooldownInput.value = state.cooldownChargeThreshold; - if (cooldownValue) cooldownValue.textContent = `${state.cooldownChargeThreshold} ${Utils.t('charges')}`; + if (cooldownValue) cooldownValue.textContent = `${Utils.t('charges')}`; const overlayOpacitySlider = document.getElementById('overlayOpacitySlider'); if (overlayOpacitySlider) overlayOpacitySlider.value = state.overlayOpacity;