You've already forked factorio-blueprint-editor
mirror of
https://github.com/teoxoy/factorio-blueprint-editor.git
synced 2025-11-23 22:15:01 +02:00
add utility-constants & gui-style
This commit is contained in:
@@ -10,6 +10,8 @@ import {
|
|||||||
TilePrototype,
|
TilePrototype,
|
||||||
EntityWithOwnerPrototype,
|
EntityWithOwnerPrototype,
|
||||||
UtilitySprites,
|
UtilitySprites,
|
||||||
|
UtilityConstants,
|
||||||
|
GuiStyle,
|
||||||
HeatBuffer,
|
HeatBuffer,
|
||||||
EnergySource,
|
EnergySource,
|
||||||
CraftingMachinePrototype,
|
CraftingMachinePrototype,
|
||||||
@@ -744,6 +746,8 @@ const FD: {
|
|||||||
tiles: Record<string, TilePrototype>
|
tiles: Record<string, TilePrototype>
|
||||||
inventoryLayout: InventoryLayoutGroup[]
|
inventoryLayout: InventoryLayoutGroup[]
|
||||||
utilitySprites: UtilitySprites
|
utilitySprites: UtilitySprites
|
||||||
|
utilityConstants: UtilityConstants
|
||||||
|
guiStyle: GuiStyle
|
||||||
defines: typeof defines
|
defines: typeof defines
|
||||||
// treesAndRocks: Record<string, TreeOrRock>
|
// treesAndRocks: Record<string, TreeOrRock>
|
||||||
|
|
||||||
@@ -761,6 +765,8 @@ export function loadData(str: string): void {
|
|||||||
FD.tiles = data.tiles
|
FD.tiles = data.tiles
|
||||||
FD.inventoryLayout = data.inventoryLayout
|
FD.inventoryLayout = data.inventoryLayout
|
||||||
FD.utilitySprites = data.utilitySprites
|
FD.utilitySprites = data.utilitySprites
|
||||||
|
FD.utilityConstants = data.utilityConstants
|
||||||
|
FD.guiStyle = data.guiStyle
|
||||||
FD.defines = data.defines
|
FD.defines = data.defines
|
||||||
FD.getModulesFor = getModulesFor
|
FD.getModulesFor = getModulesFor
|
||||||
|
|
||||||
|
|||||||
@@ -440,10 +440,17 @@ end
|
|||||||
|
|
||||||
-- UTILITY SPRITES
|
-- UTILITY SPRITES
|
||||||
do
|
do
|
||||||
local utilitySprites = deep_copy(data.raw['utility-sprites'].default)
|
output.utilitySprites = data.raw['utility-sprites'].default
|
||||||
utilitySprites.type = nil
|
end
|
||||||
utilitySprites.name = nil
|
|
||||||
output.utilitySprites = utilitySprites
|
-- UTILITY CONSTANTS
|
||||||
|
do
|
||||||
|
output.utilityConstants = data.raw['utility-constants'].default
|
||||||
|
end
|
||||||
|
|
||||||
|
-- GUI STYLE
|
||||||
|
do
|
||||||
|
output.guiStyle = data.raw['gui-style'].default
|
||||||
end
|
end
|
||||||
|
|
||||||
-- DEFINES
|
-- DEFINES
|
||||||
|
|||||||
Reference in New Issue
Block a user