simple playerlist widget - Page 2

simple playerlist widget

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

Moderator: Moderators

klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: simple playerlist widget

Post by klapmongool » 16 Feb 2013, 08:49

Nice nice. I'll try it some more today.

What is this about:
mid click on a cpu to equalize metal between you and him
mid click on a cpu to equalize energy between you and him
How do I determine what to share?
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 16 Feb 2013, 12:21

klapmongool wrote:
mid click on a cpu to equalize metal between you and him
mid click on a cpu to equalize energy between you and him
How do I determine what to share?
it's meant for urgent transfers, example:
say he has 500 and you have 1000, total is 1500, you'll share 250, so each of you has 750
he has 0, you have 1k, you'll share 500
he has 800, you have 250, you'll share 0
he has 600 with max storage 1k, you have 2k, you'll share 400
the idea is that you can spam mid click on the playerlist when someone is stalling E or M and you'll quickly share so he can dgun/finish the fusion/whatever, i'll add another mode where you can specify the amount in chat in the future
0 x

klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: simple playerlist widget

Post by klapmongool » 16 Feb 2013, 13:48

BrainDamage wrote:
klapmongool wrote:
mid click on a cpu to equalize metal between you and him
mid click on a cpu to equalize energy between you and him
How do I determine what to share?
it's meant for urgent transfers, example:
say he has 500 and you have 1000, total is 1500, you'll share 250, so each of you has 750
he has 0, you have 1k, you'll share 500
he has 800, you have 250, you'll share 0
he has 600 with max storage 1k, you have 2k, you'll share 400
the idea is that you can spam mid click on the playerlist when someone is stalling E or M and you'll quickly share so he can dgun/finish the fusion/whatever, i'll add another mode where you can specify the amount in chat in the future
I meant that both m and e have the same command. It always does both?
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 16 Feb 2013, 16:48

oh, didn't notice that, it was a typo, cpu is metal, ping is energy
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 16 Feb 2013, 20:12

now you can select amount by left clicking instead of mid clicking, you'll get a chat prompt like
"/shareresources teamid resourcetype "
you'll have to write the amount afterwards, like
/shareresources 4 metal 300
and ofc press enter
_lowercase_ si multipliers are allowed (kilo,mega,giga,tera), such as:
3kfor 3000, 50M for 50000000, etc
es
/shareresources 3 energy 5k
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 17 Feb 2013, 16:57

last update for a while, now you can:
change background colour and transparency
toggle box outline
change font size and line and column spacing
insert a line break between allies/enemies/spectators
align text on center instead of left
0 x

Manoa
Posts: 79
Joined: 19 May 2008, 18:51

Re: simple playerlist widget

Post by Manoa » 03 May 2013, 01:34

nice work, thank
I do have one request, could you add an option to only draw spectators, as in "hidePlayers" ?

I also got this error while playing robot defence:

Code: Select all

[widgets.lua] Error: Failed to load: gui_simpleplayerlist.lua  ([string "LuaUI\Widgets\gui_simpleplayerlist.lua"]:169: attempt to compare number with nil)
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 05 May 2013, 13:24

added autohide players, the bug has been fixed since a while
0 x

User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage » 01 Sep 2013, 16:16

updated to have an optional skill column (thanks bibim ), spectators white by default now
0 x

Post Reply

Return to “Lua Scripts”