ctrlMapAnimAdd: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 104313 by demellion on 2017-08-27T00:55:41Z) |
m (template:command argument fix) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Adds the next frame to the map animation. |= | | Adds the next frame to the map animation. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| map '''ctrlMapAnimAdd''' [time, zoom, position] |= | | map '''ctrlMapAnimAdd''' [time, zoom, position] |SYNTAX= | ||
|p1= map: [[Control]] |= | |p1= map: [[Control]] |PARAMETER1= | ||
|p2= [time, zoom, position]: [[Array]] |= | |p2= [time, zoom, position]: [[Array]] |PARAMETER2= | ||
|p3= time: [[Number]] |= | |p3= time: [[Number]] |PARAMETER3= | ||
|p4= zoom: [[Number]] |= | |p4= zoom: [[Number]] |PARAMETER4= | ||
|p5= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] |= | |p5= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER5= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_map [[ctrlMapAnimAdd]] [1, 0.1, [[getMarkerPos]] "anim1"]; | |x1= <code>_map [[ctrlMapAnimAdd]] [1, 0.1, [[getMarkerPos]] "anim1"]; | ||
[[ctrlMapAnimCommit]] _map;</code> |= | [[ctrlMapAnimCommit]] _map;</code> |EXAMPLE1= | ||
|x2= Center map on player: <code>_ctrl [[ctrlMapAnimAdd]] [0, 0.05, [[player]]]; | |x2= Center map on player: <code>_ctrl [[ctrlMapAnimAdd]] [0, 0.05, [[player]]]; | ||
[[ctrlMapAnimCommit]] _ctrl;</code> |= | [[ctrlMapAnimCommit]] _ctrl;</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[mapAnimAdd]], [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] |= | | [[mapAnimAdd]], [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] |SEEALSO= | ||
}} | }} |
Revision as of 14:36, 7 April 2019
Description
- Description:
- Adds the next frame to the map animation.
- Groups:
- Uncategorised
Syntax
- Syntax:
- map ctrlMapAnimAdd [time, zoom, position]
- Parameters:
- map: Control
- [time, zoom, position]: Array
- time: Number
- zoom: Number
- position: Array or Object - formats: Position2D, Position3D, Object
- Return Value:
- Nothing
Examples
- Example 1:
_map ctrlMapAnimAdd [1, 0.1, getMarkerPos "anim1"]; ctrlMapAnimCommit _map;
- Example 2:
- Center map on player:
_ctrl ctrlMapAnimAdd [0, 0.05, player]; ctrlMapAnimCommit _ctrl;
Additional Information
- See also:
- mapAnimAddmapAnimClearmapAnimCommitmapAnimDonectrlMapAnimClearctrlMapAnimCommitctrlMapAnimDone
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
- Posted on 17:11, 9 March 2010
- besselinksjm
- Besides Position2D, both Objects and Position3D work.
- Posted on 03:48, 27 August 2017
- Demellion
- Map control created with ctrlCreate have a weird behaviour. Control doesn't respect the aspects of Controls Group or Display itself. Results of ctrlMapAnimAdd applied to this control are also shifted for some reason.