Results 1 to 6 of 6

Thread: [Suggestion] DOTAItemImage and DOTAAbilityImage

  1. #1
    Basic Member
    Join Date
    Mar 2014
    Posts
    15

    [Suggestion] DOTAItemImage and DOTAAbilityImage

    Similar to DOTAHeroImage but for Items and Abilities.

  2. #2
    Basic Member
    Join Date
    Jan 2012
    Posts
    144
    Ye I already suggested this in http://dev.dota2.com/showthread.php?t=171257

  3. #3
    Basic Member
    Join Date
    Mar 2014
    Posts
    15
    Is there any temporary solution to show item and ability icon?
    Last edited by ais; 06-28-2015 at 10:38 AM.

  4. #4
    Basic Member zedor's Avatar
    Join Date
    Jun 2013
    Posts
    39
    Download GCFScape and then open \dota 2 beta\game\dota\pak_01.dir with it. The images are located in panorama\images\spellicons\ and panorama\images\items, so that's where you get the image names.

    To show in XML you can do:
    Code:
    <Image src="s2r://panorama/images/spellicons/abaddon_aphotic_shield_png.vtex" />
    <Image src="s2r://panorama/images/items/abyssal_blade_png.vtex" />
    Alternatively, you can use something like this in CSS:
    Code:
    #TestImage
    {
    	width: 64px;
    	height: 64px;
    	background-image: url("s2r://panorama/images/spellicons/abaddon_aphotic_shield_png.vtex");
    	background-repeat: no-repeat;
    	background-size: 100% 100%;
    }
    I assume the link works in JS as well.

    There's also the Abilities.GetAbilityTextureName( integer nEntityIndex ), to which you append the _png.vtex to get the name, incase you need something like that.

  5. #5
    Basic Member
    Join Date
    Mar 2014
    Posts
    15
    Thanks. I find out you can also use this

    <Image src="file://{images}/spellicons/abaddon_aphotic_shield.png"/>

    <Image src="file://{images}/items/abyssal_blade.png"/>

  6. #6
    nice one

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •