mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
.
This commit is contained in:
@@ -117,6 +117,7 @@ local add_player_base =
|
|||||||
local selected_player = game.players[selected_player_name]
|
local selected_player = game.players[selected_player_name]
|
||||||
if event.button == defines.mouse_button_type.left then
|
if event.button == defines.mouse_button_type.left then
|
||||||
-- LMB will open the map to the selected player
|
-- LMB will open the map to the selected player
|
||||||
|
local position = selected_player.physical_position
|
||||||
event.player.set_controller{ type = defines.controllers.remote, position = selected_player.physical_position, surface = selected_player.physical_surface }
|
event.player.set_controller{ type = defines.controllers.remote, position = selected_player.physical_position, surface = selected_player.physical_surface }
|
||||||
else
|
else
|
||||||
-- RMB will toggle the settings
|
-- RMB will toggle the settings
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ local silo_cords =
|
|||||||
:on_click(function(player, element, _)
|
:on_click(function(player, element, _)
|
||||||
local rocket_silo_name = element.parent.caption
|
local rocket_silo_name = element.parent.caption
|
||||||
local rocket_silo = Rockets.get_silo_entity(rocket_silo_name)
|
local rocket_silo = Rockets.get_silo_entity(rocket_silo_name)
|
||||||
player.zoom_to_world(rocket_silo.position, 2)
|
player.set_controller{ type = defines.controllers.remote, position = rocket_silo.position, surface = rocket_silo.surface }
|
||||||
end)
|
end)
|
||||||
|
|
||||||
--- Base element for each rocket in the progress list
|
--- Base element for each rocket in the progress list
|
||||||
|
|||||||
Reference in New Issue
Block a user