Skip to content

Script that rescales a font in all GUI files of a Defold project

Notifications You must be signed in to change notification settings

critique-gaming/defold-resize-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for resizing GUIs in Defold

Setup

Install Python 3. Then:

pip install deftree

Resize fonts project-wide in Defold

python resize_font.py <path_to_project_root> <name_of_font> <amount_to_scale>

This will look through all .gui files for text nodes with font <name_of_font> and scale them by <amount_to_scale>.

This doesn't support game object labels. Feel free to submit a PR

Resize GUI to a different design size

python resize_gui.py <path_to_project_root> <amount_to_scale>

This will look through all .gui files and scale all measurements (position, size, slice9) by <amount_to_scale>. Use this after you changed your project's design resolution and after you re-exported all the assets at the new resolution.

About

Script that rescales a font in all GUI files of a Defold project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages