mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 08:55:50 +00:00
Amily渲染开关同步修复测试
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.history
|
||||||
@@ -14,7 +14,7 @@ export function initializeRendererBindings() {
|
|||||||
console.warn("[Amily2-Renderer] Could not find the settings container.");
|
console.warn("[Amily2-Renderer] Could not find the settings container.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
container.on('change', '#render-enable-toggle', function() {
|
container.on('change', '#render-enable-toggle-amily', function () {
|
||||||
const isChecked = this.checked;
|
const isChecked = this.checked;
|
||||||
|
|
||||||
if (!extension_settings[extensionName]) {
|
if (!extension_settings[extensionName]) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<div class="extension-content-item">
|
<div class="extension-content-item">
|
||||||
<div class="name">启用前端渲染</div>
|
<div class="name">启用前端渲染</div>
|
||||||
<div class="description">在聊天消息中渲染HTML内容。</div>
|
<div class="description">在聊天消息中渲染HTML内容。</div>
|
||||||
<input id="render-enable-toggle" type="checkbox" class="slider">
|
<input id="render-enable-toggle-amily" type="checkbox" class="slider">
|
||||||
</div>
|
</div>
|
||||||
<div class="extension-content-item">
|
<div class="extension-content-item">
|
||||||
<div class="name">渲染深度</div>
|
<div class="name">渲染深度</div>
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ export function updateUI() {
|
|||||||
}
|
}
|
||||||
// 同步渲染器开关状态
|
// 同步渲染器开关状态
|
||||||
if (settings.render_enabled !== undefined) {
|
if (settings.render_enabled !== undefined) {
|
||||||
$('#render-enable-toggle').prop('checked', settings.render_enabled);
|
$('#render-enable-toggle-amily').prop('checked', settings.render_enabled);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 同步渲染深度设置
|
// 同步渲染深度设置
|
||||||
|
|||||||
Reference in New Issue
Block a user