1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-05 22:53:39 +02:00
RedMew/map_gen/maps/danger_ores/modules/map_poll.lua
2022-02-12 22:21:23 +00:00

39 lines
1008 B
Lua

local Poll = require 'features.gui.poll'
local Global = require 'utils.global'
local Event = require 'utils.event'
local Server = require 'features.server'
local data = {created = false}
Global.register(data, function(tbl)
data = tbl
end)
Event.add(Server.events.on_server_started, function()
if data.created then
return
end
data.created = true
Poll.poll({
question = 'Next map? (Advisory only)',
duration = 0,
answers = {
'terraforming (default)',
'one direction (line)',
'3-way (T shape)',
'chessboard (random ratios)',
'chessboard uniform (fixed ratios)',
'circles (ore rings)',
'gradient (smooth ore ratios)',
'hub-spiral (with void)',
'spiral (without void)',
'landfill (all tiles)',
'patches (ore islands in coal)',
'xmas tree (triangle)',
'bob\'s mod (default map)'
}
})
end)