I am working on a map where due to some technical reasons we had to trigger our units resource costs. I have tried to insert a resource image with the cost amount for that unit but it doesn't turn red when i don't have enough resources.
So far i have found no way to do it except for using blizzards "Show Resources" flag in the button options. But since my units have no costs inserted in the data editor nothing happens.
Is there any way to insert fake resource costs or is there a command in the tooltips i can use to make the numbers go red when i have insufficient resources?
Only thing I can think of is to not allow the ability to be used when not enough resources such as the action disable ability for player. Still if there's no cooldown on the ability, a player could probably spam the ability and get several uses off cuz of lag.
For what i can see you are using costs for your potions for example. Your healing potion small is 60 minerals and thats the cost you set for it in the data editor. Then your button is flagged with "Show Resources".
This is not what i can use.
I have to somehow make the game think something costs x amount while it doesnt so i can use this method aswell.
i dont use any data buttons, all shops are trigger based. go to triggers and checkout RefreshShopButtons. all you need to do is to set the text of your button with catalogs instead the text of the dialog button.