fix WI sliders

This commit is contained in:
RossAscends 2023-10-27 03:01:25 +09:00
parent edbde2be37
commit b29f63f89e
1 changed files with 6 additions and 6 deletions

View File

@ -135,10 +135,10 @@ function setWorldInfoSettings(settings, data) {
world_info = settings.world_info ?? {} world_info = settings.world_info ?? {}
$("#world_info_depth_counter").text(world_info_depth); $("#world_info_depth_counter").val(world_info_depth);
$("#world_info_depth").val(world_info_depth); $("#world_info_depth").val(world_info_depth);
$("#world_info_budget_counter").text(world_info_budget); $("#world_info_budget_counter").val(world_info_budget);
$("#world_info_budget").val(world_info_budget); $("#world_info_budget").val(world_info_budget);
$("#world_info_recursive").prop('checked', world_info_recursive); $("#world_info_recursive").prop('checked', world_info_recursive);
@ -150,7 +150,7 @@ function setWorldInfoSettings(settings, data) {
$("#world_info_character_strategy").val(world_info_character_strategy); $("#world_info_character_strategy").val(world_info_character_strategy);
$("#world_info_budget_cap").val(world_info_budget_cap); $("#world_info_budget_cap").val(world_info_budget_cap);
$("#world_info_budget_cap_counter").text(world_info_budget_cap); $("#world_info_budget_cap_counter").val(world_info_budget_cap);
world_names = data.world_names?.length ? data.world_names : []; world_names = data.world_names?.length ? data.world_names : [];
@ -2043,13 +2043,13 @@ jQuery(() => {
$(document).on("input", "#world_info_depth", function () { $(document).on("input", "#world_info_depth", function () {
world_info_depth = Number($(this).val()); world_info_depth = Number($(this).val());
$("#world_info_depth_counter").text($(this).val()); $("#world_info_depth_counter").val($(this).val());
saveSettings(); saveSettings();
}); });
$(document).on("input", "#world_info_budget", function () { $(document).on("input", "#world_info_budget", function () {
world_info_budget = Number($(this).val()); world_info_budget = Number($(this).val());
$("#world_info_budget_counter").text($(this).val()); $("#world_info_budget_counter").val($(this).val());
saveSettings(); saveSettings();
}); });
@ -2080,7 +2080,7 @@ jQuery(() => {
$('#world_info_budget_cap').on('input', function () { $('#world_info_budget_cap').on('input', function () {
world_info_budget_cap = Number($(this).val()); world_info_budget_cap = Number($(this).val());
$("#world_info_budget_cap_counter").text(world_info_budget_cap); $("#world_info_budget_cap_counter").val(world_info_budget_cap);
saveSettings(); saveSettings();
}); });