Originaly made by Flaxbeard, then fixed by NIKA.
HoI4 DrawIO Converter is a tool to generate hoi4 focus file from drawio xml data.
Download exe file from github releases page
- Open draw.io then design natinal focus with square and arrows. Make sure that the boxes are located evenly spaced.
- Write focus titles in your square boxes. Both English and Japanese are allowed.
- Open Extras -> Edit Diagram then copy xml data
- Lanch exe file and paste the xml you copied into the textarea
- Click "Run Program" then you will get focus file and localisation file in output box which will be created.
Use pyinstaller to build exe file
pyinstaller DrawIoConverter.py --onefile --noconsole