Page 1 of 2

simple playerlist widget

Posted: 04 Oct 2009, 23:19
by BrainDamage
since none of the existing playerlist widgets satisfied me ( bloated, lack of realtime update, not displaying ceasefires, etc ) I made a simple player list replacement which resembles a lot the default one

what it can do:
  • you can change sorting by clicking on the column headers
  • you can send a pm to a player by left clicking his name
  • mid clicking a player's status will toggle ceasefire if you're a player
  • you can spectate a player by clicking to a player's ID if you're a spectator
  • it shows both incoming, outgoing and bidirectional ceasefire status
  • mid click on a playername as player to share selected units
  • left click on a cpu prompts for sharing metal ( enter amount in the chat )
  • left click on a ping prompts for sharing energy ( enter amount in the chat )
  • mid click on a cpu to equalize metal between you and him
  • mid click on a ping to equalize energy between you and him
  • hovering a playername will show his resources
  • you can move it in tweak mode ( ctrl+f11 ) and it'll guess by itself the expand direction
  • you can change options in tweak mode
  • you can hide spectators permanently
  • you can show spectators only on mouseover
  • you can show the playerlist only on mouseover ( it'll collapse to the header )
  • you can make the playerlist to reappear automatically when a player is lagging
  • you can hide the spectating marker
  • you can optionally show the skill column
ingame alliance/ceasefire/truce legend:
< is mono-directional ceasefire alliance, you're allied with the player
> is mono-directional ceasefire alliance, the player is allied with you
= is bi-directional ceasefire alliance, you are allied with each other

pics:
Image
Image
Image

Download Here

Re: simple playerlist widget

Posted: 05 Oct 2009, 01:38
by Tribulex
Good work!

Re: simple playerlist widget

Posted: 05 Oct 2009, 02:15
by BrainDamage
small update:

some bugfixes
added mid click on a playername as player to share selected units
added status column header
changed "E" symbol for ceasefire to "T" ( truce )

Re: simple playerlist widget

Posted: 05 Oct 2009, 11:51
by BrainDamage
updated again, fixed font to use baseline alignment, now you can use 0 spacing and no font overlapping giving same vertical efficiency as default ( excluding column header overhead ), although I will keep 1 pixel line by default as spacing for aesthetic reasons

Re: simple playerlist widget

Posted: 05 Oct 2009, 17:47
by Tribulex
Since no one else is responding let me remind you to eat yourself a piece of pie.

Re: simple playerlist widget

Posted: 05 Oct 2009, 19:17
by BrainDamage
last update for a while I think, some internal reactoring for less WTF code if someone wants to reuse it

Re: simple playerlist widget

Posted: 06 Oct 2009, 02:03
by DavetheBrave
this is the worst widget of my life

Re: simple playerlist widget

Posted: 06 Oct 2009, 09:02
by ginekolog
i would love you much more if u add ranks to advanced player list widget.

Re: simple playerlist widget

Posted: 06 Oct 2009, 10:23
by manolo_
+1

Re: simple playerlist widget

Posted: 06 Oct 2009, 16:14
by Neddie
If you expand this with icons, BD, I think I have all the icons you might need.

Re: simple playerlist widget

Posted: 06 Oct 2009, 17:12
by momfreeek
looks good.

Get rid of the (%) and (ms) for a big improvent on horizontal efficiency IMO. If you can't work it out yourself then you probably don't need to know.

Re: simple playerlist widget

Posted: 06 Oct 2009, 22:18
by TheFatController
momfreeek wrote:Get rid of the (%) and (ms) for a big improvent on horizontal efficiency IMO. If you can't work it out yourself then you probably don't need to know.
Good idea imo

Re: simple playerlist widget

Posted: 07 Oct 2009, 09:04
by hoijui
maybe have the ms nad % on a second line. As one more row should not make a big difference in the usual games of 6vs6 + 6 specs or so. or in case this is possible, add it as a tooltip.
not that i would care for it, it is fine as it is for me :-)

Re: simple playerlist widget

Posted: 07 Oct 2009, 23:38
by knorke
how about an option not to show specs

Re: simple playerlist widget

Posted: 08 Oct 2009, 21:41
by BrainDamage
momfreeek wrote:Get rid of the (%) and (ms) for a big improvent on horizontal efficiency IMO. If you can't work it out yourself then you probably don't need to know.
knorke wrote:how about an option not to show specs
done & done ( change local HIDESPECTATORS = false, to true )

Re: simple playerlist widget

Posted: 09 Oct 2009, 18:09
by cleanrock
It would be good if you can fix it so that the playerlist is moved to bottom right when window is resized, this is important for us who play spring in windowed mode on linux.

Re: simple playerlist widget

Posted: 09 Oct 2009, 19:08
by momfreeek
downloaded it today and it works great. simple, compact and has the right features. exactly what I want :)

further suggestions:
- color ally state red/green/white instead of player color might make it easier to discern at a glance (or it might make it look messy I guess)

- tooltips describing state (ceasefire state seems kind of complex) and click functions would be handy (assuming this causes negligable overhead)

Re: simple playerlist widget

Posted: 10 Oct 2009, 17:12
by cleanrock
cleanrock wrote:It would be good if you can fix it so that the playerlist is moved to bottom right when window is resized, this is important for us who play spring in windowed mode on linux.
this works for me :

Code: Select all

function widget:ViewResize(viewSizeX, viewSizeY)
    bottomrightx = viewSizeX
end

Re: simple playerlist widget

Posted: 04 Feb 2010, 21:32
by Mav
Tried this today and I highly recommend.

Re: simple playerlist widget

Posted: 16 Feb 2013, 00:46
by BrainDamage
lev-99 thread necro!
updated the midget ( yes, midget ):
added options menu and tweak mode to move, auto align
several bugfixes
no more "magic" numbers in the code
added many options
lots of speedups thanks to display lists and smart updates
handles pathfinding progress of players