|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Nov 06, 2007 8:08 am
[2.10] Non focused window context issues |
I am actually going to put 2 different bugs in here since I think it the same thing causing it. When a window doesn't have focus some things dont quite work right.
The 2 I have found so far
1. Button captions do not update when window does not have focus
2. #T- seems to be unable to find its target
Procedure
1. Launch CMud
2. Close Sessions window (ESC)
3. Open Package Editor (CTRL-G)
4. Right-click in the tree panel
5. Paste in
Code: |
<?xml version="1.0" encoding="UTF-8" ?>
<cmud>
<window name="test" usesession="false">
<uid>{FF17A9E8-6112-4B20-BB07-9FEFA83A77D8}</uid>
<packages>untitled</packages>
<trigger name="test1" type="Alarm" priority="20" enabled="false">
<pattern>*1</pattern>
<value>#SHOW Fired
#ADD a 10
#ADD c 10
b=(!@b)
#T- test1</value>
</trigger>
<button priority="30">
<caption>%if(@b,@a,@c)</caption>
</button>
<var name="a">0</var>
<var name="b">1</var>
<var name="c">1</var>
</window>
</cmud> |
6. Set test window to right relative to untitled, and click save changes to make the window appear
7. Enter into the untitled windows command line
You will see Fired appears repeatedly in the test window, and the button never updates. As soon as you click the test window to give it focus the button updates, and the alarm finally shuts itself off as it was supposed to. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 06, 2007 5:22 pm |
Confirmed. Definitely looks like a bad context problem. I know that a lot of parts in CMUD use the "Current MUD Window" for a lot of operations and to send various window messages. Looks like it's sending the button refresh message to the wrong window. Added to bug list.
|
|
|
|
|
|