ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.84k stars 2.02k forks source link

Question: HTML5 in Source? #505

Open MunMr opened 4 years ago

MunMr commented 4 years ago

Hi. Is there any chance to add it to Source? Because it's useable in Garry's Mod (for example), when you want to play YouTube videos, Twitch streams, etc.

neico commented 4 years ago

Already possible, source sdk 2013 uses ISteamHTMLSurface on vgui::HTML, which is steam's CEF (chromium embedded framework) version As such is it very usable on the MOTD

It is however not exactly possible like in GMod in regard to the GameUI, as in this version it's closed-source, you'd need to use the GameUI from AlienSwarm for that. If you however want it for the loading screen then it's possible by telling the GameUI to use your own vgui Panel as background.

apchistuo commented 2 years ago

I don't think https will be possible in source, so http only and will be highly insecure.