Ulysses Stuff > Suggestions

MOTD like the ASSMOD one

<< < (2/2)

Stickly Man!:
That's an easy few lines of code:

In ulx\lua\ulx\modules\cl\motdmenu.lua:

Find this piece of code at line 16:

--- Code: ---window:MakePopup()
--- End code ---
Then add these lines beneath it:

--- Code: ---window:SetBackgroundBlur( true )
window:SetDrawOnTop( true )
window:DoModal()
--- End code ---

:SetBackgroundBlur is the only thing you really need for the blur effect, the other lines of code just make it so it's always on top, and that you can't switch to any other VGUI/Derma menus.

JamminR:

--- Quote from: jay209015 on June 18, 2010, 07:06:52 PM ---I think he's talking about outside of the HTML window. It blurs the everything but the MOTD.

--- End quote ---
OH!
[sarcasm] Then why didn't he say so! [/sarcasm]

Actually though, a bit more detail like "around the html box, the rest of the game/world/map image is blurred to not be seen" would have been helpful for me.

Stick, is it really "Modal" and not "Model"?
(I'm not the derma master like you...just askin!) :P

Stickly Man!:
Yup: http://luabin.foszor.com/code/addons/derma/lua/derma/derma_utils.lua#89
(That's the code for Derma_Message(), which makes a quick blurred popup that you see in gmod) :P

More info: http://wiki.garrysmod.com/?title=Panel.DoModal

Navigation

[0] Message Index

[*] Previous page

Go to full version