createMissionDisplay: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
Line 28: Line 28:
|r1= [[Display]]
|r1= [[Display]]


|s2= display [[createMissionDisplay]] [missionRootDirectoryString, cfgMissionsClass]
|s2= display [[createMissionDisplay]] [missionRootDirectoryString, cfgMissionsClass]


|p21= display: [[Display]]
|p21= display: [[Display]]
Line 40: Line 40:
|x1= <sqf>_ChildDisplay = _Rootdisplay createMissionDisplay "Tutorial";</sqf>
|x1= <sqf>_ChildDisplay = _Rootdisplay createMissionDisplay "Tutorial";</sqf>


|x2= In {{arma3}} this creates the scenarios UI
|x2= In {{arma3}} this creates the scenarios UI:
<sqf>findDisplay 46 createMissionDisplay "";</sqf>
<sqf>findDisplay 46 createMissionDisplay "";</sqf>


|x3= Other options for {{arma3}}:
|x3= Other options for {{arma3}}:
<sqf>
<sqf>
(findDisplay 46) createMissionDisplay ["","Cutscenes"];
private _missionDisplay = findDisplay 46;
(findDisplay 46) createMissionDisplay ["","Campaigns"];
_missionDisplay createMissionDisplay ["", "Cutscenes"];
(findDisplay 46) createMissionDisplay ["","MPMissions"];
_missionDisplay createMissionDisplay ["", "Campaigns"];
(findDisplay 46) createMissionDisplay ["","Challenges"];
_missionDisplay createMissionDisplay ["", "MPMissions"];
(findDisplay 46) createMissionDisplay ["","Showcases"];
_missionDisplay createMissionDisplay ["", "Challenges"];
_missionDisplay createMissionDisplay ["", "Showcases"];
</sqf>
</sqf>


|seealso= [[createDialog]] [[createDisplay]] [[createGearDialog]] [[createMPCampaignDisplay]]
|seealso= [[createDialog]] [[createDisplay]] [[createGearDialog]] [[createMPCampaignDisplay]]
}}
}}

Revision as of 11:45, 5 May 2024

Hover & click on the images for description

Description

Description:
Create single missions display as a child of given display. The mission dialog will be set to the directory given as an argument "root".
Groups:
GUI Control

Syntax

Syntax:
display createMissionDisplay missionRootDirectoryString
Parameters:
display: Display
missionRootDirectoryString: String
Return Value:
Display

Alternative Syntax

Syntax:
display createMissionDisplay [missionRootDirectoryString, cfgMissionsClass]
Parameters:
display: Display
missionRootDirectoryString: String - root direction from \Arma 3\Missions\ROOT
cfgMissionsClass: String - cfgMissions class to use
Return Value:
Display

Examples

Example 1:
_ChildDisplay = _Rootdisplay createMissionDisplay "Tutorial";
Example 2:
In Arma 3 this creates the scenarios UI:
findDisplay 46 createMissionDisplay "";
Example 3:
Other options for Arma 3:
private _missionDisplay = findDisplay 46; _missionDisplay createMissionDisplay ["", "Cutscenes"]; _missionDisplay createMissionDisplay ["", "Campaigns"]; _missionDisplay createMissionDisplay ["", "MPMissions"]; _missionDisplay createMissionDisplay ["", "Challenges"]; _missionDisplay createMissionDisplay ["", "Showcases"];

Additional Information

See also:
createDialog createDisplay createGearDialog createMPCampaignDisplay

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