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
➜ General
➜ Blinking/italic
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Sun 05 Sep 2004 05:19 AM (UTC) |
Message
| Some MUDs support both blink and italic. And since blink is shown as italics, I can't tell the difference, for example, if someone has blinking then italic title. What can I change so I can tell a difference between them? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 05 Sep 2004 05:48 AM (UTC) |
Message
| It won't be easy, but using GetStyleInfo you can detect the presence of blink in a style run. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Shadowfyr
USA (1,790 posts) Bio
|
Date
| Reply #2 on Sun 05 Sep 2004 06:02 PM (UTC) |
Message
| Or to translate Nick's response: Not at present, since the code to make something actually blink isn't exactly part of the standard text output system. And despite being a 'custom' window, Nick uses fairly standard text drawing features. There isn't a whole lot you could do to make it work, unless maybe you just forced a redraw of the entire window every so many milliseconds (half second maybe?) and had the blinking part redraw with the background color every other forced redraw. Hmm. How hard would that be and how much would it slow things down Nick? The key would be to make sure it only switches color 'when' the forced redraw happens, not every time it scrolls or redraws. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #3 on Sun 05 Sep 2004 06:12 PM (UTC) Amended on Sun 05 Sep 2004 06:13 PM (UTC) by Flannel
|
Message
| I would prefer to think of this problem as one more reason why we should be able to edit text with callbacks before it gets evaluated. (that MXP color changing thing was another)
Of course I understand the problems with that (Ansi colors, and plenty of other things). Although if someone was going to tweak things on such a low level, you'd think theyd be able to cope pretty well. Normal users arent really going to travel into this realm unless they know what theyre doing. |
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Sun 05 Sep 2004 06:21 PM (UTC) |
Message
| Yeah, I figured it wouldn't be easy, if at all possible. The reason why I sort of need this, is because I do not allow blinking in players titles, but italics is fine. Its just I can't tell the difference. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Poromenos
Greece (1,037 posts) Bio
|
Date
| Reply #5 on Sun 05 Sep 2004 10:38 PM (UTC) |
Message
| Then why do you ban people from using it? :P It's like IRC where people kick you out if you use color. If you don't like color, disable it in your IRC client. I hate that. |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Sun 05 Sep 2004 11:09 PM (UTC) |
Message
| That really isn't the whole point though, heh. I'd like to see what text is italic or blinking.
I suppose I should remove the blink tags from mortals helpfiles though. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #7 on Mon 06 Sep 2004 10:24 PM (UTC) |
Message
| If you just want to detect that someone is using blinking, and you don't allow it, then a "catch-all" trigger could catch every line (or for speed, the types of lines you expect), then quickly run it through a loop that uses GetStyleInfo. If the style run type is blinking, then you could do a world.note (eg. -- WARNING, the word "blah" is in blinking style).
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #8 on Tue 07 Sep 2004 01:26 AM (UTC) |
Message
| Yeah, might as well just hide the color tags from mortals though. I don't have time to deal with enforcement, I'm pretty much always coding. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Meerclar
USA (733 posts) Bio
|
Date
| Reply #9 on Tue 07 Sep 2004 01:38 AM (UTC) |
Message
| Hiding the tags won't stop those that already know about them (or experiment to find them) from making use of them. Simple solution is add a lvl check for immortal to the blink tag in the code or just comment the blink functionality. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | 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.
25,475 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top