Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/critique-gaming/defold-resize-scripts
Script that rescales a font in all GUI files of a Defold project
https://github.com/critique-gaming/defold-resize-scripts
defold
Last synced: 11 days ago
JSON representation
Script that rescales a font in all GUI files of a Defold project
- Host: GitHub
- URL: https://github.com/critique-gaming/defold-resize-scripts
- Owner: critique-gaming
- Created: 2020-06-19T08:37:15.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-27T07:24:59.000Z (over 4 years ago)
- Last Synced: 2024-11-21T03:51:49.698Z (2 months ago)
- Topics: defold
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scripts for resizing GUIs in Defold
## Setup
Install Python 3. Then:
```
pip install deftree
```## Resize fonts project-wide in Defold
```
python resize_font.py
```This will look through all .gui files for text nodes with font `` and
scale them by ``.**This doesn't support game object labels. Feel free to submit a PR**
## Resize GUI to a different design size
```
python resize_gui.py
```This will look through all .gui files and scale all measurements (position, size, slice9)
by ``. Use this after you changed your project's design
resolution and after you re-exported all the assets at the new resolution.