Ulysses Stuff > Suggestions

MOTD 'I Agree' Instead of 'Close' Button

(1/1)

someone920:
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.

Stickly Man!:
Really easy fix: On your server, open ulx\lua\ulx\modules\cl\motdmenu.lua

find on line 21:

--- Code: ---button:SetText( "Close" )
--- End code ---
and replace with:

--- Code: ---button:SetText( "I agree" )
--- End code ---

Then find on line 13:

--- Code: ---window:Center()
--- End code ---
And ADD THIS LINE beneath it:

--- Code: ---window:ShowCloseButton( false )
--- End code ---


Piece o' cake!

someone920:
Ohh, didn't know it was that easy! Thanks!

carterardell:
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.

Navigation

[0] Message Index

Go to full version