Your original question - how to get icons for items/spells a player does not have - it's basically impossible or VERY VERY difficult (e.g. you hardcode it all) - but why would you need this?
|
Well, some example situations where I can imagine it being useful:
- Displaying the cheese icon for Well Fed when you don't have it, to remind you to eat your raid buff food
- Displaying an icon for Sunder Armor, when the mob you're targeting doesn't have it on it, to remind you to wait to dps until your warrior tank has aggro
- A tank having a sheep/shackle icon come up when the mob they've set to focus breaks loose, so that they can know if they need to pick it up.
- Displaying an icon when you're the "bomb", aka Baron Geddon or Murmur. You can get the texture when you actually have the debuff, but not when you're setting up before the pull.
- Displaying the buff icon when you get a clearcasting-type proc, or a buff proc from an enchant/item/metagem, so you can adjust your spell/ability casts to make maximum use of the proc. Again, you can get the texture when you actually have the buff, but not beforehand.
I'm sure there are a bunch more uses. It will depend on each player's situation -- I'm sure they can think of more uses than I can. I'm trying to make the mod to be as user-configurable as possible, so they can use it in new and creative ways I haven't thought of yet.
Things like 'Well Fed' you can get icons for - you just need to refer to them by spellid (which always works) and not spellname...
|
But players don't know spellIDs. And user text input is way more flexible than a (giant) list of options.
For non-rank-dependant stuff you should always use spellids anyway - spellnames need translation/localisation - spellids don't...
|
If a player types in the name of the spell/buff/item/whatever, they're effectively localizing it themselves. (As long as they can spell
).
I don't know about you, but I'm very a visual person. Icons and graphics are much easier for me to pay attention to during fights than a bunch of text popping up on my screen. Especially when a raid leader's bossmod is always spamming information that's not important for my class.
In any case, I've got it working now using the "learning" solution (thanks, arkayenro). When you first set up the icon, it has a placeholder texture (the question mark). But then once you see the buff/debuff the icon has the right texture.