mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
feat:fadeout support up direction slide fadeout
This commit is contained in:
parent
5493434ab4
commit
48618beb19
1 changed files with 4 additions and 3 deletions
7
maomao.c
7
maomao.c
|
|
@ -5680,9 +5680,10 @@ void init_fadeout_client(Client *c) {
|
||||||
c->animation.initial = c->animation.current;
|
c->animation.initial = c->animation.current;
|
||||||
fadeout_cient->mon = c->mon;
|
fadeout_cient->mon = c->mon;
|
||||||
// 这里snap节点的坐标设置是使用的相对坐标,所以不能加上原来坐标
|
// 这里snap节点的坐标设置是使用的相对坐标,所以不能加上原来坐标
|
||||||
// 这根普通node有区别
|
// 这跟普通node有区别
|
||||||
fadeout_cient->current.y =
|
fadeout_cient->current.y = c->geom.y+c->geom.height/2 > c->mon->m.y+c->mon->m.height/2
|
||||||
c->mon->m.height - (c->animation.current.y - c->mon->m.y);
|
? c->mon->m.height - (c->animation.current.y - c->mon->m.y) //down out
|
||||||
|
: c->mon->m.y - c->geom.height; //up out
|
||||||
fadeout_cient->current.x = 0; // x无偏差,垂直划出
|
fadeout_cient->current.x = 0; // x无偏差,垂直划出
|
||||||
fadeout_cient->animation.passed_frames = 0;
|
fadeout_cient->animation.passed_frames = 0;
|
||||||
fadeout_cient->animation.total_frames =
|
fadeout_cient->animation.total_frames =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue