Small fixes and changes

This commit is contained in:
Natsumi
2024-05-29 10:45:48 +12:00
parent 1810171241
commit fff33bf03f
7 changed files with 52 additions and 86 deletions

View File

@@ -148,10 +148,15 @@ namespace VRCX
VRCXVR.Instance.Restart();
}
public void SetZoom(int zoomLevel)
public void SetZoom(double zoomLevel)
{
MainForm.Instance.Browser.SetZoomLevel(zoomLevel);
}
public async Task<double> GetZoom()
{
return await MainForm.Instance.Browser.GetZoomLevelAsync();
}
/// <summary>
/// Retrieves an image from the VRChat API and caches it for future use. The function will return the cached image if it already exists.