SC2Mapster Forums

Resources > Tutorials

[Texture] How to change resource icon

    #21 May 24, 2011 at 03:54 UTC - 0 likes

    Okay 2 hours of research and now I'm back with a question. When creating your icon what dimensions should it have?

    Edited Upon Found Stupidity:

    lol wow just noticed in original post one of the picture says its 64x64.

    Also as a note make sure you can a 4th dds file for the nobg. I've got an example pictures below showing the difference.

    Last edited May 24, 2011 by gamemore
    • mineraliconproblem.jpg
    • wrongimport.jpg
      Incomplete import for gas. ...
    • mineralinconfix.jpg
      Correctly done icon exchange.
    • fixedimport.jpg
      A proper import to change gas ...

    Marine Protocol
    Post a comment in the Marine Protocol Forum

    #22 Jul 13, 2011 at 03:27 UTC - 0 likes

    I am not having a good time with this..

    What are the correct modifications for the supply?

    Also can anyone tell me why Everytime I save and reload the map it overwrites my custom assets.txt with the default one?

    Thanks!

    #23 Aug 18, 2011 at 20:50 UTC - 0 likes

    Using 1.36, i've followed all those steps, but only the resource icon in the tooltips (of abilities, upgrades, etc.) changes, not the one in the top right. I'm using the custom resource, and i've succesfully changed its name, tooltip and now i'm trying to get the icons right (see screenshot below).

    Brilliant ideas anyone ? And yes, my custom resource is beer :D

    Edit: Fixed! The thing is, I had my Assets.txt say "UI/ResourceIconNoBackground3=Assets\Textures\..." Then I looked at TwoDie's stuff and Blizzard actually left out the "r" in "Background", meaning that the correct way to write it is: UI/ResourceIconNoBackgound3=Assets\Textures\...

    Can't believe we have to do all that to change a freaking icon though.

    Last edited Aug 18, 2011 by Deammer: fixed
    • Screenshot2011-08-18_03_41_13.png
      Custom resource icon not changed
    #24 Sep 24, 2011 at 00:04 UTC - 0 likes

    Once again, a new update for 1.4:
    Blizzard have fixed the typo in the property names.

    Where you previously had, for example
    UI/ResourceIconNoBackgound0=someimage.dds
    you now need
    UI/ResourceIconNoBackground0
    So, as an example to replace both resource icons and the zerg supply, I have used

    UI/ResourceIcon0=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIcon0_Prot=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIcon0_Terr=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIcon0_Zerg=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIconNoBackground0=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIconNoBackground0_Prot=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIconNoBackground0_Terr=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIconNoBackground0_Zerg=Assets\Custom Icons\icon-wood.dds
    UI/ResourceIcon1=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIcon1_Prot=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIcon1_Terr=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIcon1_Zerg=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIconNoBackground1=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIconNoBackground1_Prot=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIconNoBackground1_Terr=Assets\Custom Icons\icon-gold.dds
    UI/ResourceIconNoBackground1_Zerg=Assets\Custom Icons\icon-gold.dds
    UI/HeroPanelButtonNormal_Zerg=Assets\Textures\ui_heroicons_frame_normalpressed_terran.dds
    UI/HeroPanelButtonHover_Zerg=Assets\Textures\ui_heroicons_frame_normaloverpressedover_terran.dds
    


    #25 Sep 25, 2011 at 20:07 UTC - 0 likes

    @agouti: Go

    very good notice kind sir :)
    thank you!

    http://img27.imageshack.us/img27/8882/abasizedr.jpg

    #26 Jan 14, 2012 at 10:13 UTC - 0 likes

    Two simple questions:
    1. Why my resource icon (mineral) still default? =( What i'm doing wrong?
    http://img854.imageshack.us/img854/8913/resourcesr.png

    2. Where I can change resource tooltip on custom?
    thx

    Last edited Jan 14, 2012 by xxxNEARBYxxx
    #27 Jan 14, 2012 at 10:37 UTC - 0 likes

    @xxxNEARBYxxx: Go

    1.Remove Base.SC2Data folder.

    2.In text editor search for minerals stuff there

    #28 Jan 14, 2012 at 10:48 UTC - 0 likes
    Quote from TwoDie: Go

    1.Remove Base.SC2Data folder.

    No way. Cus icons in units costs changed on new icon... but it not changed icon on the top right resource panel. And way with removed Base.SC2Data not work also.

    Quote from TwoDie: Go

    2. text editor

    You mean F8 modul?

    Last edited Jan 14, 2012 by xxxNEARBYxxx
    #29 Jan 14, 2012 at 19:04 UTC - 0 likes

    @xxxNEARBYxxx: Go

    Ohh then you missing these lines:

    UI/ResourceIconNoBackground0_Prot=Assets\Custom Icons\YourPic.dds UI/ResourceIconNoBackground0_Terr=Assets\Custom Icons\YourPic.dds UI/ResourceIconNoBackground0_Zerg=Assets\Custom Icons\YourPic.dds

    Well with big letter A.

    Last edited Jan 14, 2012 by TwoDie
    #30 Jan 14, 2012 at 20:08 UTC - 0 likes

    @TwoDie: Go You my hero xD now it works.. but still cant find placement of resources tooltips for changing on custom.

    #31 Jan 14, 2012 at 22:39 UTC - 0 likes

    @xxxNEARBYxxx: Go

    F8 > Data Source: All Data (at top) > Filter: UI | (Any) > Click on ID collum > Search in ID collum: UI/ResourceETC'ETC'ETC and there you will find tooltips and names if necessery to you to change it.

    Last edited Jan 14, 2012 by TwoDie
    #32 Jan 14, 2012 at 23:11 UTC - 0 likes

    instead of all this stuff you can name the new icon texture like the original ones and don't have to edit the assets.txt

    A programmer started to cuss
    Because getting to sleep was a fuss
    As he lay in his bed
    Looping 'round in his head
    Was: while (!asleep()) sheep++;

    twitter.com/SC2IncomeWars
    facebook.com/SC2IncomeWars

    #33 Feb 01, 2012 at 00:28 UTC - 0 likes

    @agouti: Go

    Thanks for the update. I recently started working on this old map and needed your tip.

    Last edited Feb 01, 2012 by gamemore
    #34 Mar 15, 2012 at 21:01 UTC - 0 likes

    I can't get this to work with supply icon changes. Why?

    #35 Mar 18, 2012 at 04:39 UTC - 0 likes

    So after a good hour and a half, screwing with the assets.txt I have come to the conclusion that the supply icon is broken atm. I have been able to change almost everything but that, even changed the cooldown icon at one point...

    I tried the screwed up 2nd method and that got me no where and i've tried every iteration possible in my mind for the 1st method.

    #36 Jul 01, 2012 at 22:45 UTC - 0 likes

    Anyone know how to change supply?

    #37 Jul 04, 2012 at 10:22 UTC - 0 likes

    Hi,

    I changed both minerals and gas icons, they work pretty well, if I test my map from the editor. However, when I publish my map on battle.net and test it with my second computer/license, these icons appear as gray boxes. Does anyone know what that means ?

    Last edited Jul 04, 2012 by Oneiros333
    #38 Jul 06, 2012 at 12:58 UTC - 0 likes

    Does so have an idea how I could fix this ? :(

    #39 Dec 16, 2012 at 09:35 UTC - 0 likes

    So for supply icon change at top of the screen:

    Idk if necessery: UI/ResourceFrameColorBG=Assets\Textures\icon-supply_BG.dds

    These should be important:

    UI/ResourceFrameSupplyIcon=Assets\Textures\icon-supply-terran_nobg.dds UI/ResourceFrameSupplyIcon_Prot=Assets\Textures\icon-supply-protoss_nobg.dds UI/ResourceFrameSupplyIcon_Terr=Assets\Textures\icon-supply-terran_nobg.dds UI/ResourceFrameSupplyIcon_Zerg=Assets\Textures\icon-supply-zerg_nobg.dds

    #40 Apr 12, 2013 at 08:10 UTC - 0 likes

    I scanned this thread and it seems no one has mentioned this. You can change the resource icons without having to name your dds file something very particular to get the game to treat it as the original file.

    Just make a dds file for the icon and import it in to the root folder of your map. Mine are called dollarsign-bank.dds and dollarsign-cash.dds

    Then change the reference the map uses to display the icons. To do this open the data editor. Then open the tab Game UI Data, it is under Edit Advanced Data.

    Then open the item Default SC2 UI Settings. Open the UI Tab, and scroll down to almost the bottom. I am using Detail View. Here there are two items called, "UI: Resources - Icon" and "UI: Resources - Icon Background". Here you can type in the name of the dds files you want to use to replace the corresponding mineral types. Make sure the files are in the root directory of your map.

    Last edited Apr 12, 2013 by IggNight
    • resource-icons1.jpg
      Opening the Game UI Data Tab
    • resource-icons2.jpg
      Editing the references to your ...

You must login to post a comment. Don't have an account? Register to get one!