clarify AN location, fix AN display toggle

This commit is contained in:
RossAscends
2023-05-21 15:29:49 +09:00
parent 71d1688dfa
commit 77dd6cb292
3 changed files with 11 additions and 6 deletions

View File

@ -2601,7 +2601,7 @@
</a> </a>
<a id="option_toggle_AN"> <a id="option_toggle_AN">
<i class="fa-lg fa-solid fa-note-sticky"></i> <i class="fa-lg fa-solid fa-note-sticky"></i>
<span>Open Author's Note</span> <span>Author's Note Show/Hide</span>
</a> </a>
<a id="option_convert_to_group"> <a id="option_convert_to_group">
<i class="fa-lg fa-solid fa-people-arrows"></i> <i class="fa-lg fa-solid fa-people-arrows"></i>

View File

@ -5667,15 +5667,20 @@ $(document).ready(function () {
var id = $(this).attr("id"); var id = $(this).attr("id");
if (id == "option_toggle_AN") { if (id == "option_toggle_AN") {
if (selected_group || this_chid !== undefined && $("#floatingPrompt").css("display") === 'none') { if (selected_group || this_chid !== undefined
&& $("#floatingPrompt").css("display") !== 'flex') {
$("#floatingPrompt").css("display", "flex"); $("#floatingPrompt").css("display", "flex");
$("#floatingPrompt").css("opacity", 0.0); $("#floatingPrompt").css("opacity", 0.0);
$("#floatingPrompt").transition({ $("#floatingPrompt").transition({
opacity: 1.0, opacity: 1.0,
duration: animation_duration, duration: 250,
easing: animation_easing, easing: animation_easing,
}); });
if ($("#ANBlockToggle")
.siblings('.inline-drawer-content')
.css('display') !== 'block') {
$("#ANBlockToggle").click(); $("#ANBlockToggle").click();
}
} else { } else {
$("#floatingPrompt").transition({ $("#floatingPrompt").transition({
opacity: 0.0, opacity: 0.0,

View File

@ -1,5 +1,5 @@
{ {
"display_name": "Author's Note / Character Bias", "display_name": "Author's Note (Located in Lower Left Options Menu)",
"loading_order": 1, "loading_order": 1,
"requires": [], "requires": [],
"optional": [], "optional": [],