GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Width and Height properties in conditions for text objects are missing

Open LousyMolars opened this issue 1 year ago • 4 comments

Would be useful to directly access width and height of text objects (vector fonts, bbtext, bitmap text), instead of using variables for this.

image

LousyMolars avatar May 17 '24 18:05 LousyMolars

Can you please assign this to me? @LousyMolars

Maanit491 avatar Oct 09 '24 13:10 Maanit491

Can you please assign this to me? @LousyMolars

Sorry, I'm just a reporter, don't know how to proceed to next steps with code contribution. Looks like these issues are not assigned usually? Maybe core developers in discord chat can help.

LousyMolars avatar Oct 09 '24 14:10 LousyMolars

Text Object does not have width and height this is replaced with the equivalent Wrapping width and height which does the same thing. You should probably close this issue

AnseloOriginal avatar Apr 19 '25 01:04 AnseloOriginal

Text object has width and height as other objects. The problem is that sprite for example has direct access to width and height in condition, but text width/height needs a buffer variable to be used as condition. Issue is still relevant.

Wrapping width is used for multi-line text, that's why there is no wrapping height there.

LousyMolars avatar Apr 21 '25 14:04 LousyMolars