This commit is contained in:
GuiAworld
2022-08-15 22:59:30 -03:00
4 changed files with 31 additions and 13 deletions

View File

@@ -6382,6 +6382,7 @@ def UI_2_Pinning(data):
@socketio.on('back')
def UI_2_back(data):
print("back")
koboldai_vars.actions.clear_unused_options()
ignore = koboldai_vars.actions.pop()
#==================================================================#
@@ -6391,13 +6392,15 @@ def UI_2_back(data):
def UI_2_redo(data):
if len(koboldai_vars.actions.get_current_options()) == 1:
koboldai_vars.actions.use_option(0)
#==================================================================#
# Event triggered when user clicks the retry button
#==================================================================#
@socketio.on('retry')
def UI_2_retry(data):
if koboldai_vars.numseqs == 1:
if len(koboldai_vars.actions.get_current_options()) == 0:
UI_2_back(None)
koboldai_vars.actions.clear_unused_options()
koboldai_vars.lua_koboldbridge.feedback = None

View File

@@ -199,6 +199,8 @@ input[type="range"]::-ms-fill-upper {
z-index: 2;
border-bottom-color: #FFF;
}
.tabrow:before {
position: absolute;
content: " ";
@@ -300,6 +302,8 @@ input[type="range"]::-ms-fill-upper {
padding-top: 6px;
grid-area: minlabel;
overflow: hidden;
padding: 5px;
padding-top: 0px;
font-size: 0.8em;
}
@@ -307,6 +311,8 @@ input[type="range"]::-ms-fill-upper {
padding-top: 6px;
grid-area: maxlabel;
overflow: hidden;
padding: 5px;
padding-top: 0px;
text-align: right;
font-size: 0.8em;
}
@@ -314,11 +320,15 @@ input[type="range"]::-ms-fill-upper {
.setting_label {
grid-area: label;
overflow: hidden;
padding: 5px;
padding-top: 0px;
}
.setting_value {
text-align: right;
grid-area: value;
padding: 5px;
padding-top: 0px;
background-color: inherit;
color: inherit;
border: none;

View File

@@ -45,20 +45,25 @@
<div id="Select Options" class="sequence_area"></div>
<!------------ Theme Area--------------------->
<div class="themerow" id="themerow">
<h4>If you want to generate a random prompt, insert a theme here:</h4>
<input type="text" autocomplete="off" style="width: 100%; border-radius: 5px;" id="themetext" placeholder="Theme for Random Story" oninput='if (this.value != "") {
document.getElementById("input_text").disabled = true;
} else {
document.getElementById("input_text").disabled = false;
}'/>
<h4>If you want to write your prompt, insert it here:</h4>
<div class="tabrow nomenu_icon">
<span class="prompt_menu selected" id="prompt_menu_random" onclick="this.classList.add('selected');
document.getElementById('prompt_menu_normal').classList.remove('selected');
document.getElementById('random_game_prompt').classList.add('hidden');
document.getElementById('input_text').classList.remove('hidden');">Prompt</span>
<span class="prompt_menu" id="prompt_menu_normal" onclick="this.classList.add('selected');
document.getElementById('prompt_menu_random').classList.remove('selected');
document.getElementById('random_game_prompt').classList.remove('hidden');
document.getElementById('input_text').classList.add('hidden');">Random Prompt</span>
</div>
</div>
<!------------ Input Area--------------------->
<div class="inputrow" id="inputrow_container">
<div id="random_game_prompt" class="hidden">
<input type="text" autocomplete="off" style="width: 100%;" id="themetext" placeholder="Theme for Random Story" oninput='if (this.value != "") {
document.getElementById("input_text").value = "";'/>
</div>
<textarea autocomplete="off" row=5 id="input_text" placeholder="Enter Prompt Here" oninput='if (this.value != "") {
document.getElementById("themetext").disabled = true;
} else {
document.getElementById("themetext").disabled = false;
document.getElementById("themetext").value = "";
}'></textarea>
<div class="statusbar_outer hidden">
<div class="statusbar_inner" style="width:0%">0%</div>

View File

@@ -36,8 +36,8 @@
{% endif %}
</span>
<!---Slider Labels--->
<span class="setting_minlabel"><span style="top: -4px; position: relative;">{% if item["uitype"] == "slider" %}{{ item['min'] }}{% endif %}</span></span>
<span class="setting_maxlabel"><span style="top: -4px; position: relative;">{% if item["uitype"] == "slider" %}{{ item['max'] }}{% endif %}</span></span>
<span class="setting_minlabel"><span style="position: relative;">{% if item["uitype"] == "slider" %}{{ item['min'] }}{% endif %}</span></span>
<span class="setting_maxlabel"><span style="position: relative;">{% if item["uitype"] == "slider" %}{{ item['max'] }}{% endif %}</span></span>
</div>
{% endif %}
{% endfor %}