• Are html panels fixed?
    19 replies, posted
I've been trying to get my motd working on my server, but it still shows the white screen. I have seen a motd working on some servers though. Is there some way to get it working?
They work fine, your doing something wrong ^_^
[QUOTE=Spencer Sharkey;36921022]They work fine, your doing something wrong ^_^[/QUOTE] I dont think he is because iv been having this problem with my loading screen and my motd
We have working HTML panels :S
Here's my code [CODE] function ShowMotd() local motdFrame = vgui.Create( "DFrame" ) motdFrame:SetSize( ScrW() - 200, ScrH() - 200 ) motdFrame:SetTitle( "[MB] - Message of The Day" ) motdFrame:SetBackgroundBlur(true) motdFrame:Center() motdFrame:SetDraggable(false) motdFrame:MakePopup() local motdFrameHtml = vgui.Create( "HTML", motdFrame ) motdFrameHtml:SetSize( ScrW() - 20, ScrH() - 50 ) motdFrameHtml:SetPos( 10, 30 ) motdFrameHtml:SetURL(URL) end [/CODE] Kinda new to derma and the GUIs in gmod. Anything wrong?
[QUOTE=zachy64;36921532]Here's my code [CODE] function ShowMotd() local motdFrame = vgui.Create( "DFrame" ) motdFrame:SetSize( ScrW() - 200, ScrH() - 200 ) motdFrame:SetTitle( "[MB] - Message of The Day" ) motdFrame:SetBackgroundBlur(true) motdFrame:Center() motdFrame:SetDraggable(false) motdFrame:MakePopup() local motdFrameHtml = vgui.Create( "HTML", motdFrame ) motdFrameHtml:SetSize( ScrW() - 20, ScrH() - 50 ) motdFrameHtml:SetPos( 10, 30 ) motdFrameHtml:SetURL(URL) end [/CODE] Kinda new to derma and the GUIs in gmod. Anything wrong?[/QUOTE] haha its weird i did the exact same thing XD
I'm not quite sure what is causing the ULX MOTD not to work. There is a working MOTD on garrysmod.org yet ULX MOTD isn't working...
Really need to know how to fix this, can someone help me?
It's been posted few times already, that HTML:SetSize causes the HTML panel to break. Docking the HTML panel to another panel will fix it. [lua] local Panel = vgui.Create( "DPanel" ) Panel:SetSize( 500, 500 ) Panel:Center() local HTML = vgui.Create( "HTML", Panel ) HTML:Dock( FILL ) [/lua]
Thanks so much!!!
Are scrollbars still acting super weird for anyone else?
[QUOTE=MisterTickles;36933146]Are scrollbars still acting super weird for anyone else?[/QUOTE] That's related to the dock thing, it seems to remove the scrollbar.
Yeah figured as much. If someone finds a fix for that, please share. <3
[QUOTE=MisterTickles;36933369]Yeah figured as much. If someone finds a fix for that, please share. <3[/QUOTE] Just a wild guess. You could maybe add a scrollbar to the HTML control manually. [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index3c5d.html[/url] Haven't really tested this idea, but I guess it could work.
Are you sure you can add scrollbar to HTML manually? There aren't hooks to control its amount of scrolling is there?
There was supposedly a fix today. It didn't fix shit. If anyone has a temporary fix that works with scrollbars, let us know please.
Still nothing. :<
You can get the size of a document in an HTML panel with javascript and in turn scroll with javascript. Why not try using that w/ the scrollbar panel?
Also looks like Garry gave up on it.
Today's update didn't fix it, but I can't see the news so I assume it wasn't planned to.
Sorry, you need to Log In to post a reply to this thread.