ScriptWindowDestroyed: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "{{ClientSide}} == C# Syntax == {{CSharp| <pre> public delegate void OnScriptWindowDestroyedDelegate(HtmlWindow window); </pre> }} === Parameters === * '''window''': The crea...")
 
No edit summary
 
Line 1: Line 1:
{{ClientSide}}
{{ClientsideCsEvent}}


== C# Syntax ==
{{CSharpContainer|
{{CSharp|
<pre>
<pre>
public delegate void OnScriptWindowDestroyedDelegate(HtmlWindow window);
public delegate void OnScriptWindowDestroyedDelegate(HtmlWindow window);
</pre>
</pre>
}}


=== Parameters ===
{{Parameters}}
* '''window''': The created browser handler, output expects <span style="color: #408DAE"><b>RAGE.Ui.HtmlWindow</b></span> type.
* '''window''': The created browser handler, output expects '''RAGE.Ui.HtmlWindow''' type.
 
=== Examples ===


{{Example}}
<syntaxhighlight lang="c#">
<syntaxhighlight lang="c#">
Events.OnScriptWindowDestroyed += OnScriptWindowDestroyed;
Events.OnScriptWindowDestroyed += OnScriptWindowDestroyed;
Line 23: Line 20:
}
}
</syntaxhighlight>
</syntaxhighlight>
}}

Latest revision as of 16:05, 27 November 2018

Client-Side
Event

 C#




C# Syntax

public delegate void OnScriptWindowDestroyedDelegate(HtmlWindow window);

Parameters

  • window: The created browser handler, output expects RAGE.Ui.HtmlWindow type.

Example

Events.OnScriptWindowDestroyed += OnScriptWindowDestroyed;
public void OnScriptWindowDestroyed(RAGE.Ui.HtmlWindow window)
{
    RAGE.Chat.Output($"Find out what this does");
}