ScriptWindowCreated: Difference between revisions

From RAGE Multiplayer Wiki
(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:
{{ClientSide}}
{{ClientsideCsEvent}}
 
{{CSharpContainer|
== C# Syntax ==
{{CSharp|
<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.
=== Parameters ===
* '''window''': The created browser handler, output expects <span style="color: #408DAE"><b>RAGE.Ui.HtmlWindow</b></span> type.
 
=== Examples ===


{{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#



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");
}