4ian / GDevelop

🎮 Open-source, cross-platform 2D/3D/multiplayer game engine designed for everyone.
https://gdevelop.io
Other
11.68k stars 886 forks source link

Text box cannot be clicked #1042

Open PascalLadalle opened 5 years ago

PascalLadalle commented 5 years ago

Describe the bug

Text objects on a scene can be selected by clicking on the text. But if I make the text box bigger than the text, I cannot select the text object by clicking on an empty part of the box. Only the actual text can be used to select the text object.

Windows 10 GD5b66

4ian commented 5 years ago

I'm not actually sure if that's a feature or a bug ^^

PascalLadalle commented 5 years ago

I found it inconvenient but perhaps I would find it handy at other times! 😁 But empty text objects can't be selected directly then, no matter how big they are. 🤔

4ian commented 5 years ago

Good remark, that would be in favor of having the selection rectangle as the "hitbox" for selecting instances then :)

geetesh-gupta commented 4 years ago

How to proceed with this?

4ian commented 4 years ago

Make sure to fully understand the issue. Code is under newIDE/app/src/InstancesEditor/InstancesRenderer - take a look at how selection is handled. Might need a bit of refactoring and to dig more into how PIXI is used. Also see all the RenderedXXXInstance.js files.

Silver-Streak commented 1 year ago

Running through older issues to confirm what is still valid or not. I have confirmed this issue is still occurring in 5.1.157