Ben_Sherman Posted September 28, 2015 Share Posted September 28, 2015 Hello everyone, First of I'd like to say what an amazing release of 1.5 it was, blew my mind away. However I thought why not jump right in to it so I started working with CEF after finally kinda understanding it and got it to load a HTML file I started having issues. For example I'm not able interact with the HTML what so ever, not a single button or input can I use. It's just static noting else. Anyone have any ideas on how I can resolve this? c_webUI.lua function openWebUI() if not(isElement(webBrowser)) then fadeCamera(false) webBrowser = createBrowser(sWidth, sHeight, true, false) addEventHandler("onClientBrowserCreated", webBrowser, function() loadBrowserURL(webBrowser, "html/index.html") addEventHandler("onClientRender", root, webBrowserRender) end ) end end function webBrowserRender() dxDrawImage(0, 0, sWidth, sHeight, webBrowser, 0, 0, 0, tocolor(255,255,255,255), true) end Link to comment
Jusonex Posted September 28, 2015 Share Posted September 28, 2015 If you used createBrowser to create the browser, you'll have to inject input manually (via injectBrowserMouseDown/-up + enabling keyboard input via focusBrowser). If just want to integrate it in your CEGUI window, you can use guiCreateBrowser which handles input automatically. (Do not forget using guiGetBrowser though) Link to comment
Ben_Sherman Posted September 28, 2015 Author Share Posted September 28, 2015 If you used createBrowser to create the browser, you'll have to inject input manually (via injectBrowserMouseDown/-up + enabling keyboard input via focusBrowser).If just want to integrate it in your CEGUI window, you can use guiCreateBrowser which handles input automatically. (Do not forget using guiGetBrowser though) Thank you Jusonex, I checked your CEF tool out before as those worked however couldn't get it to work with my current resources. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now