More Image Generation Stuff

This commit is contained in:
ebolam
2022-12-14 14:46:35 -05:00
parent a7a6c10f6e
commit b60f70a6fc

View File

@@ -783,6 +783,7 @@ function var_changed(data) {
if ((data.classname == 'actions') && (data.name == 'Action Count')) {
current_action = data.value;
document.getElementsByClassName("action_image")[0].setAttribute("chunk", data.value);
if (current_action <= 0) {
//console.log("setting action_count to "+current_action);
const storyPrompt = $el("#story_prompt");
@@ -973,6 +974,7 @@ function var_changed(data) {
if ((data.classname == "actions") && (data.name == "Action Count")) {
var option_container = document.getElementById("Select Options");
var current_chunk = parseInt(document.getElementById("action_count").textContent)+1;
var children = option_container.children;
for (var i = 0; i < children.length; i++) {
var chunk = children[i];