Ad placeholder

Modding:Creating Item Icons: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 35: Line 35:
== Sample Code ==
== Sample Code ==
If your mod uses only one icon and has a 64x64 atlas, you can use this:
If your mod uses only one icon and has a 64x64 atlas, you can use this:
 
<node id="TextureAtlasIconSize">
               <node id="IconUV">
                    <attribute id="Height" type="int64" value="64"/>
 
                    <attribute id="Width" type="int64" value="64"/>
                   <attribute id="MapKey" type="FixedString" value="CSS_SharArmory_SharLogo"/> 1
                </node>
 
                <node id="TextureAtlasPath">
                   <attribute id="U1" type="float" value="0.0"/> Left side of icon
                    <attribute id="Path" type="LSString" value="Assets/Textures/Icons/MySweetMod_Icons.dds"/>
 
                    <attribute id="UUID" type="FixedString" value="''GENERATE NEW UUID HERE''"/>
                   <attribute id="U2" type="float" value="1.0"/> Right side of icon
                </node>
 
              <node id="TextureAtlasTextureSize">
                   <attribute id="V1" type="float" value="0.0"/> Top side of icon
                    <attribute id="Height" type="int64" value="64"/>
 
                    <attribute id="Width" type="int64" value="64"/>
                   <attribute id="V2" type="float" value="1.0"/> Bottom side of icon
                </node>
 
<node id="IconUV">
                   </node>  
<attribute id="MapKey" type="FixedString" value="MySweetMod_Item_Icon"/> 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 ==

Navigation menu