// SteamAPICall_t public CallbackHandle CreateBrowser(string pchUserAgent /*const char **/, string pchUserCSS /*const char **/, Action <HTML_BrowserReady_t, bool> CallbackFunction = null /*Action<HTML_BrowserReady_t, bool>*/) { SteamAPICall_t callback = 0; callback = platform.ISteamHTMLSurface_CreateBrowser(pchUserAgent, pchUserCSS); if (CallbackFunction == null) { return(null); } return(HTML_BrowserReady_t.CallResult(steamworks, callback, CallbackFunction)); }
public static void OnBrowserReady(HTML_BrowserReady_t pBrowserReady, bool bIOFailure) { if (bIOFailure) { return; } Browser = pBrowserReady.unBrowserHandle; SteamHTMLSurface.SetSize(Browser, Width, Height); var data = "file://" + Environment.CurrentDirectory + @"/html/index.html"; SteamHTMLSurface.LoadURL(Browser, data, null); }
void OnHTML_BrowserReady(HTML_BrowserReady_t pCallback, bool bIOFailure) { Debug.Log("[" + HTML_BrowserReady_t.k_iCallback + " - HTML_BrowserReady] - " + pCallback.unBrowserHandle); m_HHTMLBrowser = pCallback.unBrowserHandle; }