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
➜ Suggestions
➜ Colour Picker
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Beale
(35 posts) Bio
|
Date
| Wed 10 Aug 2005 07:20 PM (UTC) |
Message
| Would it be at all possible, strictly from a code standpoint, to have a world.ColourPick function that brought up the colour picker and returned the RGB number that the user chose? This'd be quite handy. | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Wed 17 Aug 2005 07:28 AM (UTC) |
Message
| Sounds good, but the problem is the script would pause the client indefinitely while you choose a colour. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Beale
(35 posts) Bio
|
Date
| Reply #2 on Wed 17 Aug 2005 11:33 AM (UTC) Amended on Wed 17 Aug 2005 11:37 AM (UTC) by Beale
|
Message
| Hmmm. But would this actually be a problem?
I mean, VBScript already does this for things like InputBox and MsgBox, but I guess it can do that because it's an external component, and the functionality is built in. It might be more of a problem for, say, Lua.
Would the main program thread keep running while the script paused?
And I guess the other issue is working out what kind of value to return... | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Fri 19 Aug 2005 11:55 PM (UTC) |
Message
| It probably can be done easily enough, if you are prepared to accept the pause. If the script pauses then basically the client pauses, which isn't a great thing if you have multiple worlds.
As for returning the value, a single number would do it, that is how RGB values are stored internally anyway (one byte each for red, green and blue). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 15 Oct 2005 01:57 AM (UTC) |
Message
| Added PickColour script function to version 3.67. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
14,899 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top