Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Excerpt

Icons, flags and various other UI elements can be modded...

 

.img files

These are text files that list images and their "point of origin" offsets:

  • frontend.img – lists all images in the  frontend folder.
  • intfac.img – lists all images in the  intfac folder.

If you add, change or remove any images, you'll need to update these files.

The two numbers at the start of each line define the pixel offset to apply to the image when it's displayed on screen. This allows the position of the top-left corner of the image to be changed if required. For example, if you replace an existing image with a new image that has smaller or larger dimensions, you can use the offset to change where it appears so that it looks right on screen.

Note: Both files must be referenced in frontend.wrf. This tells Warzone to inspect the files and load all images that they list.

Burning oil resource images

The intfac_differentOil.img file defines the image sequence used to depict a burning oil resource on the radar mini map.

The cycle consists of 6 images (image_rad_burnres1.png → image_rad_burnres6.png) located in the  intfac folder:

As you can see, the images are tiny and they are also different sizes.

(question) Anyone know the format of this file?

warzone2100.png

This image is used as the application icon on some operating systems. It should be 128x128 pixels and PNG format.

Image Added

On Windows, you will need to convert it in to a .ico file (not sure where to put it though) and ensure there are alternate sizes defined (eg. 16x16, 32x32, etc).

frontend folder

This folder contains images that are mostly used for Menus & Screens, including game set-up screens.

Some advice when changing the contents of this folder:

  • Don't remove any images – the menus and screens in the game are hard-coded to use specific image files.
  • Don't change the size of images – their positions and sizes are all hard-coded in the C++ code and not easy to change.

 

Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

File locations

The images bundled with the game can be found here:

base.wz or base

images

frontend.img

  intfac_differentOil.img

  intfac.img

warzone2100.png

 frontend

<image files>

intfac

  <image files>

If you want to customise the images in a mod, use the following structure:

<your mod>.wz or <your mod>

images

frontend.img

intfac_differentOil.img

intfac.img

warzone2100.png

frontend

 <image files>

intfac

 <image files>

Obviously only include files you want to change.

Tip: You can get SVG format source images for many of the icons from the Warzone 2100 github repository.