Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Feb 02, 2009 1:16 am   

What do I need to do to get the background to come over with the captured text?
 
If I do:

Code:

<trigger priority="93170" regex="true" id="9317">
  <pattern>^(test)</pattern>
  <value>#cw gray,firebrick
#cap Channels</value>
</trigger>


I see the text in the main window with the red 'firebrick' background, but in the Capture window it has lost it's background color. How do I capture it in the Capture window with the background color intact?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Mon Feb 02, 2009 1:45 am   
 
What I do is put my color triggers in a module so all my windows can see them, then they just get recolored in the new window.

in your example you could also use:

#WIN Channels {<color gray,firebrick>%line</color>}
_________________
Discord: Shalimarwildcat
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Feb 02, 2009 2:02 am   
 
That would work if I did my coloring and capturing with the same trigger. Unfortunately, I do the coloring with one trigger and it may or may not be captured to the other window depending on the text by the other trigger.
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Mon Feb 02, 2009 2:41 am   
 
But his first suggestion, putting all your colouring triggers in a module that can be seen by all the windows that you want coloured, should work just fine.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Feb 02, 2009 2:48 am   
 
How would I do that?
Reply with quote
gamma_ray
Magician


Joined: 17 Apr 2005
Posts: 496

PostPosted: Mon Feb 02, 2009 3:40 am   
 
In the settings editor, use the "New" button to create a new module. Under "packages enabled for this module", check the names of the package(s) containing the windows you want to highlight text in. Then go to those windows and check the package containing containing your new module. Then move your highlighting triggers over to your new module.

Edit: Also remember that if you're using variables which are stored in those windows, they won't be visible outside the window, so best to move that to an accessible module, too.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Feb 02, 2009 5:21 am   
 
That seems overly complicated to remedy the background color not being captured. Additionally the coloring requires a large database which is specific to the main module. I'm not sure that ripping that out and putting it in another module would work since the database needs to be maintained by the other package.

Why does the text color come over fine, but not the background color? I don't understand why this is this a problem in the first place?

Would using MXP be a way around this issue with #cw?
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Tue Feb 03, 2009 5:43 pm   
 
Should I post this in the bug section? It seems like a bug that the foreground color makes it over but the background color doesn't. I can't image it was done that way intentionally.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Feb 03, 2009 9:41 pm   
 
There is no 'bug' section. Bugs with the public version can be posted here.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Wed Feb 04, 2009 12:41 am   
 
Sorry, I meant the Beta section.

So do I call this a bug?
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net