jedbez Posted December 9, 2013 Share Posted December 9, 2013 Никто не в курсе почему PlayMoveEffect смещается из начальной точки в конечную рывком, а не плавной анимацией? Хоть и стоит EA_MONOTONOUS_INCREASE Link to comment Share on other sites More sharing options...
Slashuur Posted December 10, 2013 Share Posted December 10, 2013 Может время равно 0? Или в fromPlacement и toPlacement разное выравнивание? Link to comment Share on other sites More sharing options...
jedbez Posted December 10, 2013 Author Share Posted December 10, 2013 local indSmesh==0 function PlMoove() local St = wtPanel:GetPlacementPlain() local Ed = St if indSmesh==0 then indSmesh=1 Ed.posY = St.posY - 50 else indSmesh=0 Ed.posY = St.posY + 50 end wtPanel:PlayMoveEffect( St, Ed, 500, EA_MONOTONOUS_INCREASE ) end Link to comment Share on other sites More sharing options...
Slashuur Posted December 10, 2013 Share Posted December 10, 2013 вместо local Ed = St напиши local Ed = wtPanel:GetPlacementPlain() А так, как написано у тебя, St и Ed - одна таблица, меняя Ed, ты меняешь St Link to comment Share on other sites More sharing options...
jedbez Posted December 10, 2013 Author Share Posted December 10, 2013 Ооооо действительно, опять на теже грабли наступил. Все работает, спс. Link to comment Share on other sites More sharing options...
Recommended Posts