Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ CommandColour Function
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Terry
USA (87 posts) Bio
|
| Date
| Sat 12 Jul 2008 02:48 PM (UTC) Amended on Sat 12 Jul 2008 02:53 PM (UTC) by Terry
|
| Message
| First off, I sorta feel bad making all these somewhat trivial posts...
Anyway, is there a function that sends the name of the output color being used for commands? Before, I had always used:ColourNote ("silver", "", "I'm a colored note! And stuff! Yay!")
With the newer versions, however, it's now a light shade of red that I can't even find on the extended colors list! :p
A side note: Is there a way of previewing a post before it's posted? | | Top |
|
| Posted by
| Worstje
Netherlands (899 posts) Bio
|
| Date
| Reply #1 on Sat 12 Jul 2008 05:15 PM (UTC) Amended on Sat 12 Jul 2008 06:42 PM (UTC) by Worstje
|
| Message
| You have probably changed the color using Input>Commands, and not realized it. You can change it back there. Or, you can use a smarter script function to solve your issue and have your notes change along with the worlds settings from now on forth:
function FakeInput(text)
-- Is this world to actually display input?
if (world.GetOption("display_my_input") == 1) then
local inputColorFG = world.GetNormalColour(8) -- use standard foreground
local inputColorBG = world.GetNormalColour(1) -- use standard background
-- If a colour has been specified, use that instead.
if (world.GetOption("echo_colour") > 0) then
inputColorFG = world.GetCustomColourText(world.GetOption("echo_colour"))
inputColorBG = world.GetCustomColourBackground(world.GetOption("echo_colour"))
end
-- Finally, output the stuff.
world.ColourNote(world.RGBColourToName(inputColorFG),
world.RGBColourToName(inputColorBG), text)
end
end
-- Use it like...
FakeInput("Wazzam~!")
| | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,618 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top