BA's team platter widget highlights neutral units

BA's team platter widget highlights neutral units

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

BA's team platter widget highlights neutral units

Post by knorke »

That looks bad on maps with neutral units (Like the one that I try to make. :roll: )
I see no reason why gaiea units should be highlighted so maybe it can be changed to not do that?
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: BA's team platter widget highlights neutral units

Post by zerver »

and it kills the FPS
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: BA's team platter widget highlights neutral units

Post by knorke »

made changes so that it does not highlight gaiea/neutral units.
Somewhere at top add:

Code: Select all

local GetGaiaTeamID = Spring.GetGaiaTeamID ()
function widget:PlayerChanged()
	GetGaiaTeamID = Spring.GetGaiaTeamID ()
end
and in DrawWorldPreUnit() change
if (teamID)
to
if (teamID and teamID~=GetGaiaTeamID) then

File is attached, I also marked changed lines with --+++
Attachments
gui_team_platter_no_g.lua
for BA maintainer, not for players
(7.79 KiB) Downloaded 113 times
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: BA's team platter widget highlights neutral units

Post by Beherith »

Thanks a million knorke, committed.
Post Reply

Return to “Balanced Annihilation”