FAQ entry

Keywords: All, efile, interface,

How can I add flags, or replace flags in my EFile?

Each flag in the flag_med.png should be 21x14 px, and 12x9 px in two rows (so 12x18) in the flag_small.png. These two png files are defined in the local opendat folder. The exact dimensions of the OPENDAT elements are defined at Graphics Specs.

The number of total flags (basicaly the number of the used nations) is defined by the nations.txt, thus if you want to add a new flag, you should update also your EFile’s Nations.txt adding a line with the country name for your new flag, at the end of the countries listed below the line: * Nations.
If you replace a nation, e.g. added “Thailand” instead of “Czechosloviakia”, you should edit the line having Czechosloviakia and retype as Thailand. The point is the number of nations in the nations.txt and the used graphical elements in the opendat file should be syncronized.

If you need emtpy template files, just download Templates Pack including a collection of transparent png files with gridlines that you can use as a tool to edit the different OPENDAT graphics files, including flags. This template package also contains hundreds of individual flags. Just don’t forget to remove this gridline layer and the alpha channel transparency at the end of the procedure, as OpenGen supports 24-bit PNG files with no alpha channel.