⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-84160d4
|
Resize a Node object to the final size by modifying it's 'size' attribute. More...
#include <ActionInterval.h>
Inherits ActionInterval.
Public Member Functions | |
| bool | initWithDuration (float duration, const Vec2 &final_size) |
| initializes the action | |
| Public Member Functions inherited from ActionInterval | |
| float | getElapsed () |
| How many seconds had elapsed since the actions started to run. | |
| void | setAmplitudeRate (float amp) |
| Sets the amplitude rate, extension in GridAction. | |
| float | getAmplitudeRate () |
| Gets the amplitude rate, extension in GridAction. | |
| void | step (float dt) override |
| bool | initWithDuration (float d) |
| initializes the action | |
Static Public Member Functions | |
| static ResizeTo * | create (float duration, const Vec2 &final_size) |
| Creates the action. | |
Resize a Node object to the final size by modifying it's 'size' attribute.
Creates the action.
Resize a Node object to the final size by modifying it's 'size' attribute. Works on all nodes where setContentSize is effective. But it's mostly useful for nodes where 9-slice is enabled
| duration | Duration time, in seconds. |
| final_size | The target size to reach |
| bool initWithDuration | ( | float | duration, |
| const Vec2 & | final_size ) |
initializes the action
| duration | in seconds |
| final_size | in Vec2 type |