- Joined
- Jan 30, 2013
- Messages
- 12,763
This is a pretty good utility, I'll keep this in hand. Would be neat for some genres with zero damage RnG.
(5 ratings)
what timeout you have in mind?I think a smaller timeout would suffice here.
what timeout you have in mind?
When it hides the default but doesn't show anything anymore. Then it is likely that there something went wrong with the custom frame creation.
Make sure you add the Files HideMinDamage.toc and HideMinDamage.fdf into your map.
HideMinDamage.toc should contain 2 lines: the path of HideMinDamage.fdf in your map and an empty Line. (only one \)
HideMinDamage.fdf should have ~10 lines describing a Frame
Inside the script the path to HideMinDamage.toc is also mentoned in
BlzLoadTOCFile (\\)
Make sure the paths mentioned are the ones used in your map.
Isn't that a good thing? I can't do much about that.
I can't do much about that.
Than you don't need hide-min damage at all.in my new map, im trying to remove all numbers like HP, Mana and Damage,
Change the Font of all the StringSimpleFrames.
Also hide the children of the unitinfos to disable their tooltip.
But I wonder if you don't want numbers, What you need from the single unit selection at all, could hide all of it?
Well I don't know how to change the text inside the default tooltip.I do still want them to be selectable because the players must be able to read the damage & armor type and read their strength and weakness, and sometimes for using abilities.
This will "hide" the amounts of the unit infos: But you might not want all of them: The number after "InfoPanelIconValue" is the index that maps to this unit infos. Call the wanted BlzFrameSetFont() at 0s to "hide" the amount display.What?
Couldnt understand what exactly i have to do.
Well I don't know how to change the text inside the default tooltip.
Best I would know, how to do is to disable the normal unit info tooltips and then to display a custom one instead.
This will "hide" the amounts of the unit infos: But you might not want all of them: The number after "InfoPanelIconValue" is the index that maps to this unit infos. Call the wanted BlzFrameSetFont() at 0s to "hide" the amount display.
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 0),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 1),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 2),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 3),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 4),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 5),"", 0.0, 0)
Unit infos:
("SimpleInfoPanelIconDamage",0)
("SimpleInfoPanelIconDamage",1)
("SimpleInfoPanelIconArmor",2)
("SimpleInfoPanelIconRank",3)
("SimpleInfoPanelIconFood",4)
("SimpleInfoPanelIconGold",5)
The other part about childrens was to disable the mouse listener to show the default tooltip
is it possible to do it for each type? not all of them?yes, one can "hide" the tooltip, the label, the value,, the icon or all of it.
One can hide the hero stats.
The ally resources and many more.
Just changing the tooltip text that is a no go. Here one would have to recreate it (as far as I know).
the default UI only has one set of frames onto which the unit's data is displayed onto.
it is possible to have unique tooltips for each type, if you get the attack type of the current unit and change/show the current needed tooltip while the tooltip of the attack icon is shown. Might need to add a custom simpleframe as tooltip to know the user points at the attack icon.
But are you sure that your attackType Tooltips need such different formats. Can't it be generalized?
What is the problem? Dota 2 does the same: shows only avg number on the ui, but in the tooltip you see more.Imagine youre trying to hide min and max damage, but when you go to read description of an attack type, you can read the min and max damage.
tooltip is for example only this part?: 17 - 43What is the problem? Dota 2 does the same: shows only avg number on the ui, but in the tooltip you see more.
When you hover the attack frame. You see the tooltip-Box&Text:
The top is the damage amounts.
Followed by Type(Name), Range, Speed and finally the attack type description text from Game Interface.
But for Frame-UI, Tooltip is just another Frame that is shown while some Frame is hovered.
HOW DO I EVEN USE THIS SCRIPTS?Well I don't know how to change the text inside the default tooltip.
Best I would know, how to do is to disable the normal unit info tooltips and then to display a custom one instead.
This will "hide" the amounts of the unit infos: But you might not want all of them: The number after "InfoPanelIconValue" is the index that maps to this unit infos. Call the wanted BlzFrameSetFont() at 0s to "hide" the amount display.
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 0),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 1),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 2),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 3),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 4),"", 0.0, 0)
BlzFrameSetFont(BlzGetFrameByName("InfoPanelIconValue", 5),"", 0.0, 0)
Unit infos:
("SimpleInfoPanelIconDamage",0)
("SimpleInfoPanelIconDamage",1)
("SimpleInfoPanelIconArmor",2)
("SimpleInfoPanelIconRank",3)
("SimpleInfoPanelIconFood",4)
("SimpleInfoPanelIconGold",5)
The other part about childrens was to disable the mouse listener to show the default tooltip
is a argument for BlzGetFrameByName, to read from the game's frame storage to get a framehandle stored at 0 with name "SimpleInfoPanelIconDamage".("SimpleInfoPanelIconDamage",0)