Make match summary formspec wider
This commit is contained in:
parent
e8bcf8fe14
commit
57e02f7bb8
1 changed files with 13 additions and 13 deletions
|
@ -98,18 +98,18 @@ function ctf_stats.get_formspec_match_summary(stats, winner_team, winner_player,
|
||||||
-- Map name
|
-- Map name
|
||||||
ret = ret .. "label[1,7.6;Map: " .. minetest.colorize("#EEEE00", stats.map) .. "]"
|
ret = ret .. "label[1,7.6;Map: " .. minetest.colorize("#EEEE00", stats.map) .. "]"
|
||||||
|
|
||||||
ret = ret .. "label[6.5,0;Kills]"
|
ret = ret .. "label[7.5,0;Kills]"
|
||||||
ret = ret .. "label[8,0;" .. render_team_stats(red, blue, "kills") .. "]"
|
ret = ret .. "label[9,0;" .. render_team_stats(red, blue, "kills") .. "]"
|
||||||
ret = ret .. "label[3.5,0;Team K/D]"
|
ret = ret .. "label[4,0;Team K/D]"
|
||||||
ret = ret .. "label[5,0;" .. minetest.colorize(red.color, tostring(red_kd)) ..
|
ret = ret .. "label[5.5,0;" .. minetest.colorize(red.color, tostring(red_kd)) ..
|
||||||
" - " .. " " .. minetest.colorize(blue.color, tostring(blue_kd)) .. "]"
|
" - " .. " " .. minetest.colorize(blue.color, tostring(blue_kd)) .. "]"
|
||||||
ret = ret .. "label[6.5,0.5;Attempts]"
|
ret = ret .. "label[7.5,0.5;Attempts]"
|
||||||
ret = ret .. "label[8,0.5;" .. render_team_stats(red, blue, "attempts") .. "]"
|
ret = ret .. "label[9,0.5;" .. render_team_stats(red, blue, "attempts") .. "]"
|
||||||
ret = ret .. "label[9.5,0;Duration]"
|
ret = ret .. "label[11.5,0;Duration]"
|
||||||
ret = ret .. "label[11,0;" .. match_length .. "]"
|
ret = ret .. "label[13,0;" .. match_length .. "]"
|
||||||
ret = ret .. "label[9.5,0.5;Total score]"
|
ret = ret .. "label[11.5,0.5;Total score]"
|
||||||
ret = ret .. "label[11,0.5;" .. render_team_stats(red, blue, "score", true) .. "]"
|
ret = ret .. "label[13,0.5;" .. render_team_stats(red, blue, "score", true) .. "]"
|
||||||
ret = ret .. "label[8,7.2;Tip: type /rankings for league tables]"
|
ret = ret .. "label[10,7.2;Tip: type /rankings for league tables]"
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
@ -119,13 +119,13 @@ function ctf_stats.get_formspec(title, players, header, target)
|
||||||
return one.score > two.score
|
return one.score > two.score
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local ret = "size[14," .. 7 + header .. "]"
|
local ret = "size[15.5," .. 7 + header .. "]"
|
||||||
ret = ret .. "container[0," .. header .. "]"
|
ret = ret .. "container[0," .. header .. "]"
|
||||||
|
|
||||||
ret = ret .. "vertlabel[0,1;" .. title .. "]"
|
ret = ret .. "vertlabel[0,1;" .. title .. "]"
|
||||||
ret = ret .. tablecolumns
|
ret = ret .. tablecolumns
|
||||||
ret = ret .. "tableoptions[highlight=#00000000]"
|
ret = ret .. "tableoptions[highlight=#00000000]"
|
||||||
ret = ret .. "table[0.5,0;13.25,6.1;scores;"
|
ret = ret .. "table[0.5,0;14.75,6.1;scores;"
|
||||||
ret = ret .. "#ffffff,,Player,Kills,Deaths,K/D,Bounty Kills,Captures,Attempts,Capture Rate,Score"
|
ret = ret .. "#ffffff,,Player,Kills,Deaths,K/D,Bounty Kills,Captures,Attempts,Capture Rate,Score"
|
||||||
|
|
||||||
local hstat, hplace
|
local hstat, hplace
|
||||||
|
|
Loading…
Reference in a new issue