Hide trainable units with button position -1,-1?

Level 16
Joined
Jun 9, 2008
Messages
342

Shortlegs

I have seen that in an old post by @Wietlol . Specifically it was about creating Charge Gold and Lumber abilities instead of the train unit buttons (when you use the ability, a trigger will tell the structure to train the respective unit; the reason behind this is that it's a way to add and remove trainable units from a specific structure with triggers), and hide the training unit buttons by setting their button positions to -1,-1

But when I tried to replicate this it didn't work. The original training unit buttons still show up but not the ability buttons (you'll note that's the excat opposite of what I wanted to achieve).

How does one set this up properly?
 
Might be outdated, the current coordinates to hide icons are 0, -11
Thanks!! Just to check - the AI would not be affected by it, would it? Since the AI is obviously not vision based so it doesn't care whether a button is hidden this way or not?

(Context: I'd like to use that mechanic for human players, but for AI players what's more important to me is that they can train units freely, doesn't matter if they aren't bound by the same techtree limitations as real players.)
 
Back
Top