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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri May 29, 2009 3:15 am   

[3.08] Toggling buttons only sends one command.
 
1) Open the untitled session, open the package editor, paste the following XML into the treeview:

Code:
<button priority="10" id="1">
  <caption>state 0</caption>
  <value>state 0 command</value>
  <expr>@var</expr>
  <button id="2">
    <caption>state 1</caption>
    <value>state 1 command</value>
  </button>
</button>


2) Type var=1 on the command line. See the caption change to "state 1" and "state 0 command" is sent.
3) Type var=0 on the command line. See the caption change to "state 0", so that part's working, but "state 0 command" is sent again. One of the two should have sent "state 1 command".
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
wrym
Magician


Joined: 06 Jul 2007
Posts: 349
Location: The big palace, My own lil world

PostPosted: Fri May 29, 2009 8:28 pm   
 
Well, your button is a push button. If i convert it to a toggle button i get it to work correctly.
_________________
"To the engineer, all matter in the universe can be placed into one of two categories: (1) things that need to be fixed, and (2) things that will need to be fixed after you've had a few minutes to play with them" - Scott Adams, The Dilbert Principle
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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