View Full Version : Bug when using stateframe drophover and dice

May 12th, 2007, 14:49
I found a bug that occurs when you use the <stateframe> tag and either the <hover> or <drophover> tag and then drag dice over the control in question.

Here's my code:

<!-- The Box -->

<?xml version="1.0" encoding="iso-8859-1"?>
<root version="2.0">

<framedef name="thebox_normal">

<framedef name="thebox_drop">

<windowclass name="thebox">
<text>The Box</text>
<nobaseframe />

<!-- <script file="thebox/thebox.lua" /> -->

<panel name="thebox" modes="host,client">


What should happen is that when you hover some dice over the control, it should stop displaying the default frame and start displaying the special frame specified in the <drophover> tag. What actually happens is that part of the original frame is displayed and part of the special frame is displayed. The part of each that shows up changes depending on where you hold the dice. If you move the dice around over the control, you can see where some of each image gets displayed.

If you just use the plain old <hover> instead of <drophover>, it still has this problem, but only when you are dragging dice over the control. If you just hover the empty mouse cursor over it, it behaves correctly.

I guess it's possible that I'm doing something wrong here, so please let me know if this is a PIBCAK error ;)