RAGE.Ui.HtmlWindow: Difference between revisions

From RAGE Multiplayer Wiki
mNo edit summary
Line 17: Line 17:
public void activateBrowser(bool toggle)
public void activateBrowser(bool toggle)
{
{
     CEF.Active = toogle; // Activating of browser
     CEF.Active = toggle; // Activating of browser
}
}



Revision as of 03:46, 5 February 2019

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
}