Modding:Creating Item Icons: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 15: Line 15:
This is a 64x64px square tile that will be seen in the inventory and hotbar.
This is a 64x64px square tile that will be seen in the inventory and hotbar.


It is part of an atlas. This part requires code
It is part of an atlas. The atlas requires code to register in the game(see below).


== Folder Structure of Icons ==
== Folder Structure of Icons ==
Line 32: Line 32:


MySweetMod\Public\MySweetMod\GUI '''Icons_Items.lsx goes here. This tells the game what size the atlas is, where the image is on the atlas and what name the icon has to link it all up.'''
MySweetMod\Public\MySweetMod\GUI '''Icons_Items.lsx goes here. This tells the game what size the atlas is, where the image is on the atlas and what name the icon has to link it all up.'''
== Sample Code ==
If your mod uses only one icon and has a 64x64 atlas, you can use this:
               <node id="IconUV">
                   <attribute id="MapKey" type="FixedString" value="CSS_SharArmory_SharLogo"/> 1
                   <attribute id="U1" type="float" value="0.0"/> Left side of icon
                   <attribute id="U2" type="float" value="1.0"/> Right side of icon
                   <attribute id="V1" type="float" value="0.0"/> Top side of icon
                   <attribute id="V2" type="float" value="1.0"/> Bottom side of icon
                   </node>


== Tools to Create Icons ==
== Tools to Create Icons ==
Line 44: Line 61:
- [https://www.nexusmods.com/baldursgate3/mods/492 Visible Shields] - if you have made a shield, this will make it visible in the respec screen.
- [https://www.nexusmods.com/baldursgate3/mods/492 Visible Shields] - if you have made a shield, this will make it visible in the respec screen.


- [https://www.nexusmods.com/baldursgate3/mods/3862 Mod Builder] will generate LSX code and folder structure for you.
- [https://www.nexusmods.com/baldursgate3/mods/249 Sample Equipment Mod] has a template for icons that still works.
 
- [https://www.nexusmods.com/baldursgate3/mods/3862 Mod Builder] will generate LSX code and folder structure for you. It is recommended you use this over the sample equipment one, as its atlas is more compact, and few mods add 54+ icons.


== Basic guide to create icons ==
== Basic image editing guide to create icons ==


* Install the [https://www.nexusmods.com/baldursgate3/mods/238 Custom Backgrounds] background mod  
* Install the [https://www.nexusmods.com/baldursgate3/mods/238 Custom Backgrounds] background mod  

Navigation menu