Skip to content

Commit b9183b5

Browse files
committed
fix: 修改命名,增加描述
1 parent cab538a commit b9183b5

File tree

5 files changed

+31
-10
lines changed

5 files changed

+31
-10
lines changed

app/src/core/service/controlService/shortcutKeysEngine/shortcutKeysRegister.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,10 +927,10 @@ export class KeyBindsRegistrar {
927927
await this.project.keyBinds.create("swapTextAndDetails", "e e e e e", () => {
928928
const selectedTextNodes = this.project.stageManager
929929
.getSelectedEntities()
930-
.filter((node): node is TextNode => node instanceof TextNode);
930+
.filter((node) => node instanceof TextNode);
931931
for (const node of selectedTextNodes) {
932-
const details: string = node.details;
933-
const text: string = node.text;
932+
const details = node.details;
933+
const text = node.text;
934934
node.details = text;
935935
node.text = details;
936936
node.forceAdjustSizeByText();

app/src/locales/en.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,15 @@ settings:
480480
options:
481481
intersect: Collision-based Selection
482482
contain: Full Coverage Selection
483+
isStealthModeEnabled:
484+
title: Stealth Mode
485+
description: |
486+
Enable stealth mode.
487+
stealthModeScopeRadius:
488+
title: Stealth Mode Scope Radius
489+
description: |
490+
The radius of the stealth mode scope.
491+
483492
# Sounds
484493
cuttingLineStartSoundFile:
485494
title: Sound File for Cutting Line Start

app/src/locales/zh_CN.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,14 @@ settings:
678678
low:
679679
medium:
680680
high:
681+
isStealthModeEnabled:
682+
title: 潜行模式
683+
description: 摸鱼专用,配合窗口透明效果更佳
684+
stealthModeScopeRadius:
685+
title: 潜行模式范围半径
686+
description: |
687+
狙击镜的半径
688+
681689
682690
effects:
683691
CircleChangeRadiusEffect:

app/src/locales/zh_TW.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,14 @@ settings:
533533
autoLayoutWhenTreeGenerate:
534534
description: "開啟後,生長節點時自動更新佈局\n此處的生長節點指 tab 和 \\ 鍵生長節點\n"
535535
title: 生長節點時自動更新佈局
536+
isStealthModeEnabled:
537+
title: 潜行模式
538+
description: 摸鱼专用,配合窗口透明效果更佳
539+
stealthModeScopeRadius:
540+
title: 潜行模式范围半径
541+
description: |
542+
狙击镜的半径
543+
536544
app:
537545
unsaved: "(未保存)"
538546
comingSoon: 即將到來……

app/src/sub/SettingsWindow/settings.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ const categories = {
190190
"showBackgroundVerticalLines",
191191
"showBackgroundDots",
192192
"showBackgroundCartesian",
193+
"isStealthModeEnabled",
194+
"stealthModeScopeRadius",
193195
],
194196
node: ["enableTagTextNodesBigDisplay", "showTextNodeBorder"],
195197
edge: ["lineStyle"],
@@ -203,13 +205,7 @@ const categories = {
203205
],
204206
debug: ["showDebug", "protectingPrivacy"],
205207
miniWindow: ["windowCollapsingWidth", "windowCollapsingHeight"],
206-
experimental: [
207-
"limitCameraInCycleSpace",
208-
"cameraCycleSpaceSizeX",
209-
"cameraCycleSpaceSizeY",
210-
"isStealthModeEnabled",
211-
"stealthModeScopeRadius",
212-
],
208+
experimental: ["limitCameraInCycleSpace", "cameraCycleSpaceSizeX", "cameraCycleSpaceSizeY"],
213209
},
214210
automation: {
215211
autoNamer: ["autoNamerTemplate", "autoNamerSectionTemplate"],

0 commit comments

Comments
 (0)