Merge branch '1204244136:main' into main

This commit is contained in:
ねこちゃん 2025-06-11 21:56:16 +08:00 committed by GitHub
commit 35f62bd74a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 26 deletions

View File

@ -9,24 +9,6 @@ try TraySetIcon "doro.ico"
currentVersion := "v1.0.0-beta.16"
usr := "1204244136"
repo := "DoroHelper"
stdScreenW := 3840
stdScreenH := 2160
BattleActive := 1
nikkeID := ""
NikkeX := 0
NikkeY := 0
NikkeW := 0
NikkeH := 0
NikkeXP := 0
NikkeYP := 0
NikkeWP := 0
NikkeHP := 0
scrRatio := 1
currentScale := 1
WinRatio := 1
TrueRatio := 1
OriginalW := 0
OriginalH := 0
;endregion 设置常量
;region 设置变量
;tag 简单开关
@ -426,6 +408,22 @@ Initialization() {
MsgBox "请以管理员身份运行Doro"
ExitApp
}
global stdScreenW := 3840
global stdScreenH := 2160
global BattleActive := 1
global nikkeID := ""
global NikkeX := 0
global NikkeY := 0
global NikkeW := 0
global NikkeH := 0
global NikkeXP := 0
global NikkeYP := 0
global NikkeWP := 0
global NikkeHP := 0
global scrRatio := 1
global currentScale := 1
global WinRatio := 1
global TrueRatio := 1
LogBox.Value := ""
WriteSettings()
;设置窗口标题匹配模式为完全匹配
@ -459,8 +457,8 @@ Initialization() {
AddLog("`n当前的doro版本是" currentVersion "`n屏幕宽度是" A_ScreenWidth "`n屏幕高度是" A_ScreenHeight "`nnikke宽度是" NikkeW "`nnikke高度是" NikkeH "`n游戏画面比例是" GameRatio "`ndpi缩放比例是" currentScale "`n额定缩放比例是" WinRatio "`n图片缩放系数是" TrueRatio "`n识图宽容度是" PicTolerance)
AddLog("如有问题请加入反馈qq群584275905反馈请附带日志或录屏")
if g_settings["AdjustSize"] {
OriginalW := NikkeW
OriginalH := NikkeH
global OriginalW := NikkeW
global OriginalH := NikkeH
; 尝试归类为2160p (4K) 及其变种
if (A_ScreenWidth >= 3840 and A_ScreenHeight >= 2160) {
if (A_ScreenWidth = 3840 and A_ScreenHeight = 2160) {
@ -992,7 +990,7 @@ ClickOnHelp(*) {
msgbox "
(
1. **16:9** **** 1080p
- 2k和4kctrl+3nikke应该是居中1
- 2k和4kctrl+3nikke应该位于画面左上角1
<!-- 2. ~~使**** **16:9**使~~
- -->
2. 使****
@ -1158,9 +1156,7 @@ AdjustSize(TargetX, TargetY) {
NewWindowWidth := NewClientWidth + NonClientWidth
NewWindowHeight := NewClientHeight + NonClientHeight
; 使用 WinMove 移动和调整窗口大小
WinMove NewWindowX, NewWindowY, NewWindowWidth, NewWindowHeight, nikkeID
Sleep 500
WinMove NewWindowX, NewWindowY, NewWindowWidth, NewWindowHeight, nikkeID
WinMove 0, 0, NewWindowWidth, NewWindowHeight, nikkeID
}
;endregion 坐标辅助函数
;region 日志辅助函数
@ -3227,8 +3223,10 @@ TestMode(BtnTestMode, Info) {
}
;tag 暂停程序
^2:: {
if g_settings["AdjustSize"] {
AdjustSize(OriginalW, OriginalH)
try {
if g_settings["AdjustSize"] {
AdjustSize(OriginalW, OriginalH)
}
}
Pause
}