BIS fnc exportGUIBaseClasses: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
|1.00 | |||
|gr1= GUI | |gr1= GUI | ||
Line 11: | Line 10: | ||
|gr3= Broken Functions | |gr3= Broken Functions | ||
| Export GUI macros and base classes to the clipboard.{{Feature| | |descr= Export GUI macros and base classes to the clipboard. | ||
{{Feature|obsolete|the [[import (Config)|import]] keyword was introduced.|arma3|2.01.146644}} | |||
{{Feature|warning| | |||
The exported the Eden Editor base classes have several inheritance issues. | |||
If you need the base classes you can get them {{Link|https://github.com/LarrowZurb/A3_GUI_Defines|'''here'''}}. | |||
}} | |||
| mode call [[BIS_fnc_exportGUIBaseClasses]] | |s1= mode call [[BIS_fnc_exportGUIBaseClasses]] | ||
|p1=mode: [[String]] - | |p1= mode: [[String]] - mode, '''case-sensitive'''; can be one of: | ||
"Default" - | * {{hl|"Default"}} - classic base classes like {{hl|RscText}} or {{hl|RscPicture}} | ||
"3DEN" - [[Eden Editor]] base classes like ctrlStatic or ctrlStaticPicture | * {{hl|"3DEN"}} - [[:Category:Eden Editor|Eden Editor]] base classes like {{hl|ctrlStatic}} or {{hl|ctrlStaticPicture}} | ||
"all" - | * {{hl|"all"}} - all GUI base classes, including more exotic ones | ||
{{Feature|important|All modes are case sensitive. If the | {{Feature|important| | ||
All modes are case sensitive. If the capitalisation 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". | |||
}} | |||
|r1=[[String]] - | |r1= [[String]] - {{hl|.hpp}} file content to be included in [[Description.ext]], also copied to the clipboard | ||
|x1= < | |x1= <sqf>"all" call BIS_fnc_exportGUIBaseClasses;</sqf> | ||
|seealso= [[Arma: GUI Configuration]] [[Arma 3: Utilities]] | |seealso= [[Arma: GUI Configuration]] [[Arma 3: Utilities]] | ||
}} | }} | ||
{{Note | |||
|user= Killzone_Kid | |||
|timestamp= 20180928143700 | |||
|text= You can use [[Arma 3: Utilities]] to get the base class for your mission config. | |||
For example if you need {{hl|RscPicture}} base, enter '''utils 2''' in the debug console and click '''LOCAL EXEC''', type {{hl|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|description.ext]] and then derive your class from it. | |||
}} | |||
Latest revision as of 18:00, 30 October 2023
Description
- Description:
- Export GUI macros and base classes to the clipboard.
- Execution:
- call
- Groups:
- GUIDiagnosticBroken Functions
Syntax
- Syntax:
- mode call BIS_fnc_exportGUIBaseClasses
- Parameters:
- mode: String - mode, case-sensitive; can be one of:
- "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
- Return Value:
- String - .hpp file content to be included in Description.ext, also copied to the clipboard
Examples
- Example 1:
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
- Posted on Sep 28, 2018 - 14:37 (UTC)
- 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.