ScriptWindowCreated: Difference between revisions
(Created page with "{{ClientSide}} == C# Syntax == {{CSharp| <pre> public delegate void OnScriptWindowCreatedDelegate(HtmlWindow window); </pre> }} === Parameters === * '''window''': The create...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{ClientsideCsEvent}} | ||
{{CSharpContainer| | |||
{{ | |||
<pre> | <pre> | ||
public delegate void OnScriptWindowCreatedDelegate(HtmlWindow window); | public delegate void OnScriptWindowCreatedDelegate(HtmlWindow window); | ||
</pre> | </pre> | ||
}} | {{Parameters}} | ||
* '''window''': The created browser handler, output expects '''RAGE.Ui.HtmlWindow''' type. | |||
* '''window''': The created browser handler, output expects | |||
{{Example}} | |||
<syntaxhighlight lang="c#"> | <syntaxhighlight lang="c#"> | ||
Events.OnScriptWindowCreated += OnScriptWindowCreated; | Events.OnScriptWindowCreated += OnScriptWindowCreated; | ||
| Line 23: | Line 18: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
Latest revision as of 16:04, 27 November 2018
Client-Side Event
C# Syntax
public delegate void OnScriptWindowCreatedDelegate(HtmlWindow window);
Parameters
- window: The created browser handler, output expects RAGE.Ui.HtmlWindow type.
Example
Events.OnScriptWindowCreated += OnScriptWindowCreated;
public void OnScriptWindowCreated(RAGE.Ui.HtmlWindow window)
{
RAGE.Chat.Output($"Find out what this does");
}