Add automatic hide of the World Info Depth setting when using the alternative text generation method (alt gen ignores World Info Depth)

This commit is contained in:
ebolam
2022-10-24 14:22:18 -04:00
parent 712844afcd
commit 7579137433
3 changed files with 10 additions and 1 deletions

View File

@@ -193,7 +193,8 @@ gensettingstf = [
"menu_path": "World Info",
"sub_path": "",
"classname": "user",
"name": "widepth"
"name": "widepth",
"extra_classes": "var_sync_alt_system_alt_gen"
},
{
"uitype": "toggle",

View File

@@ -199,6 +199,10 @@ border-top-right-radius: var(--tabs_rounding);
margin: 2px;
}
.setting_container.var_sync_alt_system_alt_gen[system_alt_gen="true"] {
display: none;
}
.chat_mode[story_chatmode="false"] {
display: none;
}

View File

@@ -1,6 +1,10 @@
{% for item in settings %}
{% if item["menu_path"] == menu and item['sub_path'] == sub_path %}
{% if 'extra_classes' in item %}
<div class="setting_container {{ item['extra_classes'] }}">
{% else %}
<div class="setting_container">
{% endif %}
<!---Top Row---->
<span class="setting_label">
<span>{{ item['label'] }}:&nbsp;</span><span class="helpicon material-icons-outlined" tooltip="{{ item['tooltip'] }}">help_icon</span>