BIS fnc exportGUIBaseClasses: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 46: Line 46:
<dt class="note">[[User:killzone_kid|killzone_kid]]</dt>
<dt class="note">[[User:killzone_kid|killzone_kid]]</dt>
<dd class="note"> You can use [[Arma 3 Utilities]] to get the base class for your mission config. For example if you need <tt>RscPicture</tt> base, enter '''utils 2''' in the debug console and click '''LOCAL EXEC''', type <tt>RscPicture</tt> and press Enter, check '''Include Inherited''' box, then click '''COPY'''. The config is now copied to Clipboard and you can paste it in your [[description.ext]] and then derive your class from it.   
<dd class="note"> You can use [[Arma 3 Utilities]] to get the base class for your mission config. For example if you need <tt>RscPicture</tt> base, enter '''utils 2''' in the debug console and click '''LOCAL EXEC''', type <tt>RscPicture</tt> and press Enter, check '''Include Inherited''' box, then click '''COPY'''. The config is now copied to Clipboard and you can paste it in your [[description.ext]] and then derive your class from it.   
</dd>
</dl>
<!-- DISCONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 28, 2020 - 13:18 (UTC)</dd>
<dt class="note">[[User:R3vo|R3vo]]</dt>
<dd class="note">
With {{GVI|a3|2.02}} the keyword [[import]] was added to the game which allows to import base classes from [[configFile|config file]] to the [[missionConfigFile|mission config]].
</dd>
</dd>
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->

Revision as of 15:18, 28 September 2020

Hover & click on the images for description

Description

Description:
Export GUI macros and base classes to the clipboard.
The exported the Eden Editor base classes have several inheritance issues. If you need the base classes you can get them here.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
mode call BIS_fnc_exportGUIBaseClasses
Parameters:
mode: String - Mode, can be:
"Default" - Classic base classes like RscText or RscPicture
"3DEN" - Eden Editor base classes like ctrlStatic or ctrlStaticPicture
"all" - All GUI base classes, including more exotic ones
All modes are case sensitive. If the capitalization is disregarded the function will default to the "all" mode. In fact, there is no explicit "all" mode, rather it is the fallback if the mode is not one of "Default" or "3DEN".
Return Value:
String - Content of *.hpp file to be included in description.ext. The result is also copied to clipboard

Examples

Example 1:
"all" call BIS_fnc_exportGUIBaseClasses;

Additional Information

See also:
Arma: GUI Configuration Arma 3 Utilities

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

Bottom Section

Posted on September 28, 2018 - 14:37 (UTC)
killzone_kid
You can use Arma 3 Utilities to get the base class for your mission config. For example if you need RscPicture base, enter utils 2 in the debug console and click LOCAL EXEC, type RscPicture and press Enter, check Include Inherited box, then click COPY. The config is now copied to Clipboard and you can paste it in your description.ext and then derive your class from it.
Posted on September 28, 2020 - 13:18 (UTC)
R3vo
With -wrong parameter ("a3") defined!-[[:Category:Introduced with a3 version 2.02|2.02]] the keyword import was added to the game which allows to import base classes from config file to the mission config.