mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Adjust texts for character lorebooks
This commit is contained in:
@ -2927,28 +2927,29 @@
|
|||||||
Select a World Info file for <span class="character_name"></span>:
|
Select a World Info file for <span class="character_name"></span>:
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
|
<h4>Primary Lorebook</h4>
|
||||||
<div class="range-block-counter justifyLeft flex-container flexFlowColumn margin-bot-10px">
|
<div class="range-block-counter justifyLeft flex-container flexFlowColumn margin-bot-10px">
|
||||||
A selected World Info / Lorebook will be bound to this character.
|
A selected World Info / Lorebook will be bound to this character.
|
||||||
When generating an AI reply, it will be combined with the entries from a global World Info / Lorebook selector.
|
When generating an AI reply, it will be combined with the entries from a global World Info / Lorebook selector.
|
||||||
Exporting a character would also export the selected World Info file embedded in the JSON data.
|
Exporting a character would also export the selected World Info file embedded in the JSON data.
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block-range wide100p">
|
<div class="range-block-range wide100p">
|
||||||
<select class="character_world_info_selector">
|
<select class="character_world_info_selector wide100p">
|
||||||
<option value="">--- None ---</option>
|
<option value="">--- None ---</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="range-block-title">
|
<div class="range-block-title">
|
||||||
<h4>
|
<h4>
|
||||||
Associate extra world info
|
Additional Lorebooks
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block-counter justifyLeft flex-container flexFlowColumn margin-bot-10px">
|
<div class="range-block-counter justifyLeft flex-container flexFlowColumn margin-bot-10px">
|
||||||
Associate extra lorebooks with this character.
|
Associate one or more auxillary lorebooks with this character.<br>
|
||||||
NOTE: These choices are optional and won't be preserved on character export!
|
NOTE: These choices are optional and won't be preserved on character export!
|
||||||
</div>
|
</div>
|
||||||
<div class="range-block-range wide100p">
|
<div class="range-block-range wide100p">
|
||||||
<select class="character_extra_world_info_selector" multiple>
|
<select class="character_extra_world_info_selector wide100p" multiple>
|
||||||
<option value="">-- World Info not found --</option>
|
<option value="">-- World Info not found --</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5581,11 +5581,16 @@ function openCharacterWorldPopup() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let selectScrollTop = null;
|
||||||
|
|
||||||
if (deviceInfo && deviceInfo.device.type === 'desktop') {
|
if (deviceInfo && deviceInfo.device.type === 'desktop') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
const option = $(e.target);
|
const option = $(e.target);
|
||||||
|
const selectElement = $(extraSelect)[0];
|
||||||
|
selectScrollTop = selectElement.scrollTop;
|
||||||
option.prop('selected', !option.prop('selected'));
|
option.prop('selected', !option.prop('selected'));
|
||||||
await delay(1);
|
await delay(1);
|
||||||
|
selectElement.scrollTop = selectScrollTop;
|
||||||
}
|
}
|
||||||
|
|
||||||
onExtraWorldInfoChanged();
|
onExtraWorldInfoChanged();
|
||||||
|
Reference in New Issue
Block a user