ctrlSetURL: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (some perks) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
* <tt>CT_SHORTCUTBUTTON</tt> | * <tt>CT_SHORTCUTBUTTON</tt> | ||
* <tt>CT_ACTIVETEXT</tt> | * <tt>CT_ACTIVETEXT</tt> | ||
{{Important|URL should be written in lower case including address prefix. For example <tt><nowiki>HTTP://ARMA3.COM/</nowiki></tt> will not pass validation but <tt><nowiki>http://arma3.com/</nowiki></tt> will.}} | {{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.}} | ||
|mp= |Multiplayer Behaviour= | |mp= |Multiplayer Behaviour= |
Revision as of 23:46, 20 January 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
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
[[Category:Introduced with arma3dev version ]][[ Category: arma3dev: New Scripting Commands | CTRLSETURL]][[ Category: arma3dev: Scripting Commands | CTRLSETURL]]