ctrlMapAnimAdd: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|arg= local | |arg= local | ||
|eff= local | |eff= local | ||
|gr1= GUI Control - Map | |gr1= GUI Control - Map | ||
| Adds the next frame to the map animation. | | Adds the next frame to the map animation. | ||
| map '''ctrlMapAnimAdd''' [time, zoom, position] | | map '''ctrlMapAnimAdd''' [time, zoom, position] | ||
|p1= map: [[Control]] | |p1= map: [[Control]] | ||
|p2= [time, zoom, position]: [[Array]] | |p2= [time, zoom, position]: [[Array]] | ||
|p3= time: [[Number]] | |p3= time: [[Number]] | ||
|p4= zoom: [[Number]] | |p4= zoom: [[Number]] | ||
|p5= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] | |p5= position: [[Array]] or [[Object]] - formats: [[Position2D]], [[Position3D]], [[Object]] | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_map [[ctrlMapAnimAdd]] [1, 0.1, [[getMarkerPos]] "anim1"]; | |x1= <code>_map [[ctrlMapAnimAdd]] [1, 0.1, [[getMarkerPos]] "anim1"]; | ||
[[ctrlMapAnimCommit]] _map;</code> | [[ctrlMapAnimCommit]] _map;</code> | ||
|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> | ||
| [[mapAnimAdd]], [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] | | [[mapAnimAdd]], [[mapAnimClear]], [[mapAnimCommit]], [[mapAnimDone]], [[ctrlMapAnimClear]], [[ctrlMapAnimCommit]], [[ctrlMapAnimDone]] | ||
}} | }} |
Revision as of 00:28, 18 January 2021
Description
- Description:
- Adds the next frame to the map animation.
- Groups:
- GUI Control - Map
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 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.