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 41: Line 41:
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. This file is NOT converted to lsf!'''
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. This file is NOT converted to lsf!'''


== Sample Code ==
== Sample Code for _merged.lsf ==
 
<?xml version="1.0" encoding="utf-8"?>
<save>
    <version major="4" minor="0" revision="9" build="328" />
    <region id="TextureBank">
        <node id="TextureBank">
            <children>
                <node id="Resource">
                    <attribute id="ID" type="FixedString" value="''GENERATE NEW UUID''" />
                    <attribute id="Localized" type="bool" value="False" />
                    <attribute id="Name" type="LSString" value="MySweetMod_Icons" />
                    <attribute id="SRGB" type="bool" value="True" />
                    <attribute id="SourceFile" type="LSString" value="Public/CmdrSkeleOutfits/Assets/Textures/Icons/MySweetMod_Icons.dds" />
                    <attribute id="Streaming" type="bool" value="True" />
                    <attribute id="Template" type="FixedString" value="Icons_Items" />
                    <attribute id="Type" type="int64" value="0" />
                </node>
            </children>
        </node>
    </region>
</save>
 
== Sample Code for Icons_Items ==
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:


Navigation menu