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 »

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?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

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
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: simple playerlist widget

Post by klapmongool »

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?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

oh, didn't notice that, it was a typo, cpu is metal, ping is energy
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

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
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

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
Manoa
Posts: 79
Joined: 19 May 2008, 18:51

Re: simple playerlist widget

Post by Manoa »

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)
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

added autohide players, the bug has been fixed since a while
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: simple playerlist widget

Post by BrainDamage »

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

Return to “Lua Scripts”