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

View File

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