dialogic-godot / dialogic

💬 Create Dialogs, Visual Novels, RPGs, and manage Characters with Godot to create your Game!
https://dialogic.pro
MIT License
3.43k stars 206 forks source link

Fixing relative margin scale #2229

Closed coppolaemilio closed 2 weeks ago

coppolaemilio commented 2 weeks ago

The calculation of the margin based on the editor scale and the new godot editor theme were not properly set (used magic numbers).

Before

image

After

image
coppolaemilio commented 2 weeks ago

Should probably be good to start using EditorInterface.get_editor_scale() and replace DialogicUtil.get_editor_scale(). I'll add it to this same PR