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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
shalimar
GURU


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

PostPosted: Sat Mar 08, 2003 7:57 pm   

highlighting in child windows
 
What would be the easiest way to transfer a numver of color triggers to a child window as well as the ever expanding variable lists of things to be colored

Shalimar

AIM: shalimarwildcat
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat Mar 08, 2003 11:29 pm   
 
Maybe its simpler to put the capture trigger "lower" than the coloring triggers.

In the settings editor, if you view only triggers, choose Class: All, view->sort by->none, you will see the order of the triggers. Drag and drop the capture to a child window trigger lower than the colorizing triggers.

That way you do not have to worry about duplicates or errors in not updating a child window.

Ton Diening
Reply with quote
shalimar
GURU


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

PostPosted: Sun Mar 09, 2003 2:46 am   
 
hmm that doesnt seem to work but then im not using #CAP im using #WIN, perhaps i could have it copy the needed triggers and variables to the child window at connection and remove them on disconnect somehow

Shalimar

AIM: shalimarwildcat
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sun Mar 09, 2003 7:30 am   
 
Ah ok. Then do something like:

In the child window, you can refer to the variables of the main session.

Main session's name:MyCharacter
Main session's variable:MyListToColor

Child Window:#TRIGGER {{@MyCharacter.MyListToColor}} {#CW 71}

Ton Diening
Reply with quote
shalimar
GURU


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

PostPosted: Sun Mar 09, 2003 10:53 pm   
 
that works great, thanks

Shalimar

AIM: shalimarwildcat
Reply with quote
shalimar
GURU


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

PostPosted: Mon Mar 10, 2003 8:28 pm   
 
Ok something odd is happening, its working fine but it seems to have changed the defualt text color of the child window from 11 to 6, rather annoying

Shalimar

AIM: shalimarwildcat
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Mar 10, 2003 8:50 pm   
 
I haven't tested this but give this a try:

Sildaren:

quote:

If you want to avoid capturing the internal output of 'show triggers', you can use #WINDOW, instead of #CAPTURE
#TRIGGER {tells you,} {#WINDOW tell %trigger}
You need to enable the 'ansi trigger' option for the trigger in the settings editor, it will grab multicolored lines properly.



Ton Diening
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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