From ea68e70ac72b99affd7e25455e774690acd5ac76 Mon Sep 17 00:00:00 2001 From: Cohee Date: Sat, 22 Jul 2023 22:14:16 +0300 Subject: [PATCH] Refine message for dupe confirm --- public/script.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index dbe89a630..6c80d28db 100644 --- a/public/script.js +++ b/public/script.js @@ -3151,7 +3151,11 @@ async function DupeChar() { return; } - const confirm = await callPopup('Are you sure you want to duplicate this character?', 'confirm'); + const confirm = await callPopup(` +

Are you sure you want to duplicate this character?

+ If you just want to start a new chat with the same character, use "Start new chat" option in the bottom-left options menu.

`, + 'confirm', + ); if (!confirm) { console.log('User cancelled duplication'); @@ -5598,11 +5602,19 @@ function onScenarioOverrideRemoveClick() { $(this).closest('.scenario_override').find('.chat_scenario').val('').trigger('input'); } -function callPopup(text, type, inputValue = '', { okButton, rows } = {}) { +function callPopup(text, type, inputValue = '', { okButton, rows, wide, large } = {}) { if (type) { popup_type = type; } + if (wide) { + $("#dialogue_popup").addClass("wide_dialogue_popup"); + } + + if (large) { + $("#dialogue_popup").addClass("large_dialogue_popup"); + } + $("#dialogue_popup_cancel").css("display", "inline-block"); switch (popup_type) { case "avatarToCrop":