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"...") |
No edit summary |
||
| Line 9: | Line 9: | ||
private void openUI() { | private void openUI() { | ||
ShopCEF.Active = true; | ShopCEF.Active = true; | ||
Rage.Ui.Cursor. | Rage.Ui.Cursor.Visible = true; | ||
RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true); | RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true); | ||
} | } | ||
| Line 15: | Line 15: | ||
private void closeUI() { | private void closeUI() { | ||
ShopCEF.Active = false; | ShopCEF.Active = false; | ||
Rage.Ui.Cursor. | Rage.Ui.Cursor.Visible = false; | ||
RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, false); | RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, false); | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Revision as of 06:40, 20 July 2019
Syntax
bool HtmlWindow.Active { get; set; }
C# Syntax
HtmlWindow ShopCEF = new HtmlWindow("package://cef/shop/index.html");
private void openUI() {
ShopCEF.Active = true;
Rage.Ui.Cursor.Visible = true;
RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true);
}
private void closeUI() {
ShopCEF.Active = false;
Rage.Ui.Cursor.Visible = false;
RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, false);
}