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
kkerwin
Beginner


Joined: 19 Jun 2007
Posts: 23

PostPosted: Wed Jul 04, 2007 2:29 pm   

Toggling Class Status in Another Window
 
Hi, I have a series of classes in a side window from the main one. I want to be able to enable and disable these classes (in the side window) from the main window. The normal

Code:
#CLASS Classname 1


etc does not work from the main window, because it looks for the class with Classname within the main window.

Are ideas on getting this to work? Thanks in advance!
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Wed Jul 04, 2007 5:56 pm   
 
how about something like(untested)
Code:
windowname:#CLASS Classname 1
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
kkerwin
Beginner


Joined: 19 Jun 2007
Posts: 23

PostPosted: Wed Jul 04, 2007 6:22 pm   
 
That did the trick. It did, however, steal the focus away from the main window and put it on the side window.

In order to restore focus to the main window, I did:

SideWindow:#CLASS Classname 1; MainWindow:#NOOP

Thanks for the help!
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Wed Jul 04, 2007 7:35 pm   
 
I'm not sure ( not at home so can't test) but I think if you prefix the the whole thing which a colon it doesn't take focus away;
ala
Code:
:windowname:#CLASS Classname 1



EDIT:sure enough apparently it does
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
kkerwin
Beginner


Joined: 19 Jun 2007
Posts: 23

PostPosted: Sun Jul 08, 2007 6:30 am   
 
Hmm. That works for me with normal text, but not with commands:

Code:

:side:blah


Side goes, "blah".

Code:

:side:#echo blah


Main goes, "blah".

Question Question Question Question Question

That doesn't make sense. Ideas?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jul 08, 2007 6:47 am   
 
Use #SAY. #ECHO goes to the currently active window (usually the main window), #SAY and #SHOW go where you tell it to.
_________________
EDIT: I didn't like my old signature
Reply with quote
kkerwin
Beginner


Joined: 19 Jun 2007
Posts: 23

PostPosted: Sun Jul 08, 2007 3:38 pm   
 
Thank you again. ;-)
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