|
wrym Magician
Joined: 06 Jul 2007 Posts: 349 Location: The big palace, My own lil world
|
Posted: Wed Jun 03, 2009 1:03 am
Multi-state button/trigger coping behavior |
1) from blank session import the following code
Code: |
<class name="test" id="890">
<button type="Toggle" color="lime" priority="8841" id="884">
<caption>0</caption>
<value>script stuff for state 0</value>
<button color="red" id="885">
<caption>1</caption>
<value>script stuff for state 1</value>
</button>
</button>
<trigger priority="8860" id="886">
<pattern>funnystate1</pattern>
<value>script stuff for state 1</value>
<trigger>
<pattern>funnystate2</pattern>
<value>script stuff for state 2</value>
</trigger>
</trigger>
</class>
|
Multi state button and multi state trigger that do... nothing.
2) right click on the trigger > copy
3) right click on the test class > paste
4) I get no duplicate trigger message, this is actually 3rd or 4th thing I noticed
5) right click on the button > copy
6) right click on the test class > paste
7) click on a trigger, then click the pasted button, notice color is now gray, and in the tree view notice the button state 1 caption just "1" not "1:1" as in the original
8) click on the xml tab
9) right click on the test class > paste, notice xml shows color="lime"
10) click on any other setting, click back to that button, xml now shows color="gray" |
|
_________________ "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 |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Jun 03, 2009 4:35 pm |
Something similar also happens with gauge buttons. I was going to post about that myself today. I think that in gauge buttons the copy/paste is swapping the low warning color with the background color.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Wed Jun 03, 2009 4:35 pm |
Something similar also happens with gauge buttons. I was going to post about that myself today. I think that in gauge buttons the copy/paste is swapping the low warning color with the background color.
|
|
|
|
|
|