1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

fixed report formatting

This commit is contained in:
Maik Wild 2018-08-13 17:08:24 +02:00
parent 9dcb4c86e5
commit 1a68f0c984

View File

@ -54,8 +54,7 @@ local function show_reports(player)
local tab_flow = scroll_pane.add{type="flow"} local tab_flow = scroll_pane.add{type="flow"}
for k,report in pairs(reports) do for k,report in pairs(reports) do
local button_cell = tab_flow.add{type="flow", caption="reportuid" .. k} local button_cell = tab_flow.add{type="flow", caption="reportuid" .. k}
button_cell.add button_cell.add {
{
type="button", type="button",
name=report_tab_button_name, name=report_tab_button_name,
caption = game.players[report.reporting_player_index].name caption = game.players[report.reporting_player_index].name
@ -78,12 +77,13 @@ local function report(reporting_player, reported_player, message)
if p.afk_time < 3600 then notified = true end if p.afk_time < 3600 then notified = true end
end end
end end
if not notified then end if not notified then
for _,p in pairs(game.players) do for _,p in pairs(game.players) do
if p.admin then if p.admin then
show_reports(p) show_reports(p)
end end
end end
end
end end
Gui.on_custom_close( Gui.on_custom_close(