This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| tutorial:sdt-adding-a-new-icon [2025/03/08 23:14] – created admin | tutorial:sdt-adding-a-new-icon [2025/03/09 00:16] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Adding a New Icon ====== | + | ====== Adding a New Icon (SDT) ====== |
| Authors: Vawser | Authors: Vawser | ||
| Line 5: | Line 5: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| * Batch Scripts from [[tutorial: | * Batch Scripts from [[tutorial: | ||
| - | ===== Guide ===== | + | ===== Tutorial |
| + | In this tutorial, we will be adding a new icon, specifically icon ID '' | ||
| + | The same instructions apply for any icon ID, so substitute '' | ||
| + | |||
| + | ==== 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 '' | ||
| + | |||
| + | Unpack the '' | ||
| + | |||
| + | You can edit the '' | ||
| + | |||
| + | Within the '' | ||
| + | * **SubTexture**: | ||
| + | * **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 '' | ||
| + | |||
| + | === Specifics === | ||
| + | These are the specific actions you should take for this tutorial: | ||
| + | - Unpack the '' | ||
| + | - Open the '' | ||
| + | - Duplicate the SubTexture line with '' | ||
| + | - Change the name attribute to '' | ||
| + | - Change the '' | ||
| + | - Change the '' | ||
| + | - Repack the '' | ||
| + | |||
| + | ==== Image ==== | ||
| + | === General === | ||
| + | Edit the icon file found within the '' | ||
| + | |||
| + | === Specifics === | ||
| + | - Unpack the '' | ||
| + | - Open the '' | ||
| + | - The icon has been placed a placed at x-coordinate 0 and y-coordinate 2048, covering the x-coordinate space to 256, and the y-coordinate space to 2304. Create your new icon within that square. | ||
| + | - Save the '' | ||
| + | - Repack the '' | ||
| + | |||
| + | ==== Interface ==== | ||
| + | === General === | ||
| + | The new icon as defined in the shoebox layout needs to be explicitly added to all relevant '' | ||
| + | |||
| + | You need to edit the following '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | |||
| + | You should use the batch scripts as found in [[tutorial: | ||
| + | |||
| + | To add a new icon, you to define and the display it within the GFX file. | ||
| + | |||
| + | To define a new icon, you need to define a new '' | ||
| + | |||
| + | To display a new icon, you need to add three new selements to a '' | ||
| + | - **RemoveObject2Tag**: | ||
| + | - **PlaceObject3Tag**: | ||
| + | - **ShowFrameTag**: | ||
| + | |||
| + | The reason it is done like this is because the '' | ||
| + | |||
| + | Note, the '' | ||
| + | |||
| + | === 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 '' | ||
| + | |||
| + | == Defining the Texture == | ||
| + | - With the '' | ||
| + | - You will find the '' | ||
| + | - In the new '' | ||
| + | - In the new '' | ||
| + | - In the new '' | ||
| + | - In the new '' | ||
| + | |||
| + | == Displaying the Texture == | ||
| + | - With the '' | ||
| + | - You will find a '' | ||
| + | - Duplicate both the '' | ||
| + | - Change the '' | ||
| + | |||
| + | == Save === | ||
| + | - Convert the '' | ||
| ===== Source ===== | ===== Source ===== | ||
| [[https:// | [[https:// | ||