fix: adapt float ball position across rotations

This commit is contained in:
7015725
2026-05-07 22:42:06 +08:00
parent ed9521cdf5
commit e0b774ccd9
3 changed files with 80 additions and 8 deletions

View File

@@ -64,8 +64,14 @@ var ConfigValidator = {
schemas: {
// 悬浮球核心配置
BALL_SIZE_DP: { type: "int", min: 20, max: 200, default: 45 },
BALL_INIT_X: { type: "int", min: 0, max: 2000, default: 0 },
BALL_INIT_Y_DP: { type: "int", min: 0, max: 1000, default: 220 },
BALL_INIT_X: { type: "int", min: 0, max: 10000, default: 0 },
BALL_INIT_Y_DP: { type: "int", min: 0, max: 2000, default: 220 },
BALL_POS_SCREEN_W: { type: "int", min: 0, max: 10000, default: 0 },
BALL_POS_SCREEN_H: { type: "int", min: 0, max: 10000, default: 0 },
BALL_POS_X_RATIO: { type: "float", min: 0, max: 1, default: 0 },
BALL_POS_Y_RATIO: { type: "float", min: 0, max: 1, default: 0 },
BALL_POS_DOCKED: { type: "bool", default: false },
BALL_POS_DOCK_SIDE: { type: "enum", values: ["", "left", "right"], default: "" },
// 面板布局配置
PANEL_COLS: { type: "int", min: 1, max: 6, default: 1 },