Site Tools


tutorial:sdt-adding-a-new-icon

This is an old revision of the document!


Adding a New Icon

Authors: Vawser

Tools

Tutorial

In this tutorial, we will be adding a new icon, specifically, icon ID 1099.

The same instructions apply for any icon ID, so substitute 1099 for your actual icon ID when reading the instructions below.

Shoebox Layout

General

To start with, the new icon needs to be added to the shoebox layout files that are used to define the icon atlases.

To do this, copy the 01_common.sblytbnd.dcx file into your mod structure. It should be placed like so: <mod name>\menu\hi.

Unpack the 01_common.sblytbnd.dcx file with WitchyBND. This will result in a folder called 01_common-sblytbnd-dcx, containing all the layout files.

You can edit the layout files with a text editor (Notepad++ is used during this tutorial).

Within the layout file, the following terms are:

  • SubTexture: this is a definition for a subtexture within the overall image file.
  • name: this is the internal name of the subtexture, and contains the icon ID.
  • x: this is the x coordinate the subtexture starts from (assuming 0 is left edge of image).
  • y: this is the y coordinate the subtexture starts from (assuming 0 is top edge of image).
  • width: this is the width of the subtexture (e.g. x + width is the right edge of the icon)
  • height: this is the height of the subtexture (e.g. y + height is the bottom edge of the icon).

Once the the layout files have been edited, you can repack the file by using WitchyBND with the 01_common-sblytbnd-dcx folder, which will place the edited layout files into a new 01_common.sblytbnd.dcx.

Specifics

These are the specific actions you should take for this tutorial:

  1. Unpack the 01_common.sblytbnd.dcx file.
  2. Open the SB_Icon.layout file.
  3. Duplicate the SubTexture line with MENU_ItemIcon_01100.png as its name, placing the new line above it.
  4. Change the name attribute to MENU_ItemIcon_01099.png.
  5. Change the x attribute to 0.
  6. Change the y attribute to 2048
  7. Repack the 01_common.sblytbnd.dcx file.

Interface

General

The new icon as defined in the shoebox layout needs to be explicitly added to all relevant GFX files.

You need to edit the following GFX files:

  1. 01_000_FE.gfx

Specifics

These are the specific actions you should take for this tutorial.

Note this only covers the HUD, e.g. 01_000_FE, you'll need to do the same process for all of the GFX files as listed in the general section.

Source

tutorial/sdt-adding-a-new-icon.1741476707.txt.gz · Last modified: by admin