Difference between revisions of "Adding New Icons"

From Divinity Engine Wiki
Jump to: navigation, search
m (Notes:)
(Provided/clarified information on using icon names.)
Line 25: Line 25:
 
== Notes: ==
 
== Notes: ==
 
* This same process can be used to add custom portraits.
 
* This same process can be used to add custom portraits.
* Skills/items/statuses are assigned icons in the stats editor. There's a field for the icon name. The icon names you use are the entry names of the icon in your atlas sheet. To find this you can right click on entry names of your imported icons within the texture atlas editor and copy the name to make it even easier.
+
* The icon names you use are the entry names in your texture atlas sheet. Within the texture atlas editor, you can right click on an entry and select "Copy name to clipboard" to make the process easier.
 +
* Skills and statuses are assigned icons in the stats editor. Root templates can also be assigned an icon.
  
 
== Optional: ==
 
== Optional: ==

Revision as of 22:10, 17 December 2017

Adding new icons requires a bit of preparation, but once the initial setup is complete, adding additional icons is quick and easy.

Preparing Your Icon Images

  1. Save your individual icons in a size and format supported by the Texture Atlas Editor.
  • Support sizes are 16x16, 32x32, 64x64, 128x128, 256x256.
  • Supported formats are .png, .tga, and .dds.
  1. Place your images in a directory you'll have easy access to later.
  2. In the Resource Manager, create a package to add your texture to later.

Preparing the Texture Atlas file:

  1. Open the Texture Atlas Editor.
  2. Click File -> New.
  3. Select "Public/MyModName_GUID/GUI" as the location for your .lsx file (create the GUI folder if it doesn't exist).
  4. Select a name for your texture file, and select an ideal location inside your mod's Assets folder (i.e. "Data/Public/MyModName_GUID/Assets/Textures").
  5. Select the size of the individual icons and the size of the image.
  6. Select the package you created previously, then click Save.
  7. The Texture Atlas Editor should create a blank texture (.dds) file at the path specified previously.

Adding Atlas Entries:

  1. Click Edit -> Add Entries.
  2. Navigate to where you placed your individual icon images.
  3. Select your icons add them. All of the new icon entries should be automatically added to your texture file.
  4. Save.

Notes:

  • This same process can be used to add custom portraits.
  • The icon names you use are the entry names in your texture atlas sheet. Within the texture atlas editor, you can right click on an entry and select "Copy name to clipboard" to make the process easier.
  • Skills and statuses are assigned icons in the stats editor. Root templates can also be assigned an icon.

Optional:

Texture files can be manually packed and created. Possible software for doing that is: