private void ShowRepaintMenuEvent(object[] args) { // Disable the HUD Ui.DisplayHud(false); Ui.DisplayRadar(false); // Show the paint menu Browser.CreateBrowserEvent(new object[] { "package://statics/html/repaintVehicle.html" }); }
private void CloseRepaintWindowEvent(object[] args) { // Enable the HUD Ui.DisplayHud(true); Ui.DisplayRadar(true); // Destroy the browser Browser.DestroyBrowserEvent(null); // Restore the vehicle's colors Events.CallRemote("cancelVehicleRepaint"); }