Ok i've been trying to figure out how to accomplish this with trial and error for nearly two days now. So hopefully somebody will be able to point me in the right direction.
I've got a little window that sits to the right of the selected unit panel. Which also happens to the exact same spot the enemy panel window pops up when you mouse over an enemy unit. The problem i'm having is that the enemy window pops up under mine, i can tell it pops up under is since some of the aliens actually overflow outside of the box (drones) and the shadowing shows up.
So i've been trying to figure out how to do one of two things, 1) completely hide my window and yeah i got Controls.UnitGroupInfoGrid:SetHide(true) to work perfectly but not when i'm moused over an enemy unit. 2) (but not the preferred solution) would be to make the enemy window just popup over mine since they are currently the exact same size. Again i'll take solution 2 as a temp fix but at some point that window might grow in size and then it'd look goofy with the enemy window over it.
so is there a way i can just use something like the following?
or something like that? I've looked over a number of files looking for something to run with but i've tried writing several lines using SerialEventMouseOverHex only to delete then entire thing and start over a few times now.
Any info on the best approach on resolving this would be greatly appreciated.
I've got a little window that sits to the right of the selected unit panel. Which also happens to the exact same spot the enemy panel window pops up when you mouse over an enemy unit. The problem i'm having is that the enemy window pops up under mine, i can tell it pops up under is since some of the aliens actually overflow outside of the box (drones) and the shadowing shows up.
So i've been trying to figure out how to do one of two things, 1) completely hide my window and yeah i got Controls.UnitGroupInfoGrid:SetHide(true) to work perfectly but not when i'm moused over an enemy unit. 2) (but not the preferred solution) would be to make the enemy window just popup over mine since they are currently the exact same size. Again i'll take solution 2 as a temp fix but at some point that window might grow in size and then it'd look goofy with the enemy window over it.
so is there a way i can just use something like the following?
Code:
if (Controls.EnemeyUnitPanel.IsVisible) then
Controls.UnitGroupInfoGrid:SetHide(true);
else
Controls.UnitGroupInfoGrid:SetHide(false);
end
or something like that? I've looked over a number of files looking for something to run with but i've tried writing several lines using SerialEventMouseOverHex only to delete then entire thing and start over a few times now.
Any info on the best approach on resolving this would be greatly appreciated.