forked from Nividica/FactorioStorageEnergistics
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from Pouka-dev/develop
feature(Issue-1) Copy/Paste close #1 Adding functionnality for Copy/Paste settings This fix blueprint mode
- Loading branch information
Showing
10 changed files
with
405 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
-------------- include libs --------------- | ||
require ("mod-gui") | ||
require ("cores.lib.class") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
--- Description: Defines the event manager for custom-input/control events | ||
|
||
--- Constructs and returns the ControlHandler object | ||
return function() | ||
local ControlHandler = {} | ||
|
||
-- OnShowStorageNetworkGUI( Event ) :: void | ||
-- Called when the key bound to show network overview is pressed | ||
function ControlHandler.OnShowStorageNetworkGUI(event) | ||
local playerIndex = event.player_index | ||
|
||
-- Toggle show/close | ||
if (SE.GuiManager.IsGuiOpen(playerIndex, SE.GuiManager.Guis.NetworkOverview)) then | ||
SE.GuiManager.CloseGui(playerIndex) | ||
else | ||
SE.GuiManager.ShowGui(event, SE.GuiManager.Guis.NetworkOverview) | ||
end | ||
end | ||
|
||
-- RegisterWithGame() :: void | ||
-- Registers a listener for custom inputs | ||
function ControlHandler.RegisterWithGame() | ||
script.on_event(SE.Constants.Names.Controls.StorageNetworkGui, ControlHandler.OnShowStorageNetworkGUI) | ||
end | ||
|
||
return ControlHandler | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.