[GS] Icons.... not working?

MrTerror

Chieftain
Joined
Sep 30, 2019
Messages
10
Hello. There is a problem with icons in my mod!
Basically I created another building and wanted to simply add icons to it. I did it the same way i created previous ones, but... it dosen't work!

Can someone help me and tell what's wrong, please?
Here are screenshots:

(Working icons from the same mod)


(Not working icons in the same mod)


(There are the icons)

(Here is the code)


(And here are actions, they are the same in frontend and in-game)



So again, im losing my mind!!!!
Please tell me why it doesn't work :C
 
Before all, you have to go to Asset Manager and generate new textures for each DDS. The procedure: inside asset manager: New texture, choose the file in Path and in the Class field put: UserInterface

Then make the following directory and file.

upload_2022-2-2_19-29-6.png


upload_2022-2-2_19-29-51.png


Populate the file with dds and texture names (they have the same name) without extension.

Code:
<AssetObjects..XLP>
    <m_Version>
        <major>4</major>
        <minor>0</minor>
        <build>253</build>
        <revision>293</revision>
    </m_Version>
    <m_ClassName text="UITexture"/>
    <m_PackageName text="Icons"/>
    <m_Entries>
   
        <Element>
            <m_EntryID text="ICON_GREAT_EXPLORER_256"/>
            <m_ObjectName       text="ICON_GREAT_EXPLORER_256"/>
        </Element>
        <Element>
            <m_EntryID text="ICON_GREAT_EXPLORER_32"/>
            <m_ObjectName       text="ICON_GREAT_EXPLORER_32"/>
        </Element>
    (....................)
       
    </m_Entries>
    <m_AllowedPlatforms>
        <Element>WINDOWS</Element>
        <Element>LINUX</Element>
        <Element>MACOS</Element>
        <Element>IOS</Element>
        <Element>PS4</Element>
    </m_AllowedPlatforms>
</AssetObjects..XLP>

Finally, in the art.xml add icons to UITexture (don't duplicate, find UITexture) and fill relativePackagePaths with icons:

Code:
    <Element>
            <libraryName text="UITexture"/>
            <relativePackagePaths>
                <Element text="Icons"/>
            </relativePackagePaths>
        </Element>
 
Top Bottom