Author Topic: ULX MOTD and Semantic UI.  (Read 3325 times)

0 Members and 4 Guests are viewing this topic.

Offline Monkey_|BC|

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
ULX MOTD and Semantic UI.
« 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!
« Last Edit: June 10, 2016, 03:58:04 AM by XD 3VIL M0NKEY_|BC| »

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: ULX MOTD and Semantic UI.
« Reply #1 on: June 10, 2016, 04:41:52 AM »
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
« Last Edit: June 10, 2016, 06:49:12 AM by Timmy »

Offline Monkey_|BC|

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
Re: ULX MOTD and Semantic UI.
« Reply #2 on: June 10, 2016, 04:47:39 AM »
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.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: ULX MOTD and Semantic UI.
« Reply #3 on: June 10, 2016, 05:13:59 AM »
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 before, but haven't had any luck getting it to work with the built-in browser.

Offline Monkey_|BC|

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
Re: ULX MOTD and Semantic UI.
« Reply #4 on: June 10, 2016, 05:18:58 AM »
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 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,

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: ULX MOTD and Semantic UI.
« Reply #5 on: June 10, 2016, 06:44:56 AM »
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 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.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX MOTD and Semantic UI.
« Reply #6 on: June 10, 2016, 11:55:27 AM »
A configuration option to use Steam overlay for the URL-based MOTD would be an interesting idea (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.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Monkey_|BC|

  • Newbie
  • *
  • Posts: 4
  • Karma: 1
Re: ULX MOTD and Semantic UI.
« Reply #7 on: June 10, 2016, 11:57:21 AM »
A configuration option to use Steam overlay for the URL-based MOTD would be an interesting idea (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...