- Joined
- Aug 6, 2016
- Messages
- 16
Hello everyone,
I've been adding some aesthetic touches to my project and have run into something... weird. So you can use color codes to change the text color of the tooltip for a units name. Specifically I changed a Hero that a marketplace sells so that it's name appears blue in the purchase tooltip. This worked fine.
When I use my repick system to return the unit, I used the line
Neutral Building - Add Kalara to Portal 0058 <gen> with 1 in stock and a max stock of 1
but this creates a new icon and I can't get rid of the old one using
Neutral Building - Remove Kalara from Portal 0058 <gen> with 1 in stock and a max stock of 1
So my solution was to make it so that the units aren't originally sold by the marketplace, but are added to it via trigger at the beginning of the game, and when that particular hero is refunded. This way I don't even have to remove them from the marketplace. I can just keep a very long timer on them and the
Neutral Building - Add Kalara to Portal 0058 <gen> with 1 in stock and a max stock of 1
line just increases the stock instead of adding another icon! Awesome!
So here's the problem: When added this way, the units tooltip displays the name in white. Just the name. I have color in the description tooltip that works fine, but the name is always white. Does anyone understand why this is or know what I can do about it?
TLDR; Using triggers to add units to a marketplace makes their name tooltip white even if you've got a color tag in it. What gives?
I've been adding some aesthetic touches to my project and have run into something... weird. So you can use color codes to change the text color of the tooltip for a units name. Specifically I changed a Hero that a marketplace sells so that it's name appears blue in the purchase tooltip. This worked fine.
When I use my repick system to return the unit, I used the line
Neutral Building - Add Kalara to Portal 0058 <gen> with 1 in stock and a max stock of 1
but this creates a new icon and I can't get rid of the old one using
Neutral Building - Remove Kalara from Portal 0058 <gen> with 1 in stock and a max stock of 1
So my solution was to make it so that the units aren't originally sold by the marketplace, but are added to it via trigger at the beginning of the game, and when that particular hero is refunded. This way I don't even have to remove them from the marketplace. I can just keep a very long timer on them and the
Neutral Building - Add Kalara to Portal 0058 <gen> with 1 in stock and a max stock of 1
line just increases the stock instead of adding another icon! Awesome!
So here's the problem: When added this way, the units tooltip displays the name in white. Just the name. I have color in the description tooltip that works fine, but the name is always white. Does anyone understand why this is or know what I can do about it?
TLDR; Using triggers to add units to a marketplace makes their name tooltip white even if you've got a color tag in it. What gives?