BIS fnc toUpperDisplayTexts: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= GUI


|1.00|= Game version
|descr= Converts text of selected classes in one display to upper-case except classes with name '''PlayersName'''. Also searches inside [[CT_CONTROLS_GROUP]]s.
____________________________________________________________________________________________


| <pre>/*
|s1= [displayClass, controlClasses, blacklist] call [[BIS_fnc_toUpperDisplayTexts]]


Description:
|r1= [[Nothing]]
* Converts text of selected classes in one display to upper-case.
* Searches inside Controls class of the display. Looks inside RscControlsGroup as well.
* Doesn't toUpper class with name "PlayersName" (TODO - Maybe make it parameter as well).


Parameter(s):
|p1= displayClass: [[String]] - class name of the display to manipulate
0: STRING - Class name of the display (e. g. "RscDisplayOptionsAudio").
1: ARRAY OF STRINGS - Class names of parents of controls you want to toUpper (e. g. ["RscText", "RscTitle"]).
2 (Optional): ARRAY OF STRINGS - Class names of controls you don't want toUpper (e. g. ["CA_VehicleAuthor"] - suitable for toUppering all RscTexts except CA_VehicleAuthor).


Returns:
|p2= controlClasses: [[Array]] of [[String]]s - class names of parents of controls you want to turn upper case (e. g. ["RscText", "RscTitle"])
NOTHING
*/


|p3= blacklist: [[Array]] of [[String]]s - (Optional: Default []) Class names of controls you don't want to turn upper case (e. g. ["CA_VehicleAuthor"])


|x1= <sqf>["RscDisplayOptionsAudio", ["RscText"]] call BIS_fnc_toUpperDisplayTexts;</sqf>


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
|seealso= [[BIS_fnc_displayName]]
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_toUpperDisplayTexts]]; --> |SYNTAX=
 
|p1= |PARAMETER1=
 
| |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |SEEALSO=
 
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:toUpperDisplayTexts}}]]
[[Category:Functions|{{uc:toUpperDisplayTexts}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:toUpperDisplayTexts}}]]

Latest revision as of 14:59, 8 November 2023

Hover & click on the images for description

Description

Description:
Converts text of selected classes in one display to upper-case except classes with name PlayersName. Also searches inside CT_CONTROLS_GROUPs.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[displayClass, controlClasses, blacklist] call BIS_fnc_toUpperDisplayTexts
Parameters:
displayClass: String - class name of the display to manipulate
controlClasses: Array of Strings - class names of parents of controls you want to turn upper case (e. g. ["RscText", "RscTitle"])
blacklist: Array of Strings - (Optional: Default []) Class names of controls you don't want to turn upper case (e. g. ["CA_VehicleAuthor"])
Return Value:
Nothing

Examples

Example 1:
["RscDisplayOptionsAudio", ["RscText"]] call BIS_fnc_toUpperDisplayTexts;

Additional Information

See also:
BIS_fnc_displayName

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