1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-17 21:08:08 +02:00

Remove test code + increase name textfield width.

This commit is contained in:
James Gillham 2021-05-15 12:24:56 +01:00
parent ca381aa289
commit 2e749601a9
5 changed files with 4 additions and 9 deletions

View File

@ -162,10 +162,6 @@ end
--require 'features.snake.control'
_G.Server = require 'features.server'
require 'features.restart_command'
-- Debug-only modules
if _DEBUG then
require 'features.scenario_data_manipulation'

View File

@ -288,7 +288,9 @@ local function draw_main_frame(player)
local name_flow = main_frame.add {type = 'flow', direction = 'horizontal'}
name_flow.add {type = 'label', caption = 'Name:'}
name_flow.add {type = 'textfield', name = name_textfield_name, text = start_game_data.name}
local name_textfield = name_flow.add {type = 'textfield', name = name_textfield_name, text = start_game_data.name}
name_textfield.style.horizontally_stretchable = true
name_textfield.style.maximal_width = 600
local is_set_mod_pack = start_game_data.mod_pack ~= nil
local set_mod_pack_checkbox = main_frame.add {

View File

@ -113,9 +113,6 @@ restart_command({scenario_name = 'danger-ore-landfill'})
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
container_dump({entity_name = 'coal'})
local concrete_on_landfill = require 'map_gen.maps.danger_ores.modules.concrete_on_landfill'
concrete_on_landfill({tile = 'blue-refined-concrete'})
local config = {
spawn_shape = b.circle(64),
start_ore_shape = b.circle(68),

View File

@ -140,7 +140,7 @@ local rocket_launched = require 'map_gen.maps.danger_ores.modules.rocket_launche
rocket_launched({win_satellite_count = 5000})
local restart_command = require 'map_gen.maps.danger_ores.modules.restart_command'
restart_command({scenario_name = 'danger_ore_normal_science'})
restart_command({scenario_name = 'danger-ore-normal-science'})
local container_dump = require 'map_gen.maps.danger_ores.modules.container_dump'
container_dump({entity_name = 'coal'})