Disambiguize wi modes

This commit is contained in:
somebody
2022-11-24 21:53:16 -06:00
parent bdb540052f
commit 27f89df9d9
2 changed files with 8 additions and 8 deletions

View File

@@ -1924,8 +1924,8 @@ function world_info_entry(data) {
// We may want to change the display names of these later
wiTypeSelector.value = {
chatcharacter: "Chat Character",
wi: "World Info",
constant: "Memory",
wi: "Keywords",
constant: "Always On",
}[world_info_data[data.uid].type];
wiTypeSelector.classList.remove("pulse");
@@ -1939,10 +1939,10 @@ function world_info_entry(data) {
case "Chat Character":
world_info_data[data.uid].constant = true;
break;
case "Memory":
case "Always On":
world_info_data[data.uid].constant = true;
break;
case "World Info":
case "Keywords":
world_info_data[data.uid].constant = false;
break;
default:
@@ -1951,8 +1951,8 @@ function world_info_entry(data) {
}
world_info_data[data.uid].type = {
"Chat Character": "chatcharacter",
"Memory": "constant",
"World Info": "wi",
"Always On": "constant",
"Keywords": "wi",
}[wiTypeSelector.value];
send_world_info(data.uid);
this.classList.add("pulse");

View File

@@ -18,8 +18,8 @@
</div>
<select class="world_info_type settings_select">
<option>World Info</option>
<option>Memory</option>
<option>Keywords</option>
<option>Always On</option>
<option>Chat Character</option>
</select>
</div>