I'm trying to customize the tooltips for my game. So far I've managed to import files that override the standard background/border texture and I've used the UI Editor to create overrides for position and font style.
Next I'd like to modify the resource/vital costs so that they display as "100 Energy 10 Life 20 Minerals" rather than using the icons. And I'd like them to be colored coded using font styles.
I know I could hide all the icons but is there a way I can access whatever logic fills in the Vital0, Vital1, Vital2 etc stuff and modify it to show the name after the number?
If there would be any way of doing that, it might be in the data editor, under advanced, Game UI data.
Looks to contain a lot of interesting customization.. resource/vital colors, resource icons. Doesn't seem to be anything specifically for the tooltip in here unfortunately.. or anything for the vitals' icons.
@Nurdguy: Go there's a chance it is controlled by text entries, but you wont find references to it. Your best chance is to check for UI text entries in the text editor and try to replace them.
I found a lot of text entries with the id e_* which seem to be really close to what I'm looking for. There are values like "%s Damage Dealt:" and "vs %attributeType%: - the substitutions seem to not have any consistent pattern, but I believe a lot of these do appear on tooltips. I can't find anything for energy or life/health. Spent some time browsing through looking for IDs with tooltip or energy/life/health or something similar.
It's entirely possible that Blizz never expected this and they just through the value in there.
I did think of an alternate idea.. could modify all tooltips such that the first line is something like <s val=""><d ref="Whatever,Energy,Cost"> Energy</s><n/><n/>Description ...
Of course the drawback here is that you need to update the tooltips manually for all your costs and everything has to be left aligned. But it's an idea.
Uhh, I think you are over thinking it just a little; or I am under thinking it.
Couldn't you simply use a data reference to get the vital amount; enter your own color code and whatever words you would like?
andddd i just read the bottom of your last post...
Another thought; in the UI editor; couldnt you use a picture of your font style in whatever color, and replace the icon with the picture of text; then just move the "icon" in the UI editor to the other side of the cost value?
Another thought; in the UI editor; couldnt you use a picture of your font style in whatever color, and replace the icon with the picture of text; then just move the "icon" in the UI editor to the other side of the cost value?
That's a thought. It wouldn't color the number but could still look good. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to customize the tooltips for my game. So far I've managed to import files that override the standard background/border texture and I've used the UI Editor to create overrides for position and font style.
Next I'd like to modify the resource/vital costs so that they display as "100 Energy 10 Life 20 Minerals" rather than using the icons. And I'd like them to be colored coded using font styles.
I know I could hide all the icons but is there a way I can access whatever logic fills in the Vital0, Vital1, Vital2 etc stuff and modify it to show the name after the number?
@Nurdguy: Go
If there would be any way of doing that, it might be in the data editor, under advanced, Game UI data.
Looks to contain a lot of interesting customization.. resource/vital colors, resource icons. Doesn't seem to be anything specifically for the tooltip in here unfortunately.. or anything for the vitals' icons.
@Nurdguy: Go there's a chance it is controlled by text entries, but you wont find references to it. Your best chance is to check for UI text entries in the text editor and try to replace them.
@SoulFilcher: Go
Sounds like that could take awhile. :)
I found a lot of text entries with the id e_* which seem to be really close to what I'm looking for. There are values like "%s Damage Dealt:" and "vs %attributeType%: - the substitutions seem to not have any consistent pattern, but I believe a lot of these do appear on tooltips. I can't find anything for energy or life/health. Spent some time browsing through looking for IDs with tooltip or energy/life/health or something similar.
It's entirely possible that Blizz never expected this and they just through the value in there.
I did think of an alternate idea.. could modify all tooltips such that the first line is something like <s val=""><d ref="Whatever,Energy,Cost"> Energy</s><n/><n/>Description ...
Of course the drawback here is that you need to update the tooltips manually for all your costs and everything has to be left aligned. But it's an idea.
Uhh, I think you are over thinking it just a little; or I am under thinking it.
Couldn't you simply use a data reference to get the vital amount; enter your own color code and whatever words you would like?
andddd i just read the bottom of your last post...
Another thought; in the UI editor; couldnt you use a picture of your font style in whatever color, and replace the icon with the picture of text; then just move the "icon" in the UI editor to the other side of the cost value?
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
@GlornII: Go
He could use the data references and the tooltips would update appropriately, but it's still a fair amount more work just to add the data references.
That's a thought. It wouldn't color the number but could still look good. :)