From bfa355e3097f8ab6e7ee2caf65e911f51201f561 Mon Sep 17 00:00:00 2001 From: SimonFlapse Date: Sat, 2 Mar 2019 16:52:13 +0100 Subject: [PATCH] Linting fix and tooltip added --- map_gen/maps/quadrants/compilatron_handler.lua | 2 +- map_gen/maps/quadrants/switch_team.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/map_gen/maps/quadrants/compilatron_handler.lua b/map_gen/maps/quadrants/compilatron_handler.lua index 10eaa335..401959b7 100644 --- a/map_gen/maps/quadrants/compilatron_handler.lua +++ b/map_gen/maps/quadrants/compilatron_handler.lua @@ -59,7 +59,7 @@ local callback = local ent = data.ent local name = data.name local msg_number = data.msg_number - message = + local message = ent.surface.create_entity( {name = 'compi-speech-bubble', text = messages[name][msg_number], position = {0, 0}, source = ent} ) diff --git a/map_gen/maps/quadrants/switch_team.lua b/map_gen/maps/quadrants/switch_team.lua index 87a7b022..b5275512 100644 --- a/map_gen/maps/quadrants/switch_team.lua +++ b/map_gen/maps/quadrants/switch_team.lua @@ -109,7 +109,8 @@ local function redraw_chest_button(data, player) { type = 'button', name = 'Quadrants.Button.Toggle', - caption = 'Toggle inventory empty to chest. Currently: ' .. toggle_status + caption = 'Toggle inventory empty to chest. Currently: ' .. toggle_status, + tooltip = 'If on:\nYour inventory will be emptied in a chest, when you switch quadrant' } ) button.style.font = 'default'