v2.1.0: 🔥add i18n Language Kit (For english user)
This commit is contained in:
+36
-27
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @Artstich_Example
|
||||
* @name ComfyUI_EasyKitHT_NodeAlignPro (ComfyUI Plugin)
|
||||
* @description ComfyUI_EasyKitHT_NodeAlignPro is a lightweight ComfyUI node alignment and node coloring tool for refactoring and rewriting the UI based on the open-source projects Comfyui-Align and Comfyui-Nodealigner.
|
||||
* @name easykit-node-align (ComfyUI Plugin)
|
||||
* @description Professional alignment & real-time node color picker. A must-have plugin for managing node layout and color schemes in ComfyUI. Features a real-time color picker, alignment, 7 preset colors, grayscale/custom modes, and one-click reverse alignment.
|
||||
* @author ArtsticH
|
||||
* @see https://registry.comfy.org/zh/nodes/easykit-node-align
|
||||
* @see https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro
|
||||
@@ -13,6 +13,9 @@
|
||||
* @copyright ©2012-2026, All rights reserved. Freely open to use, modify, and distribute in accordance with the GPL-3.0 license.
|
||||
*/
|
||||
|
||||
// 本插件全局默认官方语言为中文(cn)。国际友人可自行切换英文,支持'auto'以跟随浏览器/ComfyUI的语言设置
|
||||
// This plugin uses Chinese (cn) as the global default language. International users can switch to English. The 'auto' setting is also supported to follow the browser or ComfyUI's language preference.
|
||||
|
||||
// NodeAlignPro 全局国际化配置
|
||||
// 在 `window.hLanguage` 对象上提供 `t(key)` 辅助函数和 `lang` 属性(支持getter/setter)
|
||||
(function(){
|
||||
@@ -56,29 +59,37 @@
|
||||
Btn_EqualHeight: {cn: '等高', en: 'Equal Height'},
|
||||
Picker_ScreenPickUnsupported: {cn: '浏览器不支持屏幕取色功能,请使用最新版Chrome/Edge浏览器', en: 'Browser does not support EyeDropper API; use latest Chrome/Edge.'},
|
||||
Pick_NoSelection: {cn: '未选中任何节点', en: 'No nodes selected'},
|
||||
Setting_ShowOperationLog: {cn: '显示操作日志', en: 'Show Operation Log'},
|
||||
Setting_ForceReset: {cn: '⚠强制重置NodeAlignPro插件', en: '⚠Force reset NodeAlignPro plugin'},
|
||||
Setting_DragMode: {cn: '拖拽方式', en: 'Drag Mode'},
|
||||
Setting_UIScale: {cn: 'UI缩放', en: 'UI Scale'},
|
||||
Setting_WorkMode: {cn: '工作模式', en: 'Work Mode'},
|
||||
Setting_DisplayMode: {cn: '显示模式', en: 'Display Mode'},
|
||||
Setting_AlignBtnColor: {cn: '对齐按钮颜色', en: 'Align Button Color'},
|
||||
Setting_ToolbarBgColor: {cn: '工具栏背景色', en: 'Toolbar Background Color'},
|
||||
Setting_ToolbarOpacity: {cn: '工具栏透明度', en: 'Toolbar Opacity'},
|
||||
Setting_NewVersionTips: {cn: '新版说明', en: 'New Version Tips'},
|
||||
Setting_ColorApplyMode: {cn: '上色模式', en: 'Color Apply Mode'},
|
||||
Setting_Language: {cn: '语言', en: 'Language'},
|
||||
Setting_ShowOperationLog: {cn: '显示操作日志 (Show Operation Log)', en: 'Show Operation Log'},
|
||||
Setting_ForceReset: {cn: '⚠强制重置NodeAlignPro插件 (Force reset NodeAlignPro plugin)', en: '⚠Force reset NodeAlignPro plugin'},
|
||||
hSelKit_DragMode: {cn: '拖拽方式:', en: 'Drag Mode'},
|
||||
hSelKit_UIscale: {cn: 'UI缩放:', en: 'UI Scale'},
|
||||
hSelKit_WorkMode: {cn: '工作模式:', en: 'Work Mode'},
|
||||
hSelKit_DisplayMode: {cn: '显示模式:', en: 'Display Mode'},
|
||||
Setting_DragMode: {cn: '拖拽方式 (Drag Mode)', en: 'Drag Mode'},
|
||||
Setting_UIScale: {cn: 'UI缩放 (UI Scale)', en: 'UI Scale'},
|
||||
Setting_WorkMode: {cn: '工作模式 (Work Mode)', en: 'Work Mode'},
|
||||
Setting_DisplayMode: {cn: '显示模式 (Display Mode)', en: 'Display Mode'},
|
||||
Setting_AlignBtnColor: {cn: '对齐按钮颜色 (Align Button Color)', en: 'Align Button Color'},
|
||||
Setting_ToolbarBgColor: {cn: '工具栏背景色 (Toolbar Background Color)', en: 'Toolbar Background Color'},
|
||||
Setting_ToolbarOpacity: {cn: '工具栏透明度 (Toolbar Opacity)', en: 'Toolbar Opacity'},
|
||||
Setting_NewVersionTips: {cn: '新版说明 (New Version Tips)', en: 'New Version Tips'},
|
||||
Setting_ColorApplyMode: {cn: '上色模式 (Color Apply Mode)', en: 'Color Apply Mode'},
|
||||
Setting_Language: {cn: 'NodeAlignPro UI语言 (Language)', en: 'NodeAlignPro UI Language'},
|
||||
// 选项标签文字
|
||||
Option_Lang_CN: {cn: '中文', en: '中文'},
|
||||
Option_Lang_EN: {cn: 'English', en: 'English'},
|
||||
Option_Lang_Auto: {cn: '自动(Auto)', en: 'Auto'},
|
||||
Option_Drag_Split: {cn: '解 耦', en: 'Split'},
|
||||
Menu_Option_APBall: {cn: 'AP球', en: 'AP Ball'},
|
||||
Menu_Option_Color: {cn: '色 卡', en: 'ColorBar'},
|
||||
Menu_Option_Std: {cn: '标 准', en: 'Standard'},
|
||||
Menu_Option_Pro: {cn: '专 业', en: 'Pro'},
|
||||
Option_Drag_Link: {cn: '联 动', en: 'Link'},
|
||||
Option_Work_Align: {cn: '-对 齐-', en: '-Align-'},
|
||||
hSelKit_DragSplit: {cn: '解 耦', en: 'Split'},
|
||||
Option_Drag_Split: {cn: '解 耦(Split)', en: 'Split'},
|
||||
hSelKit_DragLink: {cn: '联 动', en: 'Link'},
|
||||
Option_Drag_Link: {cn: '联 动(Link)', en: 'Link'},
|
||||
hSelKit_APBall: {cn: 'AP球', en: 'AP Ball'},
|
||||
hSelKit_ColorBar: {cn: '色 卡', en: 'ColorBar'},
|
||||
// hSelKit_StdBar: {cn: '标 准', en: 'Standard'},
|
||||
hSelKit_Node2: {cn: 'Node2.0', en: 'Node2.0'},
|
||||
hSelKit_ProBar: {cn: '专 业', en: 'Pro'},
|
||||
// Option_Work_Align: {cn: '-对 齐-', en: '-Align-'},
|
||||
hSelKit_AlignBar: {cn: '对 齐', en: 'AlignKit'},
|
||||
Option_Display_Always: {cn: '常驻显示', en: 'Always'},
|
||||
Option_Display_Follow: {cn: '跟随选框', en: 'Follow+'},
|
||||
hNodePreview_Tips: {cn: '👆双击切换上色模式:', en: '👆Dbl-Click this: '},
|
||||
@@ -99,15 +110,13 @@
|
||||
Select_State: {cn: '选择状态', en: 'Select State'},
|
||||
Tool_MagicWand: {cn: '魔棒', en: 'Magic Wand'},
|
||||
Aria_Rename: {cn: '重命名', en: 'Rename'},
|
||||
Menu_ResetAll: {cn: '一键重置', en: 'Reset All'},
|
||||
Menu_BugReport: {cn: 'bug反馈', en: 'Bug2Issue'},
|
||||
Menu_Guide: {cn: '使用教程', en: 'Guide'},
|
||||
Menu_NewVersion: {cn: '新版说明', en: 'New Tips'},
|
||||
hMenu_ResetAll: {cn: '一键重置', en: 'Reset All'},
|
||||
hMenu_BugReport: {cn: 'bug反馈', en: 'Bug2Issue'},
|
||||
hMenu_Guide: {cn: '使用教程', en: 'Guide'},
|
||||
hMenu_NewTips: {cn: '新版说明', en: 'New Tips'},
|
||||
// 按需添加更多键值
|
||||
};
|
||||
|
||||
// 本插件全局默认光放语言为中文(cn)。,国际友人可自行切换英文,支持'auto'以跟随浏览器/ComfyUI的语言设置
|
||||
// This plugin uses Chinese (cn) as the global default language. International users can switch to English. The 'auto' setting is also supported to follow the browser or ComfyUI's language preference.
|
||||
const state = { lang: 'cn' };
|
||||
|
||||
// 从ComfyUI或浏览器检测实际使用的语言
|
||||
|
||||
+26
-17
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @Artstich_Example
|
||||
* @name ComfyUI_EasyKitHT_NodeAlignPro (ComfyUI Plugin)
|
||||
* @description ComfyUI_EasyKitHT_NodeAlignPro is a lightweight ComfyUI node alignment and node coloring tool for refactoring and rewriting the UI based on the open-source projects Comfyui-Align and Comfyui-Nodealigner.
|
||||
* @name easykit-node-align (ComfyUI Plugin)
|
||||
* @description Professional alignment & real-time node color picker. A must-have plugin for managing node layout and color schemes in ComfyUI. Features a real-time color picker, alignment, 7 preset colors, grayscale/custom modes, and one-click reverse alignment.
|
||||
* @author ArtsticH
|
||||
* @see https://registry.comfy.org/zh/nodes/easykit-node-align
|
||||
* @see https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro
|
||||
@@ -689,27 +689,33 @@
|
||||
<button id="hRenameTool" class="hBtn"><div class="hIcon" id="hBtnS_renameToolA" data-i18n="Aria_Rename" data-i18n-attr="aria-label"></div></button></div></div>
|
||||
<div id="h6__hMenu" style="display: none;">
|
||||
<div class="hCMP__hSelKit">
|
||||
<label class="hSelKit-label" data-i18n="Setting_DragMode">拖拽方式</label><div class="hCMP-hSel">
|
||||
<div class="hMenu-btn" data-target="hCMP-hSel__drag-options" data-i18n="Option_Drag_Split">解 耦</div>
|
||||
<label class="hSelKit-label" data-i18n="hSelKit_DragMode">拖拽方式</label><div class="hCMP-hSel">
|
||||
<div class="hMenu-btn" data-target="hCMP-hSel__drag-options" data-i18n="hSelKit_DragSplit">解 耦</div>
|
||||
<div class="hCMP-hSel__options" id="hCMP-hSel__drag-options">
|
||||
<div class="hCMP-hSel__option" data-value="hDragMode1_Split" data-i18n="Option_Drag_Split">解 耦</div><div class="hCMP-hSel__option selected" data-value="hDragMode0_Link" data-i18n="Option_Drag_Link">联 动</div></div></div></div>
|
||||
<div class="hCMP-hSel__option" data-value="hDragMode1_Split" data-i18n="hSelKit_DragSplit">解 耦</div><div class="hCMP-hSel__option selected" data-value="hDragMode0_Link" data-i18n="hSelKit_DragLink">联 动</div></div></div></div>
|
||||
<div class="hCMP__hSelKit">
|
||||
<label class="hSelKit-label">UI缩放</label><div class="hCMP-hSel">
|
||||
<label class="hSelKit-label" data-i18n="hSelKit_UIscale">UI缩放</label><div class="hCMP-hSel">
|
||||
<div class="hMenu-btn" data-target="hCMP-hSel__scale-options">1x</div>
|
||||
<div class="hCMP-hSel__options" id="hCMP-hSel__scale-options">
|
||||
<div class="hCMP-hSel__option" data-value="hUIScale_0_5x">0.5x</div><div class="hCMP-hSel__option" data-value="hUIScale_0_75x">0.75x</div><div class="hCMP-hSel__option selected" data-value="hUIScale_1x">1x</div><div class="hCMP-hSel__option" data-value="hUIScale_1_25x">1.25x</div><div class="hCMP-hSel__option" data-value="hUIScale_1_5x">1.5x</div><div class="hCMP-hSel__option" data-value="hUIScale_2x">2x</div></div></div></div>
|
||||
<div class="hCMP__hSelKit">
|
||||
<label class="hSelKit-label" data-i18n="Setting_WorkMode">工作模式</label><div class="hCMP-hSel">
|
||||
<div class="hMenu-btn" data-target="hCMP-hSel__mode-options" data-i18n="Option_Work_Align">对 齐</div>
|
||||
<label class="hSelKit-label" data-i18n="hSelKit_WorkMode">工作模式</label><div class="hCMP-hSel">
|
||||
<div class="hMenu-btn" data-target="hCMP-hSel__mode-options" data-i18n="hSelKit_AlignBar">对 齐</div>
|
||||
<div class="hCMP-hSel__options" id="hCMP-hSel__mode-options">
|
||||
<div class="hCMP-hSel__option" data-value="hApBar0_apBall" style="opacity: 0.3; cursor: not-allowed;" data-i18n="Menu_Option_APBall">AP球</div><div class="hCMP-hSel__option" data-value="hApBar1_Color" style="opacity: 0.3; cursor: not-allowed;" data-i18n="Menu_Option_Color">色 卡</div><div class="hCMP-hSel__option selected" data-value="hApBar2_Align" data-i18n="Option_Work_Align">-对 齐-</div><div class="hCMP-hSel__option" data-value="hApBar3_StdH" style="opacity: 0.3; cursor: not-allowed;" data-i18n="Menu_Option_Std">标 准</div><div class="hCMP-hSel__option" data-value="hApBar4_ProH" style="opacity: 0.3; cursor: not-allowed;" data-i18n="Menu_Option_Pro">专 业</div></div></div></div>
|
||||
<div class="hCMP-hSel__option" data-value="hApBar0_apBall" style="opacity: 0.3; cursor: not-allowed;" data-i18n="hSelKit_APBall">AP球</div>
|
||||
<div class="hCMP-hSel__option" data-value="hApBar1_Color" style="opacity: 0.3; cursor: not-allowed;" data-i18n="hSelKit_ColorBar">色 卡</div>
|
||||
<div class="hCMP-hSel__option selected" data-value="hApBar2_Align" data-i18n="hSelKit_AlignBar">-对 齐-</div>
|
||||
<div class="hCMP-hSel__option" data-value="hApBar2_Node2" data-i18n="hSelKit_Node2">Node2.0</div>
|
||||
<!-- <div class="hCMP-hSel__option" data-value="hApBar3_StdH" style="opacity: 0.3; cursor: not-allowed;" data-i18n="hSelKit_StdBar">标 准</div> -->
|
||||
<div class="hCMP-hSel__option" data-value="hApBar4_ProH" style="opacity: 0.3; cursor: not-allowed;" data-i18n="hSelKit_ProBar">专 业</div>
|
||||
</div></div></div>
|
||||
<div class="hCMP__hSelKit">
|
||||
<label class="hSelKit-label" data-i18n="Setting_DisplayMode">显示模式</label><div class="hCMP-hSel"><div class="hMenu-btn" data-target="hCMP-hSel__display-options" data-i18n="Option_Display_Always">常驻显示</div><div class="hCMP-hSel__options" id="hCMP-hSel__display-options"><div class="hCMP-hSel__option selected" data-value="hDispMode0_Always" data-i18n="Option_Display_Always">常驻显示</div><div class="hCMP-hSel__option" data-value="hDispMode1_Follow" data-i18n="Option_Display_Follow">跟随选框</div></div></div></div>
|
||||
<label class="hSelKit-label" data-i18n="hSelKit_DisplayMode">显示模式</label><div class="hCMP-hSel"><div class="hMenu-btn" data-target="hCMP-hSel__display-options" data-i18n="Option_Display_Always">常驻显示</div><div class="hCMP-hSel__options" id="hCMP-hSel__display-options"><div class="hCMP-hSel__option selected" data-value="hDispMode0_Always" data-i18n="Option_Display_Always">常驻显示</div><div class="hCMP-hSel__option" data-value="hDispMode1_Follow" data-i18n="Option_Display_Follow">跟随选框</div></div></div></div>
|
||||
<div>
|
||||
<button class="hMenu-btn hMenu-btnReset" id="hReset" data-i18n="Menu_ResetAll">一键重置</button>
|
||||
<button class="hMenu-btn" id="hBugReport" data-i18n="Menu_BugReport">bug反馈</button>
|
||||
<button class="hMenu-btn" id="hGuide" data-i18n="Menu_Guide">使用教程</button>
|
||||
<button class="hMenu-btn" id="hBack" data-i18n="Menu_NewVersion">新版说明</button></div></div>
|
||||
<button class="hMenu-btn hMenu-btnReset" id="hReset" data-i18n="hMenu_ResetAll">一键重置</button>
|
||||
<button class="hMenu-btn" id="hBugReport" data-i18n="hMenu_BugReport">bug反馈</button>
|
||||
<button class="hMenu-btn" id="hGuide" data-i18n="hMenu_Guide">使用教程</button>
|
||||
<button class="hMenu-btn" id="hBack" data-i18n="hMenu_NewTips">新版说明</button></div></div>
|
||||
<input type="color" id="hiddenColorPicker" style="display: none;">
|
||||
`;
|
||||
return container;
|
||||
@@ -802,7 +808,8 @@
|
||||
// 更新菜单文本
|
||||
updateDropdownText() {
|
||||
const dragBtn = document.querySelector('[data-target="hCMP-hSel__drag-options"]'), dragOption1 = document.querySelector('[data-value="hDragMode0_Link"]'), dragOption2 = document.querySelector('[data-value="hDragMode1_Split"]');
|
||||
if (dragBtn) { dragBtn.textContent = this.linkMode === 1 ? '联 动' : '解 耦'; }
|
||||
// if (dragBtn) { dragBtn.textContent = this.linkMode === 1 ? '联 动' : '解 耦'; }
|
||||
if (dragBtn) { dragBtn.textContent = this.linkMode === 1 ? h_i18n('hSelKit_DragLink','联 动') : h_i18n('hSelKit_DragSplit','解 耦'); }
|
||||
if (dragOption1 && dragOption2) { dragOption1.classList.toggle('selected', this.linkMode === 1); dragOption2.classList.toggle('selected', this.linkMode === 0); }
|
||||
},
|
||||
saveModeToStorage() { localStorage.setItem('NodeAlignProRunButtonLink', this.linkMode.toString()); },
|
||||
@@ -1946,7 +1953,8 @@
|
||||
};
|
||||
|
||||
const dragBtn = document.querySelector('[data-target="hCMP-hSel__drag-options"]'), dragOption1 = document.querySelector('[data-value="hDragMode0_Link"]'), dragOption2 = document.querySelector('[data-value="hDragMode1_Split"]');
|
||||
resetTwoOptionDropdown(dragBtn, dragOption1, dragOption2, '解 耦', 2);
|
||||
resetTwoOptionDropdown(dragBtn, dragOption1, dragOption2, h_i18n('hSelKit_DragSplit','解 耦'), 2);
|
||||
// resetTwoOptionDropdown(dragBtn, dragOption1, dragOption2, '解 耦', 2);
|
||||
|
||||
const scaleBtn = document.querySelector('[data-target="hCMP-hSel__scale-options"]'),
|
||||
scaleOptions = {
|
||||
@@ -1960,7 +1968,8 @@
|
||||
'hApBar0_apBall': document.querySelector('[data-value="hApBar0_apBall"]'), 'hApBar1_Color': document.querySelector('[data-value="hApBar1_Color"]'), 'hApBar2_Align': document.querySelector('[data-value="hApBar2_Align"]'),
|
||||
'hApBar3_StdH': document.querySelector('[data-value="hApBar3_StdH"]'), 'hApBar4_ProH': document.querySelector('[data-value="hApBar4_ProH"]')
|
||||
};
|
||||
resetMultiOptionDropdown(modeBtn, modeOptions, 'hApBar2_Align', '-对 齐-');
|
||||
resetMultiOptionDropdown(modeBtn, modeOptions, 'hApBar2_Align', h_i18n('hSelKit_AlignBar','对 齐'));
|
||||
// resetMultiOptionDropdown(modeBtn, modeOptions, 'hApBar2_Align', '对 齐');h_i18n('hSelKit_DragSplit','解 耦')
|
||||
|
||||
window.__hMgr_DisplayMode && window.__hMgr_DisplayMode.updateMenuButtonText();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @Artstich_Example
|
||||
* @name ComfyUI_EasyKitHT_NodeAlignPro (ComfyUI Plugin)
|
||||
* @description ComfyUI_EasyKitHT_NodeAlignPro is a lightweight ComfyUI node alignment and node coloring tool for refactoring and rewriting the UI based on the open-source projects Comfyui-Align and Comfyui-Nodealigner.
|
||||
* @name easykit-node-align (ComfyUI Plugin)
|
||||
* @description Professional alignment & real-time node color picker. A must-have plugin for managing node layout and color schemes in ComfyUI. Features a real-time color picker, alignment, 7 preset colors, grayscale/custom modes, and one-click reverse alignment.
|
||||
* @author ArtsticH
|
||||
* @see https://registry.comfy.org/zh/nodes/easykit-node-align
|
||||
* @see https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro
|
||||
@@ -41,7 +41,7 @@ const NodeAlignProSettings = [
|
||||
{
|
||||
id: "hNodeAlignPro.ShowOperationLog", name: h_i18n('Setting_ShowOperationLog','显示操作日志'), type: "boolean",
|
||||
defaultValue: false,
|
||||
category: ["🔥 NodeAlignPro", "Z开发人员选项", h_i18n('Setting_ShowOperationLog','显示操作日志')],
|
||||
category: ["🔥 NodeAlignPro", "Z开发人员选项 (Developer Options)", h_i18n('Setting_ShowOperationLog','显示操作日志')],
|
||||
tooltip: h_i18n('Setting_ShowOperationLog','开启后,插件操作日志将输出到页面左上角,方便进阶用户调试'),
|
||||
onChange: (value) => { try { if (window.NodeAlignProSettingsManager) { window.NodeAlignProSettingsManager.setShowOperationLog(value); } } catch (error) { console.error('设置操作日志显示失败:', error); } }
|
||||
},
|
||||
@@ -49,7 +49,7 @@ const NodeAlignProSettings = [
|
||||
{
|
||||
id: "hNodeAlignPro.hReset", name: h_i18n('Setting_ForceReset','⚠强制重置NodeAlignPro插件'), type: "boolean",
|
||||
defaultValue: false,
|
||||
category: ["🔥 NodeAlignPro", "Z开发人员选项", h_i18n('Setting_ForceReset','⚠强制重置NodeAlignPro插件')],
|
||||
category: ["🔥 NodeAlignPro", "Z开发人员选项 (Developer Options)", h_i18n('Setting_ForceReset','⚠强制重置NodeAlignPro插件')],
|
||||
tooltip: h_i18n('Setting_ForceReset','⚠此操作会强制刷新页面,请务必先保存工作流! 开启后会强制重建NodeAlignPro插件,仅在插件异常时使用! '),
|
||||
onChange: (value) => {
|
||||
if (value) try {
|
||||
@@ -65,13 +65,13 @@ const NodeAlignProSettings = [
|
||||
}
|
||||
},
|
||||
|
||||
// { id: "hNodeAlignPro.button_test", name: "测试", type: "input", defaultValue: "测试文本", category: ["🔥 NodeAlignPro", "NodeAlignPro预置颜色", "测试"], onChange: (newVal) => { } },
|
||||
// { id: "hNodeAlignPro.button_test", name: "测试", type: "input", defaultValue: "测试文本", category: ["🔥 NodeAlignPro", "NodeAlignPro颜色预设 (Color preset)", "测试"], onChange: (newVal) => { } },
|
||||
|
||||
{
|
||||
id: "hNodeAlignPro.linkMode", name: h_i18n('Setting_DragMode','拖拽方式'), type: "combo",
|
||||
options: [{ value: "hDragMode1_Split", text: h_i18n('Option_Drag_Split','解 耦') }, { value: "hDragMode0_Link", text: h_i18n('Option_Drag_Link','联 动') }],
|
||||
defaultValue: "hDragMode1_Split",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", h_i18n('Setting_DragMode','拖拽方式')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_DragMode','拖拽方式')],
|
||||
tooltip: h_i18n('Setting_DragMode','切换是否联动[运行/Action]按钮到插件面板(与插件右键菜单设置同步)'),
|
||||
onChange: (value) => {
|
||||
try {
|
||||
@@ -95,10 +95,10 @@ const NodeAlignProSettings = [
|
||||
},
|
||||
|
||||
{
|
||||
id: "hNodeAlignPro.UIScale", name: "UI缩放", type: "combo",
|
||||
id: "hNodeAlignPro.UIScale", name: h_i18n('Setting_UIScale','UI缩放'), type: "combo",
|
||||
options: [{ value: "hUIScale_0_5x", text: "0.5x" }, { value: "hUIScale_0_75x", text: "0.75x" }, { value: "hUIScale_1x", text: "1x(默认)" }, { value: "hUIScale_1_25x", text: "1.25x" }, { value: "hUIScale_1_5x", text: "1.5x" }, { value: "hUIScale_2x", text: "2x" }],
|
||||
defaultValue: "hUIScale_1x",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", "UI缩放"],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_UIScale','UI缩放')],
|
||||
tooltip: "调整插件UI缩放比例(与插件右键菜单设置同步)",
|
||||
onChange: (value) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setUIScale === 'function') { window.NodeAlignProSettingsManager.setUIScale(value); } else __hNodeAlignPro_safeCall(null, null, 'uiScale', value); } catch (error) { console.error('设置UI缩放失败:', error); } }
|
||||
},
|
||||
@@ -106,7 +106,7 @@ const NodeAlignProSettings = [
|
||||
id: "hNodeAlignPro.UIScale_v2", name: "UI缩放v2", type: "combo",
|
||||
options: [{ value: "hUIScale_0_5x", text: "0.5x" }, { value: "hUIScale_0_75x", text: "0.75x" }, { value: "hUIScale_1x", text: "1x(默认)" }, { value: "hUIScale_1_25x", text: "1.25x" }, { value: "hUIScale_1_5x", text: "1.5x" }, { value: "hUIScale_2x", text: "2x" }],
|
||||
defaultValue: "hUIScale_1x",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", "UI缩放v2"],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", "UI缩放v2"],
|
||||
attrs: { editable: true, filter: true, filterPlaceholder: "输入/选择缩放比例...", showClear: true, loading: false, loadingIcon: "pi pi-spinner pi-spin" },
|
||||
onChange: (newVal, oldVal) => {
|
||||
try {
|
||||
@@ -125,9 +125,9 @@ const NodeAlignProSettings = [
|
||||
}, */
|
||||
{
|
||||
id: "hNodeAlignPro.WorkMode", name: h_i18n('Setting_WorkMode','工作模式'), type: "combo",
|
||||
options: [{ value: "hApBar2_Align", text: h_i18n('Option_Work_Align','-对 齐-') }],
|
||||
options: [{ value: "hApBar2_Align", text: h_i18n('hSelKit_AlignBar','对 齐(AlignKit)') }],
|
||||
defaultValue: "hApBar2_Align",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", h_i18n('Setting_WorkMode','工作模式')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_WorkMode','工作模式')],
|
||||
tooltip: h_i18n('Setting_WorkMode','切换插件工作模式(与插件右键菜单设置同步)'),
|
||||
onChange: (value) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setWorkMode === 'function') { window.NodeAlignProSettingsManager.setWorkMode(value); } else __hNodeAlignPro_safeCall(null, null, 'workMode', value); } catch (error) { console.error('设置工作模式失败:', error); } }
|
||||
},
|
||||
@@ -136,7 +136,7 @@ const NodeAlignProSettings = [
|
||||
id: "hNodeAlignPro.DisplayMode", name: h_i18n('Setting_DisplayMode','显示模式'), type: "combo",
|
||||
options: [{ value: "hDispMode0_Always", text: h_i18n('Option_Display_Always','常驻显示') }, { value: "hDispMode1_Follow", text: h_i18n('Option_Display_Follow','跟随选框') }],
|
||||
defaultValue: "hDispMode0_Always",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", h_i18n('Setting_DisplayMode','显示模式')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_DisplayMode','显示模式')],
|
||||
tooltip: h_i18n('Setting_DisplayMode','切换插件面板的显示模式(与插件右键菜单设置同步)'),
|
||||
onChange: (value) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setDisplayMode === 'function') { window.NodeAlignProSettingsManager.setDisplayMode(value); } else __hNodeAlignPro_safeCall(null, null, 'displayMode', value); } catch (error) { console.error('设置显示模式失败:', error); } }
|
||||
},
|
||||
@@ -150,7 +150,7 @@ const NodeAlignProSettings = [
|
||||
{ value: 'en', text: h_i18n('Option_Lang_EN','English') }
|
||||
],
|
||||
defaultValue: 'cn',
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", h_i18n('Setting_Language','语言')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_Language','语言')],
|
||||
tooltip: h_i18n('Setting_Language','选择插件界面语言(优先于浏览器语言设置)'),
|
||||
onChange: (value) => {
|
||||
try {
|
||||
@@ -172,7 +172,7 @@ const NodeAlignProSettings = [
|
||||
{
|
||||
id: "hNodeAlignPro.hColor_SVG", name: h_i18n('Setting_AlignBtnColor','对齐按钮颜色'), type: "color",
|
||||
defaultValue: "6B6B70",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro预置颜色", h_i18n('Setting_AlignBtnColor','对齐按钮颜色')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro颜色预设 (Color preset)", h_i18n('Setting_AlignBtnColor','对齐按钮颜色')],
|
||||
tooltip: h_i18n('Setting_AlignBtnColor','控制对齐按钮颜色'),
|
||||
onChange: (newVal) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setAlignButtonColor === 'function') { window.NodeAlignProSettingsManager.setAlignButtonColor(newVal); } else __hNodeAlignPro_safeCall(null, null, 'alignButtonColor', newVal); } catch (error) { console.error('设置对齐按钮颜色失败:', error); } }
|
||||
},
|
||||
@@ -180,7 +180,7 @@ const NodeAlignProSettings = [
|
||||
{
|
||||
id: "hNodeAlignPro.hColor_bg", name: h_i18n('Setting_ToolbarBgColor','工具栏背景色'), type: "color",
|
||||
defaultValue: "18181B",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro预置颜色", h_i18n('Setting_ToolbarBgColor','工具栏背景色')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro颜色预设 (Color preset)", h_i18n('Setting_ToolbarBgColor','工具栏背景色')],
|
||||
tooltip: h_i18n('Setting_ToolbarBgColor','控制对齐组件的背景色'),
|
||||
onChange: (newVal) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setToolbarBgColor === 'function') { window.NodeAlignProSettingsManager.setToolbarBgColor(newVal); } else __hNodeAlignPro_safeCall(null, null, 'toolbarBgColor', newVal); } catch (error) { console.error('设置工具栏背景色失败:', error); } }
|
||||
},
|
||||
@@ -189,7 +189,7 @@ const NodeAlignProSettings = [
|
||||
id: "hNodeAlignPro.hOpacity", name: h_i18n('Setting_ToolbarOpacity','工具栏透明度'), type: "slider",
|
||||
defaultValue: 95,
|
||||
attrs: { min: 0, max: 100, step: 1 },
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro预置颜色", h_i18n('Setting_ToolbarOpacity','工具栏透明度')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro颜色预设 (Color preset)", h_i18n('Setting_ToolbarOpacity','工具栏透明度')],
|
||||
tooltip: h_i18n('Setting_ToolbarOpacity','控制对齐组件的背景透明度'),
|
||||
onChange: (newVal) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setToolbarOpacity === 'function') { window.NodeAlignProSettingsManager.setToolbarOpacity(newVal); } else __hNodeAlignPro_safeCall(null, null, 'toolbarOpacity', newVal); } catch (error) { console.error('设置工具栏透明度失败:', error); } }
|
||||
},
|
||||
@@ -197,7 +197,7 @@ const NodeAlignProSettings = [
|
||||
{
|
||||
id: "hNodeAlignPro.NewVersionTips", name: h_i18n('Setting_NewVersionTips','新版说明'), type: "boolean",
|
||||
defaultValue: true,
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置", h_i18n('Setting_NewVersionTips','新版说明')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro基本设置 (Basic Settings)", h_i18n('Setting_NewVersionTips','新版说明')],
|
||||
tooltip: h_i18n('Setting_NewVersionTips','v2.0.3_rc新版功能:按Shift、Alt、Ctrl Alt切换不同色卡模式... Alt+对齐按钮:对齐到“反向基准”节点^_^'),
|
||||
onChange: (value) => { try { if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setNewVersionTips === 'function') { window.NodeAlignProSettingsManager.setNewVersionTips(value); } else __hNodeAlignPro_safeCall(null, null, 'newVersionTips', value); } catch (error) { console.error('设置新版说明失败:', error); } }
|
||||
},
|
||||
@@ -206,7 +206,7 @@ const NodeAlignProSettings = [
|
||||
id: "hNodeAlignPro.ColorApplyMode", name: h_i18n('Setting_ColorApplyMode','上色模式'), type: "combo",
|
||||
options: [ { value: "1", text: h_i18n('Option_Color_Whole','整体色') }, { value: "0", text: h_i18n('Option_Color_TitleOnly','仅标题') } ],
|
||||
defaultValue: "1",
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro节点设置", h_i18n('Setting_ColorApplyMode','上色模式')],
|
||||
category: ["🔥 NodeAlignPro", "NodeAlignPro节点设置 (Node Settings)", h_i18n('Setting_ColorApplyMode','上色模式')],
|
||||
tooltip: h_i18n('Setting_ColorApplyMode','设置节点上色模式:整体色(背景+标题)或仅标题色'),
|
||||
onChange: (value) => { try { const intVal = parseInt(value); if (window.NodeAlignProSettingsManager && typeof window.NodeAlignProSettingsManager.setColorApplyMode === 'function') { window.NodeAlignProSettingsManager.setColorApplyMode(intVal); } else __hNodeAlignPro_safeCall(null, null, 'colorApplyMode', intVal); } catch (error) { console.error('设置上色模式失败:', error); } }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user