Author Topic: MOTD 'I Agree' Instead of 'Close' Button  (Read 2651 times)

0 Members and 1 Guest are viewing this topic.

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
MOTD 'I Agree' Instead of 'Close' Button
« 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.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: MOTD 'I Agree' Instead of 'Close' Button
« Reply #1 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!
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
Re: MOTD 'I Agree' Instead of 'Close' Button
« Reply #2 on: June 18, 2010, 08:09:54 PM »
Ohh, didn't know it was that easy! Thanks!

Offline carterardell

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: MOTD 'I Agree' Instead of 'Close' Button
« Reply #3 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.