feat: 增加滑动 interval,增加 SlowlySwipe postDelay,调整部分滑动参数

This commit is contained in:
zzyyyl
2022-11-14 17:17:27 +08:00
parent eca64fda08
commit 4b943f0f7a
2 changed files with 19 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
"SlowlySwipeToTheLeft": {
"algorithm": "JustReturn",
"action": "Swipe",
"postDelay": 200,
"specificRect": [
300,
310,
@@ -18,7 +19,8 @@
"rectMove_Doc": "滑动终点",
"specialParams": [
200,
1
1,
-1
],
"specialParams_Doc": [
"滑动 duration",
@@ -32,6 +34,7 @@
"SlowlySwipeToTheRight": {
"algorithm": "JustReturn",
"action": "Swipe",
"postDelay": 200,
"specificRect": [
880,
310,
@@ -46,7 +49,8 @@
],
"specialParams": [
200,
1
1,
-1
],
"next": [
"#next"
@@ -69,6 +73,11 @@
100,
100
],
"specialParams": [
150,
0,
0.5
],
"next": [
"#next"
],
@@ -90,6 +99,11 @@
200,
100
],
"specialParams": [
150,
0,
0.5
],
"next": [
"#next"
],
@@ -6132,13 +6146,13 @@
"algorithm": "JustReturn",
"preDelay": 200,
"postDelay": 100,
"Doc": "pre 是从点击干员,到干员信息弹出来等待的时间;rear 是干员上场,到设置朝向之间等待的时间"
"Doc": "pre 是从点击干员,到干员信息弹出来等待的时间;post 是干员上场,到设置朝向之间等待的时间"
},
"BattleSwipeOper": {
"algorithm": "JustReturn",
"preDelay": 200,
"postDelay": 50,
"Doc": "pre 是将干员滑动到场上的 duration 系数;rear 是设置干员朝向滑动的 duration",
"Doc": "pre 是将干员滑动到场上的 duration 系数;post 是设置干员朝向滑动的 duration",
"specialParams": [
200
],

View File

@@ -1115,7 +1115,7 @@ bool asst::Controller::swipe_without_scale(const Point& p1, const Point& p2, int
const auto& opt = Configer.get_options();
if (m_minitouch_enabled && m_minitouch_avaiable) {
constexpr int MoveInterval = 1;
constexpr int MoveInterval = 5;
input_to_minitouch(MinitouchCmd::down(static_cast<int>(x1 * m_minitouch_props.x_scaling),
static_cast<int>(m_minitouch_props.y_scaling * y1), true, MoveInterval));
if (duration == 0) {