RAGE.Ui.HtmlWindow: Difference between revisions
(Created page with "Creates a new browser. ==Syntax== <pre>class RAGE.Ui.HtmlWindow;</pre> ==Example== {{CSharpContainer| {{Example}} <syntaxhighlight lang="C#"> RAGE.Ui.HtmlWindow CEF; public...") |
m (Add link to package protocol) |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 10: | Line 10: | ||
RAGE.Ui.HtmlWindow CEF; | RAGE.Ui.HtmlWindow CEF; | ||
public void createBrowser(bool toggle) | public void createBrowser(bool toggle, string way) | ||
{ | { | ||
CEF = new RAGE.Ui.HtmlWindow("package://cs_packages/ | CEF = new RAGE.Ui.HtmlWindow(way); // Creating of browser ( way = "package://cs_packages/test.html" ) | ||
} | } | ||
public void activateBrowser(bool toggle) | public void activateBrowser(bool toggle) | ||
{ | { | ||
CEF.Active = | CEF.Active = toggle; // Activating of browser | ||
} | } | ||
| Line 26: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
See [[Package Protocol]] for more info on the <code>package://</code> url. | |||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
Latest revision as of 02:10, 4 January 2025
Creates a new browser.
Syntax
class RAGE.Ui.HtmlWindow;
Example
C# Syntax
Example
RAGE.Ui.HtmlWindow CEF;
public void createBrowser(bool toggle, string way)
{
CEF = new RAGE.Ui.HtmlWindow(way); // Creating of browser ( way = "package://cs_packages/test.html" )
}
public void activateBrowser(bool toggle)
{
CEF.Active = toggle; // Activating of browser
}
public void urlBrowser(string url)
{
CEF.Url = url; // Changing url of browser
}
See Package Protocol for more info on the package:// url.