Replies: 1 comment
-
It is a bug of BBCodeText, will reply here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi rexrainbow ,
function test_code(scene)
{
let t1='[area=1][hit me][/area]';
let t2='123456';
let txt = scene.add.rexBBCodeText(100,100,t1);
txt.setInteractive().on('areaclick',()=>{txt.setText(t2)});
}
I run the test code.
If I click [hit me], txt will update to 123456. But when I move the mouse. It will show following error message.
How to fix?
///////////////
chunk-W2GC5U5I.js?v=875fd306:1972 Uncaught TypeError: Cannot read properties of null (reading 'data')
at CanvasText.OnAreaOverOut (chunk-W2GC5U5I.js?v=875fd306:1972:49)
at BBCodeText.emit (phaser.js?v=875fd306:99:45)
at InputPlugin2.processMoveEvents (phaser.js?v=875fd306:59158:34)
at InputPlugin2.update (phaser.js?v=875fd306:58636:41)
at InputManager2.updateInputPlugins (phaser.js?v=875fd306:57906:55)
at InputManager2.onMouseMove (phaser.js?v=875fd306:58060:26)
at HTMLCanvasElement.onMouseMove (phaser.js?v=875fd306:65518:33)
////////////
chunk-W2GC5U5I.js?v=875fd306:1959 Uncaught TypeError: Cannot set properties of null (setting 'isDown')
at CanvasText.OnAreaOverOut (chunk-W2GC5U5I.js?v=875fd306:1959:64)
at CanvasText. (chunk-W2GC5U5I.js?v=875fd306:1926:19)
at BBCodeText.emit (phaser.js?v=875fd306:95:45)
at InputPlugin2.processOverOutEvents (phaser.js?v=875fd306:59378:36)
at InputPlugin2.update (phaser.js?v=875fd306:58637:41)
at InputManager2.updateInputPlugins (phaser.js?v=875fd306:57906:55)
at InputManager2.onMouseMove (phaser.js?v=875fd306:58060:26)
at HTMLCanvasElement.onMouseMove (phaser.js?v=875fd306:65518:33)
Beta Was this translation helpful? Give feedback.
All reactions