phantompain5 posted:
Oh ok then ill just wait, for someone to release a version with it.
As a followup to my last post, I'd just like to say that
I have done something useful involving llmozlib :D
It's actually extremely easy to port what's in gecko.lua to a surface-based thing such as the i64 computers.
However, there are some bugs which seem more likely to be related to llmozlib than i64, all of these may be related to surfaces - I haven't tested it just in a VGUI much.
- The browser object will only resize up to a certain width, after that it seems to clip: it renders it, and it resizes the page properly, but it doesn't display it after a certain point.
- When resizing to smaller sizes, it seems to leave artifacts behind: it looks like the effect you'd get if you didn't redraw a surface every frame, simply add to it.
- Gecko can steal keyboard focus from GMod to the point where you have to alt-tab from GMod and back to get keyboard focus within GMod again.
Some of these may be suspect of my shitty midnight hacking together of code, though. The artifacting upon resizing the browser seems like a bug though.
Also, what difference does setting browser:update(true) and browser:update(false) do? It seems to update the browser regardless.
Oh, and how do you remove the browser objects afterwards? browser:remove() or something?