RAGE.Ui.HtmlWindow.Destroy: Difference between revisions
(Created page with "==Syntax== <pre>void HtmlWindow.Destroy();</pre> {{CSharpContainer| <syntaxhighlight lang="C#"> HtmlWindow CEF; private void openUI() { CEF = new HtmlWindow("package://...") |
No edit summary |
||
| Line 10: | Line 10: | ||
CEF = new HtmlWindow("package://cef/index.html"); | CEF = new HtmlWindow("package://cef/index.html"); | ||
Rage.Ui.Cursor.Visible = true; | Rage.Ui.Cursor.Visible = true; | ||
} | } | ||
| Line 16: | Line 15: | ||
CEF.Destroy(); | CEF.Destroy(); | ||
Rage.Ui.Cursor.Visible = false; | Rage.Ui.Cursor.Visible = false; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Latest revision as of 12:24, 29 July 2019
Syntax
void HtmlWindow.Destroy();
C# Syntax
HtmlWindow CEF;
private void openUI() {
CEF = new HtmlWindow("package://cef/index.html");
Rage.Ui.Cursor.Visible = true;
}
private void destroyUI() {
CEF.Destroy();
Rage.Ui.Cursor.Visible = false;
}