createMissionDisplay: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
(updated SeeAlso)
 
(51 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


|arma|Game name=
|game1= arma1
|version1= 1.08


|1.08|Game version=
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Create single missions display as a child of given display. The mission dialog will be set to the directory given as an argument "root". |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| [[Display]] <nowiki>=</nowiki> display '''createMissionDisplay''' missionRootDirectoryString  |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= display : [[Display]]|PARAMETER1=
|game5= arma3
|version5= 0.50


|p2= string: [[String]]|PARAMETER2=
|gr1= GUI Control


| [[Display]] |RETURNVALUE=
|descr= Create single missions display as a child of given display. The mission dialog will be set to the directory given as an argument "root".
____________________________________________________________________________________________


|s2= [[Display]] <nowiki>=</nowiki> display '''createMissionDisplay''' [missionRootDirectoryString,cfgMissionsClass] |Syntax 2=
|s1= display [[createMissionDisplay]] missionRootDirectoryString


|p21= display : [[Display]]|PARAMETER21=
|p1= display: [[Display]]


|p22= missionRootDirectoryString: [[String]] - root direction from \Arma 3\Missions\ROOT |Parameter 22=
|p2= missionRootDirectoryString: [[String]]


|p23= cfgMissionsClass: [[String]] - cfgMissions class to use |Parameter 23=
|r1= [[Display]]


|r2= [[For Type]] |Return value 2=
|s2= display [[createMissionDisplay]] [missionRootDirectoryString, cfgMissionsClass]
____________________________________________________________________________________________
 
|x1= <code>_ChildDisplay = _Rootdisplay [[createMissionDisplay]] "Tutorial";</code>|EXAMPLE1=


|x2= In Arma 3 this would create scenarios UI <code>[[findDisplay]] 46 [[createMissionDisplay]] "";</code>|EXAMPLE2=
|p21= display: [[Display]]


|x3= Other options for Arma 3:
|p22= missionRootDirectoryString: [[String]] - root direction from {{hl|\Arma 3\Missions\ROOT}}
* (findDisplay 46) createMissionDisplay ["","Cutscenes"];
* (findDisplay 46) createMissionDisplay ["","Campaigns"];
* (findDisplay 46) createMissionDisplay ["","MPMissions"];
* (findDisplay 46) createMissionDisplay ["","Challenges"];
* (findDisplay 46) createMissionDisplay ["","Showcases"];</code>|EXAMPLE3=


____________________________________________________________________________________________
|p23= cfgMissionsClass: [[String]] - cfgMissions class to use


| |SEEALSO=
|r2= [[Display]]


}}
|x1= <sqf>_ChildDisplay = _Rootdisplay createMissionDisplay "Tutorial";</sqf>


<h3 style="display:none">Notes</h3>
|x2= In {{arma3}} this creates the scenarios UI:
<dl class="command_description">
<sqf>findDisplay 46 createMissionDisplay "";</sqf>
<!-- Note Section BEGIN -->


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


<!-- Note Section END -->
|seealso= [[createMPCampaignDisplay]] [[playMission]] [[playScriptedMission]] [[hostMission]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Interaction|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 09:48, 21 August 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:
createMPCampaignDisplay playMission playScriptedMission hostMission

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