Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: Monkey_|BC| on June 10, 2016, 03:53:28 AM
-
Right, so. I'm working on an MOTD using Semantic UI.
I'm putting this under help and support because I can't decide whether it's a bug or not with ULX.
You can get Semantic-UI here: http://semantic-ui.com/
This is the in-dev site: https://motd.gshock.tf/gmod/
It displays perfectly fine in a normal browser window (and is responsive down to 800x600).
However, the ULX MOTD browser breaks the formatting.
Oh, it also suffers from extremely sluggish performance. The JQuery links are slow, scrolling is jittery and unresponsive.
Here's what it looks like on a 1080p monitor:
https://gyazo.com/c8ffe73f518856008c62f8b49739d02e
Here's the raw of the site:
http://pastebin.com/9vY2Rar6
The additional CSS file:
http://pastebin.com/4xq0K2G8
My ULib/ULX versions:
ULib v2.60w
ULX v3.70w
Any help and support to resolve this would be great.
Many thanks,
Ryan.
P.S. Could an admin change my name to Monkey_|BC| please? Thanks in advance!
-
Semantic UI uses CSS3 flexbox to describe the layout. Unfortunately, the Garry's Mod built-in browser (that ULX uses to display the MOTD) doesn't have full support for that. It's actually lacking support for a lot of features... :(
You can open these 2 pages in the built-in browser to see which features are supported:
http://css3test.com
https://html5test.com
Edit: https://css3test.com -> http://css3test.com
-
Semantic UI uses CSS3 flexbox to describe the layout. Unfortunately, the Garry's Mod built-in browser (that ULX uses to display the MOTD) doesn't have full support for that. It's actually lacking support for a lot of features... :(
You can open these 2 pages in the built-in browser to see which features are supported:
https://css3test.com
https://html5test.com
Hmm. So. There's little hope for Semantic...
I'm guessing rewrites of the browser are a thing, no? Or am I going to have to rely on the Steam overlay browser to show this instead...
Thanks for the reply,
Ryan.
-
Not entirely sure what you mean by rewrites. Polyfills?
You might be able to use polyfills to bring support to the Garry's Mod browser.
There's actually a lot of polyfills. The Modernizr GitHub has a list: https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills. There's a few flexbox polyfills on that page.
I've played around with the Flexie polyfill (https://github.com/doctyper/flexie) before, but haven't had any luck getting it to work with the built-in browser.
-
Not entirely sure what you mean by rewrites. Polyfills?
You might be able to use polyfills to bring support to the Garry's Mod browser.
There's actually a lot of polyfills. The Modernizr GitHub has a list: https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills. There's a few flexbox polyfills on that page.
I've played around with the Flexie polyfill (https://github.com/doctyper/flexie) before, but haven't had any luck getting it to work with the built-in browser.
Sorry for the confusion,
I mean is it possible to use a different engine other than the inbuilt one? Like, eg: The Steam Overlay. (Being built on Awesomium)
Or at least a newer version of WebKit :P
I'm capable enough to add an !motd command and whatnot to open in the Steam Overlay. (Already have!)
What about the Steam Overlay to open on join with the MOTD instead of the ULX one? Is that even possible?
Thanks,
-
I mean is it possible to use a different engine other than the inbuilt one? Like, eg: The Steam Overlay.
I believe we're stuck on the current engine until someone updates or replaces (https://github.com/Facepunch/garrysmod-requests/issues/531) it. :(
What about the Steam Overlay to open on join with the MOTD instead of the ULX one? Is that even possible?
There's no setting to open the ULX MOTD in the Steam Overlay. You can definitely disable the ULX MOTD, and open the Steam Overlay Browser on your MOTD URL when a player joins with some Lua.
-
A configuration option to use Steam overlay for the URL-based MOTD would be an interesting idea (gui.OpenURL (https://wiki.garrysmod.com/page/gui/OpenURL)). I'll pitch the idea to Megiddo and see what he thinks. :) Otherwise, you can either modify ULX's source directly (not recommended), or just disable the ULX motd and roll your custom one.
But yes, otherwise we're stuck with a very outdated browser as Timmy has mentioned. In light of the complaints to update it, Willox has mostly implemented the latest Chromium Embedded Framework (CEF) in Gmod, but it sounds like they've hit a snag since CEF only supplies 64-bit binaries for OSX, whereas the Source Engine only runs in 32-bit, meaning it doesn't work on Mac. I do not know what (or when) solution they'll come up with.
-
A configuration option to use Steam overlay for the URL-based MOTD would be an interesting idea (gui.OpenURL (https://wiki.garrysmod.com/page/gui/OpenURL)). I'll pitch the idea to Megiddo and see what he thinks. :)
But yes, otherwise we're stuck with a very outdated browser as Timmy has mentioned. In light of the complaints to update it, Willox has mostly implemented the latest Chromium Embedded Framework (CEF) in Gmod, but it sounds like they've hit a snag since CEF only supplies 64-bit binaries for OSX, whereas the Source Engine only runs in 32-bit, meaning it doesn't work on Mac. I do not know what (or when) solution they'll come up with.
Sounds awesome! I think an OpenURL idea would be good.
A better supported browser? Sign me up!
I still see no hope for gamemodes like Cinema that rely on Awesomium being at least *somewhat* capable...