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>:
|
||||
</h3>
|
||||
</div>
|
||||
<h4>Primary Lorebook</h4>
|
||||
<div class="range-block-counter justifyLeft flex-container flexFlowColumn margin-bot-10px">
|
||||
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.
|
||||
Exporting a character would also export the selected World Info file embedded in the JSON data.
|
||||
</div>
|
||||
<div class="range-block-range wide100p">
|
||||
<select class="character_world_info_selector">
|
||||
<select class="character_world_info_selector wide100p">
|
||||
<option value="">--- None ---</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="range-block-title">
|
||||
<h4>
|
||||
Associate extra world info
|
||||
Additional Lorebooks
|
||||
</h4>
|
||||
</div>
|
||||
<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!
|
||||
</div>
|
||||
<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>
|
||||
</select>
|
||||
</div>
|
||||
|
@ -5581,11 +5581,16 @@ function openCharacterWorldPopup() {
|
||||
return;
|
||||
}
|
||||
|
||||
let selectScrollTop = null;
|
||||
|
||||
if (deviceInfo && deviceInfo.device.type === 'desktop') {
|
||||
e.preventDefault();
|
||||
const option = $(e.target);
|
||||
const selectElement = $(extraSelect)[0];
|
||||
selectScrollTop = selectElement.scrollTop;
|
||||
option.prop('selected', !option.prop('selected'));
|
||||
await delay(1);
|
||||
selectElement.scrollTop = selectScrollTop;
|
||||
}
|
||||
|
||||
onExtraWorldInfoChanged();
|
||||
|
Reference in New Issue
Block a user