Colored Text

By cmitch1120 on Dec 01, 2008

This snippet automatically recolors every text you enter to a color of your choice. I'm going to add a dialog soon, which might take a while since that is my weakest point.
It does, however, have a menu popup.

Hope you like it,
~ Cody

on *:INPUT:*: {
  if (/me == $1) && (!$ctrlenter) {
    me $+(,%color1,$$2-,)
    halt
  }
  elseif (/* !iswm $1) && (!$ctrlenter) {
    say $+(,%color1,$$1-,)
    halt
  }
}
menu * {
  Set Text Color:/set %color1 $$?="Enter new color number. $crlf $+ To use a background color, have a comma separate the first & second colors."
}

Comments

Sign in to comment.
cmitch1120   -  Jan 01, 2009

Thanks for the comments all, and Aaron, nice update, but not everyone uses the same colors for their numbers as we do. :)

 Respond  
Dark_Aaron   -  Dec 03, 2008

:p

 Respond  
napalm`   -  Dec 02, 2008

LMFAO, AHHHHH Dies

 Respond  
Kirby   -  Dec 01, 2008

Nicely done.
I like it.

 Respond  
Dark_Aaron   -  Dec 01, 2008
 on *:INPUT:*: { if (%color == on) { 
    if (/me == $1) && (!$ctrlenter) {
      me $+(,%color1,$$2-,)
      halt
    }
    elseif (/* !iswm $1) && (!$ctrlenter) {
      say $+(,%color1,$$1-,)
      halt
    }
  }
}
menu * {
  .color
  ..Set Custom Text Color:/set %color1 $$?="Enter new color number. $crlf $+ To use a background color, have a comma separate the first & second colors."
  ..off:/color off
  ..on:/color on
  ..Dark Blue:/set %color1 2
  ..Green:/set %color1 3
  ..Red:/set %color1 4
  ..Brown:/set %color1 5
  ..Purple:/set %color1 6
  ..Orange:/set %color1 7
  ..Yellow:/set %color1 8
  ..Light Green:/set %color1 9
  ..Pale Green:/set %color1 10
  ..Light Blue:/set %color1 11
  ..Blue:/set %color1 12
  ..Pink:/set %color1 13
  ..Black:/set %color1 1
  ..White:/set %color1 0
  ..Dark Gray:/set %color1 14
  ..Gray:/set %color1 15
}
alias color {
  set %color $1-
  echo The color script has been set to $1 $+ .
}

There you go I added an on and off switch and the colors

 Respond  
Dark_Aaron   -  Dec 01, 2008

hmm nice

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.