From 4f6f9d962b80b35dcebc6c99185d2ff5c13d7f3f Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Fri, 31 May 2019 20:06:26 +0100 Subject: [PATCH] Player list size fixed --- modules/gui/player-list.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/player-list.lua b/modules/gui/player-list.lua index 754370cb..2666422e 100644 --- a/modules/gui/player-list.lua +++ b/modules/gui/player-list.lua @@ -122,7 +122,7 @@ local function generate_container(player,element) } Gui.set_padding(list_scroll,1,1,2,2) list_scroll.style.horizontally_stretchable = true - list_scroll.style.maximal_height = 200 + list_scroll.style.maximal_height = 188 -- 3 wide table to contain: action button, player name, and play time local list_table = @@ -279,6 +279,8 @@ local function add_fake_players(list_table,count) for i = 1,count do add_player(list_table,{ name='Player '..i, + index=0-i, + tag='', online_time=math.random(0,game.tick), afk_time=math.random(0,game.tick), chat_color=table.get_random_dictionary_entry(Colors) @@ -314,6 +316,7 @@ Gui.new_left_frame('gui/player-list') end end + --add_fake_players(list_table,6) --add_fake_players(list_table,20) end) :on_update(function(player,element)