Fancy Teamplatter

Fancy Teamplatter

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Fancy Teamplatter

Post by Forboding Angel »

This is a variation of the enemy spotter widget. It looks freaking fantastic, so I wanted to use it as a teamplatter widget, and with some settings changes, it works really well.

There is only one downside, and that is the fact that it only assigns one color to each team, instead of each player having his own color.

I've done some digging (and asking) and unfortunately it's a bit out of my realm:

https://evolutionrts.googlecode.com/svn ... latter.lua

The loop in this widget is only grabbing per allyteam from what I can tell (and what carrepairer mentioned), and I was thinking that making it grab per player should be a pretty simple task, but the more I dug, the more I realized I had no idea wtf I was doing

At the moment, I honestly don't know how difficult of a task it is.

Could someone help make this a reality? I really think people would like it a lot.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: Fancy Teamplatter

Post by dansan »

Do you have access to the start-script info from lua? The players color is there in RGB.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fancy Teamplatter

Post by smoth »

Go by teamid not player id
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Fancy Teamplatter

Post by Jools »

TeamID = PlayerID in normal speech
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Fancy Teamplatter

Post by smoth »

Kinda... Yeah
User avatar
zoggop
Posts: 289
Joined: 07 Sep 2010, 18:47

Re: Fancy Teamplatter

Post by zoggop »

how's this?
Attachments
gui_fancy_teamplatter.lua
(7.13 KiB) Downloaded 16 times
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Fancy Teamplatter

Post by Forboding Angel »

Yep, that does EXACTLY what I wanted. Thanks Zoggop!
Post Reply

Return to “Lua Scripts”