godot icon indicating copy to clipboard operation
godot copied to clipboard

[4.0] Project converter: draw_string specifying optional arguments are not updated to include new argument order

Open nobuyukinyuu opened this issue 2 years ago • 0 comments

Godot version

4.0 stable

System information

Windows 10

Issue description

modulate in draw_color has moved 3 arguments down to make room for arguments involving size, clipping and alignment. Since optional parameters can't be skipped in gdscript (godotengine/godot-proposals#902), calls to this function should implement default values which represent best effort metrics similar to 3.x's default font if the font specified derived from default, or the size specified for the original DynamicFont. This means that the default size might be something different than the current default of 16. Qualifying the font may be nontrivial.

Steps to reproduce

Migrate project from 3.x to 4.0

Minimal reproduction project

n/a

nobuyukinyuu avatar Mar 05 '23 02:03 nobuyukinyuu