RAGE.Ui.HtmlWindow.Active: Difference between revisions
(Created page with "==Syntax== <pre>bool HtmlWindow.Active { get; set; }</pre> {{CSharpContainer| <syntaxhighlight lang="C#"> HtmlWindow ShopCEF = new HtmlWindow("package://cef/shop/index.html"...") |
m (Add link to package protocol) |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 5: | Line 5: | ||
{{CSharpContainer| | {{CSharpContainer| | ||
<syntaxhighlight lang="C#"> | <syntaxhighlight lang="C#"> | ||
HtmlWindow | HtmlWindow CEF = new HtmlWindow("http://package/index.html"); | ||
private void openUI() { | private void openUI() { | ||
CEF.Active = true; | |||
Rage.Ui.Cursor. | Rage.Ui.Cursor.Visible = true; | ||
} | } | ||
private void closeUI() { | private void closeUI() { | ||
CEF.Active = false; | |||
Rage.Ui.Cursor. | Rage.Ui.Cursor.Visible = false; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
See [[Package Protocol]] for more info on the <code>package://</code> url. | |||
Latest revision as of 02:10, 4 January 2025
Syntax
bool HtmlWindow.Active { get; set; }
C# Syntax
HtmlWindow CEF = new HtmlWindow("http://package/index.html");
private void openUI() {
CEF.Active = true;
Rage.Ui.Cursor.Visible = true;
}
private void closeUI() {
CEF.Active = false;
Rage.Ui.Cursor.Visible = false;
}
See Package Protocol for more info on the package:// url.