@@ -76,47 +76,47 @@ export class MouseTipFeedbackEffect extends EffectObject {
76
76
} else if ( this . type === "moveLeft" ) {
77
77
// 鼠标向左移动,右边应该出现幻影
78
78
CurveRenderer . renderGradientLine (
79
- MouseLocation . vector ( ) ,
79
+ MouseLocation . vector ( ) . clone ( ) ,
80
80
MouseLocation . vector ( ) . add ( new Vector ( 100 * ( 1 - this . timeProgress . rate ) , 0 ) ) ,
81
81
StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
82
82
StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
83
83
10 * ( 1 - this . timeProgress . rate ) ,
84
84
) ;
85
85
} else if ( this . type === "moveRight" ) {
86
86
CurveRenderer . renderGradientLine (
87
- MouseLocation . vector ( ) ,
87
+ MouseLocation . vector ( ) . clone ( ) ,
88
88
MouseLocation . vector ( ) . add ( new Vector ( - 100 * ( 1 - this . timeProgress . rate ) , 0 ) ) ,
89
89
StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
90
90
StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
91
91
10 * ( 1 - this . timeProgress . rate ) ,
92
92
) ;
93
93
} else if ( this . type === "moveUp" ) {
94
94
CurveRenderer . renderGradientLine (
95
- MouseLocation . vector ( ) ,
95
+ MouseLocation . vector ( ) . clone ( ) ,
96
96
MouseLocation . vector ( ) . add ( new Vector ( 0 , 100 * ( 1 - this . timeProgress . rate ) ) ) ,
97
97
StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
98
98
StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
99
99
10 * ( 1 - this . timeProgress . rate ) ,
100
100
) ;
101
101
} else if ( this . type === "moveDown" ) {
102
102
CurveRenderer . renderGradientLine (
103
- MouseLocation . vector ( ) ,
103
+ MouseLocation . vector ( ) . clone ( ) ,
104
104
MouseLocation . vector ( ) . add ( new Vector ( 0 , - 100 * ( 1 - this . timeProgress . rate ) ) ) ,
105
105
StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
106
106
StageStyleManager . currentStyle . effects . successShadow . toTransparent ( ) ,
107
107
10 * ( 1 - this . timeProgress . rate ) ,
108
108
) ;
109
109
} else if ( this . type === "move" ) {
110
110
CurveRenderer . renderGradientLine (
111
- MouseLocation . vector ( ) ,
111
+ MouseLocation . vector ( ) . clone ( ) ,
112
112
MouseLocation . vector ( ) . add ( this . direction . multiply ( - 5 * ( 1 - this . timeProgress . rate ) ) ) ,
113
113
StageStyleManager . currentStyle . StageObjectBorder . toNewAlpha ( 1 - this . timeProgress . rate ) ,
114
114
StageStyleManager . currentStyle . StageObjectBorder . toTransparent ( ) ,
115
115
2 * ( 1 - this . timeProgress . rate ) ,
116
116
) ;
117
117
} else if ( this . type === "drag" ) {
118
118
ShapeRenderer . renderCircle (
119
- MouseLocation . vector ( ) ,
119
+ MouseLocation . vector ( ) . clone ( ) ,
120
120
6 * ( 1 - this . timeProgress . rate ) ,
121
121
Color . Transparent ,
122
122
StageStyleManager . currentStyle . StageObjectBorder . toNewAlpha ( 1 - this . timeProgress . rate ) ,
@@ -125,7 +125,7 @@ export class MouseTipFeedbackEffect extends EffectObject {
125
125
} else if ( this . type === "cameraMoveToMouse" ) {
126
126
CurveRenderer . renderDashedLine (
127
127
Renderer . transformWorld2View ( Camera . location ) ,
128
- MouseLocation . vector ( ) ,
128
+ MouseLocation . vector ( ) . clone ( ) ,
129
129
StageStyleManager . currentStyle . effects . successShadow . toNewAlpha ( 1 - this . timeProgress . rate ) ,
130
130
1 ,
131
131
8 ,
0 commit comments