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


Joined: 07 Jan 2001
Posts: 18
Location: United Kingdom

PostPosted: Wed Feb 27, 2002 10:00 pm   

button from trigger - can we use bitmap?
 
I've been trying to create a button that will let me know when I'm resting in two ways. 1. By colouring last line of text received. 2. By making the button itself obvious.

Trigger so far:
Pattern - You make yourself comfortable and start to rest.

Commands:

#BU rest {rest} {look}
#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))


I'm stuck on getting the trigger button command to accept any of the internal bitmap names, e.g. SMILEY, CIRCG. I've read the help and tried all sorts of different syntaxes. The help seems to hint that what I want to do can be done when importing the button info from a textfile. Is this the only way? Oh, and should I want the button to remove itself after 4mins I guess I can just add this as a final command ?

#alarm +4:00 {#unbutton {rest};#show wake up and do something else}

Thanks in advance

Using 6.26a beta. (but I figure this isn't a bug, this is user error and hence not worthy of beta forum postage
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 11:37 pm   
 
Hmm playing about

#TRIGGER {You say, ~'1~'} {#UNBU button_id;#BUTTON 1 {ToggleButton1} {#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))} {} {} {button_val} {button_var} {SMILEY} {} {} {} {} {} {} {} {} {} {} "" {} {Tool_tip} {button_id}}

#TRIGGER {You say, ~'2~'} {#UNBU button_id;#BUTTON 1 {ToggleButton2} {#COLOR %eval( %color( hi)+%color( blink)+%color( rev)+%color( blue, grey))} {} {} {button_val} {button_var} {CIRCG} {} {} {} {} {} {} {} {} {} {} "" {} {Tool_tip} {button_id}}

Kinda works. The syntax thinks it sees an error but it works.

I cant seem to replace the button with a button without #UNBU'ttoning it.



TonDiening
Beta Upgrading to 6.26
Reply with quote
Ghola
Beginner


Joined: 07 Jan 2001
Posts: 18
Location: United Kingdom

PostPosted: Wed Feb 27, 2002 11:37 pm   
 
Gotta love finding the answer to your question whilst looking into something else.

Turns out there is a specific command to do this:

#NOOP %btnimage( rest, "CIRCG")


Yeap, %btnimage is the way to do it.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Feb 27, 2002 11:51 pm   
 
Neat!

I've never used the bitmaps before.

It'll add spice to some of the old trigger sets/view consoles I have.

Thanks for pointing that out.

TonDiening
Beta Upgrading to 6.26
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