Posted by
| Poromenos
Greece (1,037 posts) bio
|
Message
| OK, first of all, let me suggest this: Could you store the original color just until all triggers have been matched, and then discard it? Also, in reference to your example, could each plugin match the original color first and then recolor it according to the plugin? How about a "match_on_original_color" option? You only need to store the style until the triggers are evaluated, which is only a short bit.
And yes, it is important that it matches on colour, since now I can't distribute the plugin to anyone without changing the colours each time, because i have colored my channels differently from other people.
Many people put guildtalks in their bios (mainly funny ones), and it would match on those too if you whoised them. As for coloring them, RoD cannot color bios so that doesn't worry me so far... I see the usefulness of your way, I just think that more people rely on their plugin matching the original color than matching a modified color...
There might be a small problem with coloring if you use my way, i.e. to store the original color and match per plugin, mainly because a plugin can color it one colour and another one can colour it another, but that would be done if it didn't match on color anyway, and it's better to match than not to match, in any case...
I think that the "match on original colour" option would be the best solution. You would store the original style temporarily, match on whichever colour the trigger needs, and then pass it on to the next trigger. You don't need to store one style per plugin, because one is the original colour and the other is the displayed colour, i.e. only two styles...
I feel that matching on the modified color hinders reusability, because many users could recolor their text.
I'd also like to know how other plugin writers feel about this, so please post your opinions :p |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | top |
|