Ulysses
Ulysses Stuff => Suggestions => Topic started by: someone920 on June 18, 2010, 04:04:00 PM
-
I was wondering if it was possible for me to change the button to close the motd to 'I Agree' instead of 'Close' because of how our MOTD was designed. Something else I also might want to change is not having a x in the corner to close it from there.
-
Really easy fix: On your server, open ulx\lua\ulx\modules\cl\motdmenu.lua
find on line 21:
button:SetText( "Close" )
and replace with:
button:SetText( "I agree" )
Then find on line 13:
window:Center()
And ADD THIS LINE beneath it:
window:ShowCloseButton( false )
Piece o' cake!
-
Ohh, didn't know it was that easy! Thanks!
-
Yes, by making it false it will not show that. It is really very easy to implement. I think that you had replace the name from close to I agree and that is really nice logic. I like that.