mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Custom colors for tags
This commit is contained in:
@ -1055,14 +1055,14 @@ function addOneMessage(mes, { type = "normal", insertAfter = null, scroll = true
|
||||
const bias = messageFormating(mes.extra?.bias ?? "");
|
||||
|
||||
let params = {
|
||||
mesId: count_view_mes,
|
||||
characterName: characterName,
|
||||
isUser: mes.is_user,
|
||||
avatarImg: avatarImg,
|
||||
bias: bias,
|
||||
isSystem: isSystem,
|
||||
title: title,
|
||||
...formatGenerationTimer(mes.gen_started, mes.gen_finished),
|
||||
mesId: count_view_mes,
|
||||
characterName: characterName,
|
||||
isUser: mes.is_user,
|
||||
avatarImg: avatarImg,
|
||||
bias: bias,
|
||||
isSystem: isSystem,
|
||||
title: title,
|
||||
...formatGenerationTimer(mes.gen_started, mes.gen_finished),
|
||||
};
|
||||
|
||||
const HTMLForEachMes = getMessageFromTemplate(params);
|
||||
@ -4313,7 +4313,11 @@ $(document).ready(function () {
|
||||
duration: 200,
|
||||
easing: animation_easing,
|
||||
});
|
||||
setTimeout(function () { $("#shadow_popup").css("display", "none"); }, 200);
|
||||
setTimeout(function () {
|
||||
$("#shadow_popup").css("display", "none");
|
||||
$("#dialogue_popup").removeClass('large_dialogue_popup');
|
||||
}, 200);
|
||||
|
||||
// $("#shadow_popup").css("opacity:", 0.0);
|
||||
if (popup_type == "del_bg") {
|
||||
delBackground(bg_file_for_del.attr("bgfile"));
|
||||
@ -4421,13 +4425,16 @@ $(document).ready(function () {
|
||||
if (popup_type == 'input') {
|
||||
dialogueResolve($("#dialogue_popup_input").val());
|
||||
$("#dialogue_popup_input").val('');
|
||||
|
||||
}
|
||||
else {
|
||||
dialogueResolve(true);
|
||||
|
||||
}
|
||||
|
||||
dialogueResolve = null;
|
||||
}
|
||||
|
||||
});
|
||||
$("#dialogue_popup_cancel").click(function (e) {
|
||||
$("#shadow_popup").transition({
|
||||
@ -4435,7 +4442,11 @@ $(document).ready(function () {
|
||||
duration: 200,
|
||||
easing: animation_easing,
|
||||
});
|
||||
setTimeout(function () { $("#shadow_popup").css("display", "none"); }, 200);
|
||||
setTimeout(function () {
|
||||
$("#shadow_popup").css("display", "none");
|
||||
$("#dialogue_popup").removeClass('large_dialogue_popup');
|
||||
}, 200);
|
||||
|
||||
//$("#shadow_popup").css("opacity:", 0.0);
|
||||
popup_type = "";
|
||||
|
||||
@ -4443,6 +4454,7 @@ $(document).ready(function () {
|
||||
dialogueResolve(false);
|
||||
dialogueResolve = null;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#add_bg_button").change(function () {
|
||||
|
Reference in New Issue
Block a user