Ulysses

Ulysses Stuff => Suggestions => Topic started by: someone920 on June 18, 2010, 04:04:00 PM

Title: MOTD 'I Agree' Instead of 'Close' Button
Post 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.
Title: Re: MOTD 'I Agree' Instead of 'Close' Button
Post by: Stickly Man! on June 18, 2010, 07:24:39 PM
Really easy fix: On your server, open ulx\lua\ulx\modules\cl\motdmenu.lua

find on line 21:
Code: [Select]
button:SetText( "Close" )and replace with:
Code: [Select]
button:SetText( "I agree" )
Then find on line 13:
Code: [Select]
window:Center()And ADD THIS LINE beneath it:
Code: [Select]
window:ShowCloseButton( false )

Piece o' cake!
Title: Re: MOTD 'I Agree' Instead of 'Close' Button
Post by: someone920 on June 18, 2010, 08:09:54 PM
Ohh, didn't know it was that easy! Thanks!
Title: Re: MOTD 'I Agree' Instead of 'Close' Button
Post by: carterardell on June 21, 2010, 10:49:19 PM
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.