Skip to content

Commit

Permalink
Setup hidden surface
Browse files Browse the repository at this point in the history
  • Loading branch information
Quezler committed Jan 11, 2025
1 parent e1d83ea commit 721b030
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions mods_2.0/053_greedy-inserter/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Date: ????
Info:
- Resurrect filter inserter as greedy inserter
- Add thumbnail
- Setup hidden surface
---------------------------------------------------------------------------------------------------
Version: 0.0.1
Date: 2025. 01. 11
Expand Down
4 changes: 4 additions & 0 deletions mods_2.0/053_greedy-inserter/control.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
script.on_init(function()
storage.surface = game.planets["greedy-inserter"].create_surface()
storage.surface.generate_with_lab_tiles = true
end)
11 changes: 11 additions & 0 deletions mods_2.0/053_greedy-inserter/data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,14 @@ corpse.localised_name = {"remnant-name", {"entity-name."..corpse.name:gsub("%-re
entity.corpse = corpse.name

data:extend({entity, item, recipe, corpse})

data:extend{{
type = "planet",
name = "greedy-inserter",
icon = "__greedy-inserter__/graphics/icons/greedy-inserter.png",

distance = 0,
orientation = 0,

hidden = true,
}}
3 changes: 3 additions & 0 deletions mods_2.0/053_greedy-inserter/locale/en/strings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ spoiled-priority-c=Ignore target full
spoiled-priority-d=Grab anyways
spoiled-priority-e=Always grab
spoiled-priority-f=Greedy mode

[space-location-name]
greedy-inserter=Greedy inserter

0 comments on commit 721b030

Please sign in to comment.