ctrlSetURL: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
Killzone Kid (talk | contribs) No edit summary |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
|game1= | |game1= arma3 | ||
|version1= 2.02 | |||
| | |||
|gr1= GUI Control | |gr1= GUI Control | ||
Line 11: | Line 10: | ||
* <tt>CT_SHORTCUTBUTTON</tt> | * <tt>CT_SHORTCUTBUTTON</tt> | ||
* <tt>CT_ACTIVETEXT</tt> | * <tt>CT_ACTIVETEXT</tt> | ||
{{Feature|important|URL should be written in lower case including address prefix. For example <tt><nowiki>HTTP://ARMA3.COM/</nowiki></tt> will not pass allowed filter validation but <tt><nowiki>http://arma3.com/</nowiki></tt> will.}} | |||
| | |||
|s1= control [[ctrlSetURL]] URL | |s1= control [[ctrlSetURL]] URL | ||
Line 25: | Line 21: | ||
|x1= <code>_control [[ctrlSetURL]] "<nowiki>http://arma3.com/</nowiki>"; // note the forward slash / at the end</code> | |x1= <code>_control [[ctrlSetURL]] "<nowiki>http://arma3.com/</nowiki>"; // note the forward slash / at the end</code> | ||
|seealso= [[ctrlURL]] | |seealso= [[ctrlURL]] [[menuSetURL]] | ||
}} | }} | ||
Revision as of 19:28, 20 June 2021
Description
- Description:
- Sets URL property of the given control subject to allowedHTMLLoadURIs[] whitelisting in CfgCommands config. Supported controls are:
- CT_BUTTON
- CT_SHORTCUTBUTTON
- CT_ACTIVETEXT
- Groups:
- GUI Control
Syntax
- Syntax:
- control ctrlSetURL URL
- Parameters:
- control: Control
- URL: String
- Return Value:
- Nothing
Examples
- Example 1:
_control ctrlSetURL "http://arma3.com/"; // note the forward slash / at the end
Additional Information
- See also:
- ctrlURL menuSetURL
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