Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error

Button passEvents Bug? - Printable Version
The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 550 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 550 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 811 - File: global.php PHP 8.1.30 (FreeBSD)
File Line Function
/global.php 811 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 26 - File: global.php(872) : eval()'d code PHP 8.1.30 (FreeBSD)
File Line Function
/global.php(872) : eval()'d code 26 errorHandler->error
/global.php 872 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.30 (FreeBSD)
File Line Function
/printthread.php 165 errorHandler->error



Official Murl Engine Forum
Button passEvents Bug? - Printable Version

+- Official Murl Engine Forum (https://murlengine.com/forum)
+-- Forum: Murl Engine (https://murlengine.com/forum/forumdisplay.php?fid=5)
+--- Forum: General (https://murlengine.com/forum/forumdisplay.php?fid=8)
+--- Thread: Button passEvents Bug? (/showthread.php?tid=196)



Button passEvents Bug? - Stefan - 17 Jul 2014

Hello, me again!

I ran into a strange issue when using different cameras with different depth orders and Button nodes. There are four cameras ordered from 0 to 3 (background, main, interface, popup) for a proper layering. Everything works fine when the Buttons do not pass events. However, setting passEvent to true for a single Button results in the Button being pressed whenever there is an event "above" it, even if it is covered by another Button at the event position. This only happens when depth ordering is done by the cameras and not within a single camera state where Transforms are used for depth ordering.

<CameraState cameraId="background_camera"/>
        
<FixedParameters diffuseColor="1.0f, 1.0f, 1.0f, 1.0f">
 <Button upStateChildIndex="0" downStateChildIndex="1" hoverStateChildIndex="2" posX="-500" sizeX="500" sizeY="500">
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
  <PlaneGeometry frameSizeX="400" frameSizeY="400" materialSlot="2"/>
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
 </Button>
</FixedParameters>
        
<CameraState cameraId="main_camera"/>
        
<FixedParameters diffuseColor="0.0f, 0.0f, 1.0f, 1.0f">
 <Button upStateChildIndex="0" downStateChildIndex="1" hoverStateChildIndex="2" posX="-300" sizeX="500" sizeY="500" passEvents="yes">
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
  <PlaneGeometry frameSizeX="400" frameSizeY="400" materialSlot="2"/>
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
 </Button>
</FixedParameters>
        
<CameraState cameraId="interface_camera"/>
        
<FixedParameters diffuseColor="0.0f, 1.0f, 0.0f, 1.0f">
 <Button upStateChildIndex="0" downStateChildIndex="1" hoverStateChildIndex="2" posX="-100" sizeX="500" sizeY="500">
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
  <PlaneGeometry frameSizeX="400" frameSizeY="400" materialSlot="2"/>
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
 </Button>
</FixedParameters>
        
<CameraState cameraId="popup_camera"/>
        
<FixedParameters diffuseColor="1.0f, 0.0f, 0.0f, 1.0f">
 <Button upStateChildIndex="0" downStateChildIndex="1" hoverStateChildIndex="2" posX="100" sizeX="500" sizeY="500">
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
  <PlaneGeometry frameSizeX="400" frameSizeY="400" materialSlot="2"/>
  <PlaneGeometry frameSizeX="500" frameSizeY="500" materialSlot="2"/>
 </Button>
</FixedParameters>


The second Button in this example will also react when pressing one of the Buttons above.


RE: Button passEvents Bug? - dizzy - 18 Jul 2014

Yes, that's a bug.

The fix is done and will be included in the next update, which is scheduled for the beginning of next week.

dizzy