Uncle
Warcraft Moderator
- Joined
- Aug 10, 2018
- Messages
- 7,866
I've searched around the forums with no luck, does anyone know of an organized list of each unit's respective icon? I mean something that's already filled out, not just a list of the filenames that you can pull from the mpq.
Edit: This is pretty useful: [Snippet] Ascii
It'd still be helpful to have a list of unit's Integer Id's and their Icons.
For example:
It would be great to have something like this:
I might be going about this the wrong way... But anyway, the idea is if you have a Unit then you can get it's Unit-Type Id
and then plug that into
to get it's RawCode. Same can be done for BTN, DISBTN, etc...
Edit: This is pretty useful: [Snippet] Ascii
It'd still be helpful to have a list of unit's Integer Id's and their Icons.
For example:
Code:
Archmage: Raw = (Hamg) Unit-Type Id = (123123123) Icon = ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp
Bloodmage: Raw = (Hblm) Unit-Type Id = (123123123) Icon = ReplaceableTextures\CommandButtons\BTNHeroBloodElfPrince.blp
etc...
It would be great to have something like this:
Lua:
function UnitInfoList()
Unit = {}
local id = 123123123 --Let's say this is Archmage's Unit-Type Id
Unit[id][RawCode] = "Hamg"
Unit[id][BTN] = "ReplaceableTextures\CommandButtons\BTNHeroArchMage.blp"
Unit[id][DISBTN] = "ReplaceableTextures\CommandButtonsDisabled\DISBTNHeroArchMage.blp"
--etc...
end
Lua:
local id = GetUnitTypeId(whichUnit)
Lua:
Unit[id][RawCode]
Last edited: