mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-11-28 09:00:23 +08:00
182 lines
No EOL
14 KiB
Markdown
182 lines
No EOL
14 KiB
Markdown
# Tool Buttons
|
|
|
|
::: info
|
|
All buttons can be hidden or displayed in `Display Settings` -> `Tool Buttons`.
|
|
|
|
All buttons can be freely adjusted in position. Buttons can be set to alignment groups `Left` `Center` `Right`, and adjustments to relative positions will be limited within the alignment group.
|
|
|
|
Button color can be customized by clicking on "Color".
|
|
|
|
Button icon can be customized by clicking on "Icon".
|
|
|
|
Some buttons have two icons to indicate two different states. Some buttons only have one icon, but they use different colors to represent different states.
|
|
:::
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css">
|
|
|
|
<style>
|
|
i{
|
|
color:blue;
|
|
width:20px;
|
|
}
|
|
.fa-icon {
|
|
visibility: hidden;
|
|
}
|
|
.btnstatus2{
|
|
color:deeppink;
|
|
}
|
|
</style>
|
|
|
|
1. #### <i class="fa fa-rotate-right"></i> <i class="fa fa-icon fa-rotate-right"></i> Manual execution {#anchor-retrans}
|
|
The actual meaning is to read the input once from the current text input source and perform translation.
|
|
|
|
For example, if the current mode is OCR, it will perform OCR again.
|
|
|
|
1. #### <i class="fa fa-forward"></i> <i class="btnstatus2 fa fa-forward"></i> Auto mode {#anchor-automodebutton}
|
|
The actual meaning is to pause/continue automatically reading text from the current text input source.
|
|
|
|
For example, if the current mode is HOOK, it will pause reading game text; if the current mode is OCR, it will pause automatic image recognition; if the current mode is clipboard mode, it will pause automatic reading of the clipboard.
|
|
|
|
1. #### <i class="fa fa-gear"></i> <i class="fa fa-icon fa-rotate-right"></i> Open Settings {#anchor-setting}
|
|
N/A
|
|
1. #### <i class="fa fa-file"></i> <i class="fa fa-icon fa-rotate-right"></i> Read Clipboard {#anchor-copy_once}
|
|
The actual meaning is to read text once from the clipboard regardless of the current default text input source and pass it on to the subsequent translation/tts/... process
|
|
|
|
Right clicking the button will append the read text to the current text.
|
|
1. #### <i class="fa fa-futbol"></i> <i class="fa fa-icon fa-rotate-right"></i> Game Settings {#anchor-open_game_setting}
|
|
When using HOOK mode to connect to a game, or using OCR mode to bind a game window, you can directly open the current game's settings window through this button
|
|
1. #### <i class="fa fa-mouse-pointer"></i> <i class="btnstatus2 fa fa-mouse-pointer"></i> Mouse Click-through {#anchor-mousetransbutton}
|
|
After activating this button, the translation window will not respond to mouse clicks, but will pass the click event to the underlying window.
|
|
|
|
When placing the translation window above the game window's text box and activating this button, you can directly click the game's text box instead of the translation window.
|
|
|
|
When the mouse moves to the **area of the Mouse Through Window button and one button to the left and right**, it will automatically exit through to use the tool buttons; it will automatically restore through when moving out of the area.
|
|
|
|
1. #### <i class="fa fa-lightbulb"></i> <i class="btnstatus2 fa fa-lightbulb"></i> Background Window Transparency {#anchor-backtransbutton}
|
|
The function of this button is to switch the opacity of the translation window to 0 with one click. This switch will not cause the original opacity settings to be forgotten.
|
|
|
|
1. #### <i class="fa fa-lock"></i> <i class="btnstatus2 fa fa-unlock"></i> Lock Toolbar {#anchor-locktoolsbutton}
|
|
After activation, the toolbar will always be displayed.
|
|
|
|
When the toolbar is not locked, it will automatically hide when the mouse moves away, and it will reappear when the mouse enters the window. If the toolbar lock was canceled using the right mouse button, the toolbar will only reappear when the mouse enters the **area of the lock toolbar button and its adjacent buttons on either side**.
|
|
|
|
When the toolbar is not locked, if `Mouse Through Window` is activated, the toolbar will only be displayed when the mouse moves to the **area of the Mouse Through Window button and one button to the left and right**; otherwise, as long as the mouse enters the translation window, the toolbar will be displayed.
|
|
|
|
If the window effect (Aero/Arylic) is currently used and the toolbar is not locked, the toolbar will be in the area above the text area on the z-axis, not on the y-axis above the text area. This is because due to Windows, when using the window effect, if the toolbar is only hidden instead of reducing its window height, the hidden toolbar will still be rendered with the acrylic/Aero background, resulting in a blank area where the toolbar is located.
|
|
1. #### <i class="fa fa-link"></i> <i class="fa fa-icon fa-rotate-right"></i> Select Game {#anchor-selectgame}
|
|
**This button is only available in HOOK mode**
|
|
|
|
Clicking the button pops up the select game process window to select the game process to HOOK.
|
|
1. #### <i class="fa fa-tasks"></i> <i class="fa fa-icon fa-rotate-right"></i> Select Text {#anchor-selecttext}
|
|
**This button is only available in HOOK mode**
|
|
|
|
Clicking the button pops up the select game text window to select which text to translate that is HOOKed.
|
|
|
|
However, the select text window will automatically pop up after selecting the process, and this button is actually used to replace the selected text or modify some settings.
|
|
1. #### <i class="fa fa-crop"></i> <i class="fa fa-icon fa-rotate-right"></i> Select OCR Region {#anchor-selectocrrange}
|
|
**This button is only available in OCR mode**
|
|
|
|
In OCR mode, select the OCR area, or change the OCR area, or when activating `OCR Settings` -> `Other` -> `Multiple Area Mode`, add a new OCR area
|
|
|
|
When the right button is pressed, all selected ranges will be cleared before adding new areas.
|
|
1. #### <i class="fa fa-square"></i> <i class="fa fa-icon fa-rotate-right"></i> Show/Hide Region Border {#anchor-hideocrrange}
|
|
**This button is only available in OCR mode**
|
|
|
|
When no OCR range is selected, use this button to display the OCR range, which will automatically set the OCR range to the last selected OCR.
|
|
|
|
When the right button is pressed, all selected ranges will be cleared
|
|
1. #### <i class="fa fa-crop"></i> <i class="fa fa-icon fa-rotate-right"></i> Perform OCR {#anchor-ocr_once}
|
|
This button is similar to `Read Clipboard`, regardless of the current default text input source, it will first select the OCR range, then perform OCR once, and then proceed with the translation process.
|
|
|
|
This button is generally used in HOOK mode, when encountering choices, to temporarily use OCR for translation of choices. Or in OCR mode, to temporarily recognize a new position that occasionally appears.
|
|
|
|
1. #### <i class="fa fa-spinner"></i> <i class="fa fa-icon fa-rotate-right"></i> Perform OCR Again {#anchor-ocr_once_follow}
|
|
After using `Perform OCR Once`, use this button to perform OCR again at the original location without having to re-select the recognition area.
|
|
|
|
1. #### <i class="fa fa-book"></i> <i class="fa fa-icon fa-rotate-right"></i> Pre-translation substitution {#anchor-noundict_direct}
|
|
1. #### <i class="fa fa-book"></i> <i class="fa fa-icon fa-rotate-right"></i> Proper Noun Translation {#anchor-noundict}
|
|
1. #### <i class="fa fa-won"></i> <i class="fa fa-icon fa-rotate-right"></i> Translation Result Correction {#anchor-fix}
|
|
The above three buttons have similar effects and are used to quickly open the translation optimization settings window to add new specified terms.
|
|
|
|
When left-clicking the mouse, if there is a bound game (HOOK linked game/clipboard, OCR bound window), it opens the dedicated dictionary settings for the game. Otherwise, it opens the global dictionary settings.
|
|
|
|
When right-clicking the mouse, it always opens the global dictionary settings.
|
|
1. #### <i class="fa fa-minus"></i> <i class="fa fa-icon fa-rotate-right"></i> Minimize to Tray {#anchor-minmize}
|
|
N/A
|
|
1. #### <i class="fa fa-times"></i> <i class="fa fa-icon fa-rotate-right"></i> Exit {#anchor-quit}
|
|
N/A
|
|
1. #### <i class="fa fa-hand-paper"></i> <i class="fa fa-icon fa-rotate-right"></i> Move {#anchor-move}
|
|
Drag the translation window.
|
|
|
|
In fact, when there is no button on the button bar, there is additional blank area, you can drag it at will. This button is just for reserving a drag position.
|
|
1. #### <i class="fa fa-compress"></i> <i class="fa fa-expand"></i> Window Zoom {#anchor-fullscreen}
|
|
You can scale the game window with one click using the built-in Magpie.
|
|
|
|
Left-click for windowed scaling, and right-click for full-screen scaling.
|
|
|
|
1. #### <i class="fa fa-camera"></i> <i class="fa fa-icon fa-rotate-right"></i> Window Screenshot {#anchor-grabwindow}
|
|
After binding the game window, you can take screenshots of the bound window (by default, two screenshots will be taken: GDI and Winrt, both of which may fail). If Magpie scaling is currently in use, it will also capture the magnified window.
|
|
|
|
When left clicked, the screenshot will be saved to a file, and when right clicked, the screenshot will be saved to the clipboard. The middle key opens the in-game overlay.
|
|
|
|
1. #### <i class="fa fa-volume-off"></i> <i class="btnstatus2 fa fa-volume-up"></i> Mute Game {#anchor-muteprocess}
|
|
After binding the game window, you can mute the game with one click, saving the trouble of muting the game in the system volume mixer.
|
|
1. #### <i class="fa fa-eye"></i> <i class="btnstatus2 fa fa-eye-slash"></i> Show/Hide Original Text {#anchor-showraw}
|
|
Toggle whether to display the original text, which will take effect immediately.
|
|
|
|
1. #### <i class="fa fa-toggle-on"></i> <i class="btnstatus2 fa fa-toggle-off"></i> Show/Hide Translation {#anchor-showtrans}
|
|
Toggle whether to use translation, which is the master switch for translation. If turned off, no translation will be performed.
|
|
|
|
If a translation has already been performed, turning it off will hide the translation result, and it will re-display the current translation result when turned back on.
|
|
|
|
If no translation has been performed and it is switched from hidden to display, it will trigger the translation of the current sentence.
|
|
|
|
1. #### <i class="fa fa-music"></i> <i class="fa fa-icon fa-rotate-right"></i> Read Aloud {#anchor-langdu}
|
|
Left-clicking the button will perform text-to-speech on the current text.
|
|
|
|
Right-clicking the button will interrupt the reading.
|
|
|
|
This reading will ignore `Skip` (if in `Voice Settings`, the current text target is matched as `Skip`, then using the button for reading will ignore the skip and force the reading).
|
|
1. #### <i class="fa fa-copy"></i> <i class="fa fa-icon fa-rotate-right"></i> Copy to Clipboard {#anchor-copy}
|
|
Copy the currently extracted text to the clipboard once. If you want to automatically extract to the clipboard, enable `Core Settings` → `Clipboard` → `Output` → `Auto Output Text` and underneath it `Content` → `Original Text`.
|
|
1. #### <i class="fa fa-rotate-left"></i> <i class="fa fa-icon fa-rotate-right"></i> Show/Hide History Text {#anchor-history}
|
|
Open or close the history text window.
|
|
1. #### <i class="fa fa-gamepad"></i> <i class="fa fa-icon fa-rotate-right"></i> Game Management {#anchor-gamepad_new}
|
|
Open the game manager interface.
|
|
1. #### <i class="fa fa-edit"></i> <i class="fa fa-icon fa-rotate-right"></i> Edit {#anchor-edit}
|
|
Open the edit window to edit the currently extracted text.
|
|
|
|
In this window, you can modify the text and then perform translation; or you can translate any text you enter yourself.
|
|
1. #### <i class="fa fa-edit"></i> <i class="fa fa-icon fa-rotate-right"></i> Edit Translation Record {#anchor-edittrans}
|
|
Open the translation history edit window for the current game.
|
|
1. #### <i class="fa fa-download"></i> <i class="fa fa-icon fa-rotate-right"></i> Simulate Ctrl Key {#anchor-simulate_key_ctrl}
|
|
1. #### <i class="fa fa-download"></i> <i class="fa fa-icon fa-rotate-right"></i> Simulate Enter Key {#anchor-simulate_key_enter}
|
|
As above, it is used to send a simulated key press to the game window. It has some effect when using streaming/tablet.
|
|
1. #### <i class="fa fa-list-ul"></i> <i class="fa fa-icon fa-rotate-right"></i> Memo {#anchor-memory}
|
|
Open the memo window for the game you are currently playing.
|
|
|
|
When you click the left button, the memo for the current game is opened. When you click the right button, the global memo is opened.
|
|
1. #### <i class="fab fa-windows"></i> <i class="btnstatus2 fab fa-windows"></i> Bind to Window (Click to Cancel) {#anchor-bindwindow}
|
|
**This button is very important, many features depend on this button to be set first before they can be used**
|
|
|
|
After binding the game window, `Window Scaling` `Window Screenshot` `Game Mute`, `Follow Game Window` -> `Unpin when Game Loses Focus` and `Synchronize with Game Window Movement`, as well as recording game time, etc., are available.
|
|
This button is available regardless of HOOK/OCR/Clipboard mode.
|
|
|
|
In HOOK mode, it will automatically bind the game window according to the connected game, but you can also use this button to re-select other windows.
|
|
|
|
In OCR mode, after binding the window, it also allows the OCR area and range box to move automatically in sync with the movement of the game window.
|
|
In OCR/Clipboard model, after binding the window, you can also link to the current game's game settings like in HOOK mode, to use the current game's dedicated translation optimization dictionary, etc.
|
|
|
|
1. #### <i class="fa fa-neuter"></i> <i class="btnstatus2 fa fa-neuter"></i> Window Always On Top {#anchor-keepontop}
|
|
Cancel/Always on Top translation window
|
|
|
|
1. #### <i class="fa fa-i-cursor"></i> <i class="btnstatus2 fa fa-i-cursor"></i> Selectable {#anchor-selectable}
|
|
Make the text in the translation window's text area selectable.
|
|
|
|
If the right mouse button is clicked during activation, dragging non-text areas to move the window will be prohibited.
|
|
|
|
1. #### <i class="fa fa-search"></i> <i class="fa fa-icon fa-rotate-right"></i> Look Up Word {#anchor-searchwordW}
|
|
If there is currently text selected, the selected text will be queried and a word search window will be opened. Otherwise, it will only open or close the keyword search window.
|
|
|
|
1. #### <i class="fa fa-refresh"></i> Reset translation state {#anchor-reset_TS_status}
|
|
Resets the translation status, primarily addressing the growing demand for large model translations, and clears saved context and other information. |