词典交互和代码逻辑优化

框架跟进
This commit is contained in:
MrZ_26
2023-08-03 13:46:27 +08:00
parent 0ae9cbcdaa
commit 20b74ea78a
5 changed files with 129 additions and 294 deletions

View File

@@ -385,50 +385,34 @@ return {
[[
INSTRUCTIONS FOR NAVIGATION IN TETRODICTIONARY
A. Mouse and Touchscreen
- Press/touch [$13] to open Help.
- Hold and drag up/down or scroll the mouse to navigate through the text.
- Press/touch a term in the list on the left to select the entry you want to look up.
- Press/touch [$16] or [$17] to quickly scroll through the list. You can also click the middle mouse button or right mouse button and then scroll the mouse to switch between entries.
- Press/touch [aA] to display the font control buttons.
- Press/touch [a] to decrease the font size and [A] to increase the font size.
- To reset the font size to the default size, wait for a few seconds until the [100%] button appears, then press [100%].
- Press/touch [$14] to copy the content of the current entry.
- Press/touch [$15] to open the link of the current entry (if available).
- Click the back button in the top right corner to exit TetroDictionary.
A. Mouse / Touchscreen
- Press/touch a term in the list on the left to select the entry
- Press/touch [$14] to copy the content of the current entry
- Press/touch [$15] to open the link of the current entry (if available)
B. Keyboard
Press...
- [F1] to display Help.
- [$1] or [$2] to scroll through the text.
- [$3] to open the previous entry and [$4] to open the next entry.
- [F1] to display Help
- [$1] or [$2] to scroll through the text
- [$3] to open the previous entry and [$4] to open the next entry, speed up with [Ctrl]
- [Ctrl] + [-] to decrease the font size, [Ctrl] + [+] to increase the font size.
- [Ctrl] + [0] to restore the default font size.
- [-] to decrease the font size, [+] to increase the font size
- [0] to restore the default font size
- [Ctrl] + [C] to copy text.
- [$18] (Context Menu key/Application key)
- to open the link of the current entry (if available).
- [Esc] to exit TetroDictionary.
- [Ctrl + C] to copy text
- [$16] (Context Menu key/Application key) to open the link of the current entry (if available)
C. Gamepad
- Press $10 to display Help.
- Press $5 or $6 to scroll through the text.
- Press $7 to open the previous entry and $8 to open the next entry.
- Hold $11 and press $7 or $8 to scroll quickly through the list.
- Hold $11 and press $6 to decrease the font size or $5 to increase the font size.
- Press [BACK] to exit TetroDictionary.
- Press $10 to display Help
- Press $5 or $6 to scroll through the text, speed up with $11
- Press $7 to open the previous entry and $8 to open the next entry. Speed up with $11
- Hold $11 and press $6 to decrease the font size or $5 to increase
]]
-- 1-4: Up, Down, Left, Right
-- 5-8: Up, Down, Left, Right but D-Pad
-- 9-12: X, Y, A, B
-- 13-18: Help, Copy, Open, Forward, Backward, MENU
-- 13-16: Help, Copy, Open, MENU
},
WidgetText={
main={

View File

@@ -394,45 +394,28 @@ return {
HƯỚNG DẪN ĐIỀU HƯỚNG TRONG TETRODICTIONARY
A. Chuột và màn hình cảm ứng
- Nhấn/chạm [$13] để mở Trợ giúp.
- Giữ và kéo lên/xuống hoặc lăn chuột để cuộn văn bản.
- Nhấn/chạm vào một mục trong danh sách ở bên trái để chọn mục cần tra.
- Nhấn/chạm [$16] hoặc [$17] để nhanh chóng cuộn qua danh sách. Bạn cũng có thể nhấn giữ chuột giữa hoặc chuột phải sau đó lăn chuột để chuyển qua các mục.
- Nhấn/chạm [aA] để hiện 2 nút điều khiển cỡ chữ.
- Nhấn/chạm [a] để giảm cỡ chữ và [A] để tăng cỡ chữ.
- Để đặt cỡ chữ về cỡ mặc định, chờ một vài giây để nút [100%] xuất hiện, sau đó nhấn [100%].
- Nhấn/chạm [$14] để sao chép nội dung của mục đang xem.
- Nhấn/chạm [$15] để mở link của mục đang xem (nếu có).
- Nhấp vào nút quay lại ở góc trên bên phải để thoát TetroDictionary
- Giữ và kéo lên/xuống hoặc lăn chuột để cuộn văn bản
- Nhấn/chạm [$14] để sao chép nội dung của mục đang xem
- Nhấn/chạm [$15] để mở link của mục đang xem (nếu có)
B. Bàn phím
Nhấn…
- [F1] để hiển thị Trợ giúp.
- [$1] hoặc [$2] để cuộn qua văn bản.
- [$3] để mở mục trước đó và [$4] để mở mục tiếp theo.
- [F1] để hiển thị Trợ giúp
- [$1] hoặc [$2] để cuộn qua văn bản
- [$3] để mở mục trước đó và [$4] để mở mục tiếp theo
- [Ctrl] + [-] để giảm cỡ chữ, [Ctrl] + [+] để tăng cỡ chữ.
- [Ctrl] + [0] để khôi phục về cỡ chữ mặc định
- [Ctrl] + [C] để sao chép văn bản
- [$18] (phím Menu ngữ cảnh/phím Ứng dụng)
để mở liên kết của mục đang xem (nếu có)
- [Esc] để thoát TetroDictionary
- [-] để giảm cỡ chữ, [+] để tăng cỡ chữ
- [0] để khôi phục về cỡ chữ mặc định
- [Ctrl + C] để sao chép văn bản
- [$16] (phím Menu ngữ cảnh/phím Ứng dụng)
C. Tay cầm chơi game (Gamepad)
Nhấn $10 để hiển thị trợ giúp.
Nhấn $5 hoặc $6 để cuộn văn bản.
Nhấn $7 để mở mục trước và $8 để mở mục tiếp theo.
Giữ $11 và nhấn $7 hoặc $8 để cuộn nhanh qua danh sách.
Giữ $11 và nhấn $6 để giảm cỡ chữ hoặc $5 để tăng cỡ chữ.
Nhấn [BACK] để thoát TetroDictionary.
Nhấn $10 để hiển thị trợ giúp
Nhấn $5 hoặc $6 để cuộn văn bản, speed up with $11
Nhấn $7 để mở mục trước và $8 để mở mục tiếp theo
Giữ $11 và nhấn $7 hoặc $8 để cuộn nhanh qua danh sách
]]
-- 1-4: Up, Down, Left, Right
-- 5-8: Up, Down, Left, Right but D-Pad

View File

@@ -386,35 +386,29 @@ return {
[[
小Z词典操作说明
鼠标触摸屏:
点击 [$13] 显示帮助。
拖动或使用鼠标滚轮以滚动文本
点击左侧列表中的项目以选择词条,点击 [$16] 或 [$17] 快速滚动列表。
点击 [aA] 显示字号控制,然后点击 [a] 缩小字号,[A] 增大字号。要重置字号为默认大小,稍等片刻直到 [100%] 按钮显示,然后点击 [100%]。
点击 [$14] 复制词条文本。
点击 [$15] 打开词条中的链接(如有)。
点击右上角的返回按钮退出小Z词典。
鼠标/触摸屏:
点击左侧列表中的项目以选择词条
点击 [$14] 复制词条文本
点击 [$15] 打开词条中的链接(如有)
键盘:
按 [F1] 显示帮助
按 [$1] 或 [$2] 滚动文本
按 [$3] 打开上一词条,按 [$4] 打开下一词条。使用 [Ctrl + $3] 或 [Ctrl + $4] 快速滚动列表。
按 [Ctrl + 减号键] 缩小字号,[Ctrl + 等号键] 增大字号,[Ctrl + 0] 恢复默认字号
按 [Ctrl + C] 复制词条文本
按 [$18] (上下文菜单键应用程序键)打开词条中的链接(如有)
按 [Esc] 退出小Z词典。
按 [F1] 显示帮助
按 [$1] 或 [$2] 滚动文本
按 [$3] 打开上一词条,按 [$4] 打开下一词条。按住 [Ctrl] 加速
按 [-] 缩小字号,[+] 增大字号,[0] 恢复默认字号
按 [Ctrl + C] 复制词条文本
按 [$16] (上下文菜单键/应用程序键)打开词条中的链接(如有)
游戏手柄:
按 $10 显示帮助
按 $5 或 $6 滚动文本
按 $7 打开上一词条,按 $8 打开下一词条。按住 $11 并按 $7 或 $8 快速滚动列表。
按住 $11 并按 $6 缩小字号,或 $5 增大字号
按 [BACK] 退出小Z词典。
手柄:
按 $10 to 显示帮助
按 $5 或 $6 滚动文本, 按 $11 加速
按 $7 打开上一词条,按 $8 打开下一词条。按住 $11 加速
按住 $11 并按 $6 缩小字号,或 $5 增大字号
]]
-- 1-4: Up, Down, Left, Right
-- 5-8: Up, Down, Left, Right but D-Pad
-- 9-12: X, Y, A, B
-- 13-18: Help, Copy, Open, Forward, Backward, MENU
-- 13-16: Help, Copy, Open, MENU
},
WidgetText={
main={