Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d4fbf6365 | |||
| 5d5b2f730b | |||
| 0503448c97 | |||
| 92c591e731 | |||
| a544aa53c3 | |||
| 301de33990 | |||
| f8815dd4ec | |||
| 4587cff6ab | |||
| 60dd9847a3 | |||
| 48244eaefd | |||
| cfdbe21542 | |||
| 36c04830c9 | |||
| b94b3782c6 | |||
| 5211c8f3dd | |||
| 480f7efde2 | |||
| 78fec4fcff | |||
| 7612c840c0 | |||
| 66587c503d | |||
| 3c2e3eb6d6 | |||
| 59aa449911 | |||
| 423cf5aff2 | |||
| f026c767d8 | |||
| 90499e48ec | |||
| 0416d23f78 | |||
| b0ec644f5a | |||
| 88a01b4bee | |||
| 3cf302c51f | |||
| ae2c66d174 | |||
| f9560c6cda | |||
| 8b6638dcd4 | |||
| 615d8209d6 |
+27
-1
@@ -1,10 +1,36 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.18.5
|
||||
Date: 2020-11-23
|
||||
Bugfixes:
|
||||
- Bumped version to fix version mess
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.18.3
|
||||
Date: 2020-11-22
|
||||
Changes:
|
||||
- removed unneeded mipmap for map marker (thanks to Deadlock989)
|
||||
- restored IR compat (thanks to Deadlock989)
|
||||
- fixed steel display migration (again) (thanks to Deadlock989)
|
||||
- fixed styles (thanks to Deadlock989)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.18.2
|
||||
Date: 2020-08-02
|
||||
Changes:
|
||||
- moved plates to Dectorio recipe group (if installed)
|
||||
Bugfixes:
|
||||
- removed check for show_in_library (removed in 0.18.37)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.18.1
|
||||
Date: 2020-05-26
|
||||
Bugfixes:
|
||||
- Quick fix for base GUI changes (styles and search icon)
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.18.0
|
||||
Date: 2020-04-08
|
||||
Changes:
|
||||
- Mod takeover from https://mods.factorio.com/mod/IndustrialDisplays
|
||||
- Changed versioning
|
||||
- Changed changelog date format
|
||||
- Changed mod name
|
||||
Features:
|
||||
- Added german locale
|
||||
---------------------------------------------------------------------------------------------------
|
||||
@@ -64,4 +90,4 @@ Date: 2020-02-24
|
||||
- Any item or fluid can be displayed, but unlike IR 0.17, the displays use the standard icon for the item instead of a high-res sprite.
|
||||
- Copper, iron and steel displays are provided by default.
|
||||
- Now uses ghost tags instead of hax to store plate settings in blueprints.
|
||||
- GUI now remembers its previous location on the screen, and closes automatically if you walk out of range.
|
||||
- GUI now remembers its previous location on the screen, and closes automatically if you walk out of range.
|
||||
|
||||
+581
-581
File diff suppressed because it is too large
Load Diff
+6
-1
@@ -16,4 +16,9 @@ for display,displaydata in pairs(DID.displays) do
|
||||
end
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
if mods ["Dectorio"] then
|
||||
if data.raw["item-group"]["dectorio"] then
|
||||
data.raw["item-subgroup"]["display-plates"].group = "dectorio"
|
||||
end
|
||||
end
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1,314 +1,286 @@
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- DEADLOCK'S INDUSTRIAL DISPLAYS
|
||||
-- Forked from Industrial Revolution, for your signage pleasure
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- constants
|
||||
|
||||
local DID = require("globals")
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- functions
|
||||
|
||||
local function get_icon_path(name, icon_size)
|
||||
return string.format("%s/%s/%s.png", DID.icon_path, tostring(icon_size or DID.icon_size), name)
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- prototypes
|
||||
|
||||
local dimensions = {
|
||||
[1] = {width = 80, height = 80},
|
||||
[2] = {width = 134, height = 134},
|
||||
[3] = {width = 196, height = 196},
|
||||
}
|
||||
|
||||
local shadow_dimensions = {
|
||||
[1] = {width = 80, height = 80, sprite = "display-shadow-small"},
|
||||
[2] = {width = 146, height = 134, sprite = "display-shadow-medium"},
|
||||
[3] = {width = 204, height = 204, sprite = "display-shadow"},
|
||||
}
|
||||
|
||||
data:extend({{
|
||||
name = "display-plates",
|
||||
type = "item-subgroup",
|
||||
group = "logistics",
|
||||
order = "z[display-plates]"
|
||||
}})
|
||||
|
||||
local count = 1
|
||||
for display,displaydata in pairs(DID.displays) do
|
||||
local size = (string.find(display,"small") and 1) or (string.find(display,"medium") and 2) or 3
|
||||
local box_size = size * 0.5
|
||||
data:extend({
|
||||
{
|
||||
name = display,
|
||||
type = "simple-entity-with-owner",
|
||||
localised_description = {"entity-description.display"},
|
||||
render_layer = "lower-object",
|
||||
icon = get_icon_path(display),
|
||||
icon_size = DID.icon_size,
|
||||
icon_mipmaps = DID.icon_mipmaps,
|
||||
corpse = "small-remnants",
|
||||
minable = {
|
||||
mining_time = 0.2,
|
||||
result = display,
|
||||
},
|
||||
max_health = 10 + size * 30,
|
||||
flags = {"placeable-player", "placeable-neutral", "player-creation"},
|
||||
collision_box = { {-box_size+0.1, -box_size+0.1}, {box_size-0.1, box_size-0.1} },
|
||||
selection_box = { {-box_size, -box_size}, {box_size, box_size} },
|
||||
collision_mask = {
|
||||
"object-layer",
|
||||
"water-tile",
|
||||
},
|
||||
open_sound = {
|
||||
filename = DID.base_sound_path.."/machine-open.ogg",
|
||||
volume = 0.5
|
||||
},
|
||||
close_sound = {
|
||||
filename = DID.base_sound_path.."/machine-close.ogg",
|
||||
volume = 0.5
|
||||
},
|
||||
mined_sound = {
|
||||
filename = DID.core_sound_path.."/deconstruct-medium.ogg"
|
||||
},
|
||||
resistances = {
|
||||
{
|
||||
type = "fire",
|
||||
percent = 75
|
||||
},
|
||||
},
|
||||
picture = {
|
||||
layers = {
|
||||
{
|
||||
filename = string.format("%s/"..display..".png", DID.sprites_path),
|
||||
priority = "high",
|
||||
shift = {0,0},
|
||||
height = dimensions[size].height,
|
||||
width = dimensions[size].width,
|
||||
scale = 0.5,
|
||||
},
|
||||
{
|
||||
filename = string.format("%s/%s.png", DID.sprites_path, shadow_dimensions[size].sprite),
|
||||
priority = "high",
|
||||
shift = {0,0},
|
||||
height = shadow_dimensions[size].height,
|
||||
width = shadow_dimensions[size].width,
|
||||
scale = 0.5,
|
||||
draw_as_shadow = true,
|
||||
},
|
||||
}
|
||||
},
|
||||
random_variation_on_create = false,
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = display,
|
||||
order = "z["..count.."]",
|
||||
subgroup = "display-plates",
|
||||
stack_size = 100,
|
||||
icon = get_icon_path(display),
|
||||
icon_size = DID.icon_size,
|
||||
icon_mipmaps = DID.icon_mipmaps,
|
||||
place_result = display,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = display,
|
||||
order = "z["..count.."]",
|
||||
result = display,
|
||||
result_count = 1,
|
||||
category = "crafting",
|
||||
enabled = mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil) or (displaydata.unlock == nil),
|
||||
ingredients = displaydata.ingredients,
|
||||
energy_required = 1,
|
||||
}
|
||||
})
|
||||
count = count + 1
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- styles
|
||||
|
||||
local function add_styles(styles)
|
||||
local default_styles = data.raw["gui-style"]["default"]
|
||||
for name, style in pairs(styles) do
|
||||
default_styles[name] = style
|
||||
end
|
||||
end
|
||||
|
||||
add_styles({
|
||||
display_tabbed_pane = {
|
||||
tab_container = {
|
||||
horizontal_spacing = 0,
|
||||
left_padding = 0,
|
||||
right_padding = 0,
|
||||
horizontal_align = "center",
|
||||
type = "horizontal_flow_style",
|
||||
},
|
||||
tab_content_frame = {
|
||||
bottom_padding = 8,
|
||||
left_padding = 10,
|
||||
right_padding = 10,
|
||||
top_padding = 8,
|
||||
graphical_set = data.raw["gui-style"]["default"]["tabbed_pane"]["tab_content_frame"].graphical_set,
|
||||
type = "frame_style",
|
||||
},
|
||||
type = "tabbed_pane_style",
|
||||
parent = "tabbed_pane",
|
||||
width = 420,
|
||||
},
|
||||
display_tab = {
|
||||
type = "tab_style",
|
||||
parent = "filter_group_tab",
|
||||
font = "did-tab-font",
|
||||
top_padding = 8,
|
||||
bottom_padding = 8,
|
||||
minimal_width = 32,
|
||||
horizontally_stretchable = "on",
|
||||
horizontally_squashable = "on",
|
||||
},
|
||||
display_frame = {
|
||||
type = "frame_style",
|
||||
parent = "frame",
|
||||
bottom_padding = 8,
|
||||
vertical_flow_style = {
|
||||
type = "vertical_flow_style",
|
||||
vertical_spacing = 0,
|
||||
horizontal_align = "center",
|
||||
},
|
||||
},
|
||||
display_deep_frame = {
|
||||
type = "frame_style",
|
||||
parent = "inside_deep_frame",
|
||||
vertical_flow_style = {
|
||||
type = "vertical_flow_style",
|
||||
vertical_spacing = 0,
|
||||
horizontal_align = "center",
|
||||
},
|
||||
},
|
||||
display_tab_deep_frame = {
|
||||
type = "frame_style",
|
||||
parent = "subpanel_inset_frame",
|
||||
vertical_flow_style = {
|
||||
type = "vertical_flow_style",
|
||||
vertical_spacing = 0,
|
||||
padding = 0,
|
||||
},
|
||||
graphical_set = {
|
||||
base = {
|
||||
center = {
|
||||
position = {42,8},
|
||||
size = {1,1},
|
||||
},
|
||||
corner_size = 8,
|
||||
draw_type = "outer",
|
||||
position = {85,0},
|
||||
},
|
||||
shadow = data.raw["gui-style"]["default"]["inside_deep_frame"].graphical_set.shadow,
|
||||
},
|
||||
background_graphical_set = {
|
||||
corner_size = 8,
|
||||
overall_tiling_horizontal_padding = 5,
|
||||
overall_tiling_horizontal_size = 30,
|
||||
overall_tiling_horizontal_spacing = 10,
|
||||
overall_tiling_vertical_padding = 5,
|
||||
overall_tiling_vertical_size = 30,
|
||||
overall_tiling_vertical_spacing = 10,
|
||||
position = { 282, 17 },
|
||||
},
|
||||
},
|
||||
display_buttons = {
|
||||
type = "table_style",
|
||||
horizontal_spacing = 0,
|
||||
vertical_spacing = 0,
|
||||
},
|
||||
display_button_selected = {
|
||||
type = "button_style",
|
||||
parent = "quick_bar_slot_button",
|
||||
default_graphical_set = data.raw["gui-style"]["default"]["CGUI_filter_slot_button"].selected_graphical_set
|
||||
},
|
||||
display_fake_header = {
|
||||
type = "frame_style",
|
||||
height = 24,
|
||||
graphical_set = data.raw["gui-style"]["default"]["draggable_space"].graphical_set,
|
||||
use_header_filler = false,
|
||||
horizontally_stretchable = "on",
|
||||
vertical_align = "center",
|
||||
alignment = "right",
|
||||
left_margin = data.raw["gui-style"]["default"]["draggable_space"].left_margin,
|
||||
right_margin = data.raw["gui-style"]["default"]["draggable_space"].right_margin,
|
||||
},
|
||||
display_small_button = {
|
||||
type = "button_style",
|
||||
parent = "frame_action_button_no_border",
|
||||
left_margin = 1,
|
||||
right_margin = 1,
|
||||
},
|
||||
display_small_button_active = {
|
||||
type = "button_style",
|
||||
parent = "display_small_button",
|
||||
default_graphical_set = data.raw["gui-style"]["default"]["frame_button"].clicked_graphical_set,
|
||||
},
|
||||
})
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- controls / misc media
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "custom-input",
|
||||
name = "deadlock-open-gui",
|
||||
key_sequence = "",
|
||||
linked_game_control = "open-gui",
|
||||
},
|
||||
{
|
||||
type = "custom-input",
|
||||
name = "deadlock-focus-search",
|
||||
key_sequence = "",
|
||||
linked_game_control = "focus-search",
|
||||
},
|
||||
{
|
||||
type = "font",
|
||||
name = "did-tab-font",
|
||||
from = "default",
|
||||
size = 32,
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "display-map-marker",
|
||||
filename = get_icon_path("map-marker",32),
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
mipmap_count = 2,
|
||||
scale = 0.5,
|
||||
flags = {"gui-icon"},
|
||||
},
|
||||
{
|
||||
type = "sound",
|
||||
name = "map-marker-ping",
|
||||
variations = {
|
||||
filename = DID.sound_path.."/ping.ogg",
|
||||
volume = 0.9
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "sound",
|
||||
name = "map-marker-pong",
|
||||
variations = {
|
||||
filename = DID.sound_path.."/pong.ogg",
|
||||
volume = 0.9
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- DEADLOCK'S INDUSTRIAL DISPLAYS
|
||||
-- Forked from Industrial Revolution, for your signage pleasure
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- constants
|
||||
|
||||
local DID = require("globals")
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- functions
|
||||
|
||||
local function get_icon_path(name, icon_size)
|
||||
return string.format("%s/%s/%s.png", DID.icon_path, tostring(icon_size or DID.icon_size), name)
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- prototypes
|
||||
|
||||
local dimensions = {
|
||||
[1] = {width = 80, height = 80},
|
||||
[2] = {width = 134, height = 134},
|
||||
[3] = {width = 196, height = 196},
|
||||
}
|
||||
|
||||
local shadow_dimensions = {
|
||||
[1] = {width = 80, height = 80, sprite = "display-shadow-small"},
|
||||
[2] = {width = 146, height = 134, sprite = "display-shadow-medium"},
|
||||
[3] = {width = 204, height = 204, sprite = "display-shadow"},
|
||||
}
|
||||
|
||||
data:extend({{
|
||||
name = "display-plates",
|
||||
type = "item-subgroup",
|
||||
group = "logistics",
|
||||
order = "z[display-plates]"
|
||||
}})
|
||||
|
||||
local count = 1
|
||||
for display,displaydata in pairs(DID.displays) do
|
||||
local size = (string.find(display,"small") and 1) or (string.find(display,"medium") and 2) or 3
|
||||
local box_size = size * 0.5
|
||||
data:extend({
|
||||
{
|
||||
name = display,
|
||||
type = "simple-entity-with-owner",
|
||||
localised_description = {"entity-description.display"},
|
||||
render_layer = "lower-object",
|
||||
icon = get_icon_path(display),
|
||||
icon_size = DID.icon_size,
|
||||
icon_mipmaps = DID.icon_mipmaps,
|
||||
corpse = "small-remnants",
|
||||
fast_replaceable_group = "display",
|
||||
minable = {
|
||||
mining_time = 0.2,
|
||||
result = display,
|
||||
},
|
||||
max_health = 10 + size * 30,
|
||||
flags = {"placeable-player", "placeable-neutral", "player-creation"},
|
||||
collision_box = { {-box_size+0.1, -box_size+0.1}, {box_size-0.1, box_size-0.1} },
|
||||
selection_box = { {-box_size, -box_size}, {box_size, box_size} },
|
||||
collision_mask = {
|
||||
"object-layer",
|
||||
"water-tile",
|
||||
},
|
||||
open_sound = {
|
||||
filename = DID.base_sound_path.."/machine-open.ogg",
|
||||
volume = 0.5
|
||||
},
|
||||
close_sound = {
|
||||
filename = DID.base_sound_path.."/machine-close.ogg",
|
||||
volume = 0.5
|
||||
},
|
||||
mined_sound = {
|
||||
filename = DID.core_sound_path.."/deconstruct-medium.ogg"
|
||||
},
|
||||
resistances = {
|
||||
{
|
||||
type = "fire",
|
||||
percent = 75
|
||||
},
|
||||
},
|
||||
picture = {
|
||||
layers = {
|
||||
{
|
||||
filename = string.format("%s/"..display..".png", DID.sprites_path),
|
||||
priority = "high",
|
||||
shift = {0,0},
|
||||
height = dimensions[size].height,
|
||||
width = dimensions[size].width,
|
||||
scale = 0.5,
|
||||
},
|
||||
{
|
||||
filename = string.format("%s/%s.png", DID.sprites_path, shadow_dimensions[size].sprite),
|
||||
priority = "high",
|
||||
shift = {0,0},
|
||||
height = shadow_dimensions[size].height,
|
||||
width = shadow_dimensions[size].width,
|
||||
scale = 0.5,
|
||||
draw_as_shadow = true,
|
||||
},
|
||||
}
|
||||
},
|
||||
random_variation_on_create = false,
|
||||
},
|
||||
{
|
||||
type = "item",
|
||||
name = display,
|
||||
order = "z["..count.."]",
|
||||
subgroup = "display-plates",
|
||||
stack_size = 100,
|
||||
icon = get_icon_path(display),
|
||||
icon_size = DID.icon_size,
|
||||
icon_mipmaps = DID.icon_mipmaps,
|
||||
place_result = display,
|
||||
},
|
||||
{
|
||||
type = "recipe",
|
||||
name = display,
|
||||
order = "z["..count.."]",
|
||||
result = display,
|
||||
result_count = 1,
|
||||
category = "crafting",
|
||||
enabled = (mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil)) or (not mods["IndustrialRevolution"] and displaydata.unlock == nil),
|
||||
ingredients = displaydata.ingredients,
|
||||
energy_required = 1,
|
||||
}
|
||||
})
|
||||
count = count + 1
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- styles
|
||||
|
||||
local function add_styles(styles)
|
||||
local default_styles = data.raw["gui-style"]["default"]
|
||||
for name, style in pairs(styles) do
|
||||
default_styles[name] = style
|
||||
end
|
||||
end
|
||||
|
||||
add_styles({
|
||||
display_tabbed_pane = {
|
||||
tab_container = {
|
||||
horizontal_spacing = 0,
|
||||
left_padding = 0,
|
||||
right_padding = 0,
|
||||
horizontal_align = "center",
|
||||
type = "horizontal_flow_style",
|
||||
},
|
||||
tab_content_frame = {
|
||||
bottom_padding = 8,
|
||||
left_padding = 10,
|
||||
right_padding = 10,
|
||||
top_padding = 8,
|
||||
type = "frame_style",
|
||||
graphical_set = data.raw["gui-style"]["default"]["filter_tabbed_pane"]["tab_content_frame"].graphical_set,
|
||||
},
|
||||
type = "tabbed_pane_style",
|
||||
parent = "filter_tabbed_pane",
|
||||
width = 420,
|
||||
},
|
||||
display_tab = {
|
||||
type = "tab_style",
|
||||
parent = "filter_group_tab",
|
||||
font = "did-tab-font",
|
||||
top_padding = 8,
|
||||
bottom_padding = 8,
|
||||
minimal_width = 32,
|
||||
horizontally_stretchable = "on",
|
||||
horizontally_squashable = "on",
|
||||
},
|
||||
display_frame = {
|
||||
type = "frame_style",
|
||||
parent = "frame",
|
||||
bottom_padding = 8,
|
||||
vertical_flow_style = {
|
||||
type = "vertical_flow_style",
|
||||
vertical_spacing = 0,
|
||||
horizontal_align = "center",
|
||||
},
|
||||
},
|
||||
display_inside_frame = {
|
||||
type = "frame_style",
|
||||
parent = "inside_shallow_frame",
|
||||
vertical_flow_style = {
|
||||
type = "vertical_flow_style",
|
||||
vertical_spacing = 0,
|
||||
horizontal_align = "center",
|
||||
},
|
||||
},
|
||||
display_tab_deep_frame = {
|
||||
type = "frame_style",
|
||||
parent = "slot_button_deep_frame",
|
||||
},
|
||||
display_buttons = {
|
||||
type = "table_style",
|
||||
horizontal_spacing = 0,
|
||||
vertical_spacing = 0,
|
||||
},
|
||||
display_button_selected = {
|
||||
type = "button_style",
|
||||
parent = "quick_bar_slot_button",
|
||||
default_graphical_set = data.raw["gui-style"]["default"]["slot_button"].selected_graphical_set
|
||||
},
|
||||
display_fake_header = {
|
||||
type = "frame_style",
|
||||
height = 24,
|
||||
graphical_set = data.raw["gui-style"]["default"]["draggable_space"].graphical_set,
|
||||
use_header_filler = false,
|
||||
horizontally_stretchable = "on",
|
||||
vertical_align = "center",
|
||||
alignment = "right",
|
||||
left_margin = data.raw["gui-style"]["default"]["draggable_space"].left_margin,
|
||||
right_margin = data.raw["gui-style"]["default"]["draggable_space"].right_margin,
|
||||
},
|
||||
display_small_button = {
|
||||
type = "button_style",
|
||||
parent = "frame_action_button",
|
||||
left_margin = 1,
|
||||
right_margin = 1,
|
||||
},
|
||||
display_small_button_active = {
|
||||
type = "button_style",
|
||||
parent = "display_small_button",
|
||||
default_graphical_set = data.raw["gui-style"]["default"]["frame_button"].clicked_graphical_set,
|
||||
},
|
||||
})
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
-- controls / misc media
|
||||
|
||||
data:extend({
|
||||
{
|
||||
type = "custom-input",
|
||||
name = "deadlock-open-gui",
|
||||
key_sequence = "",
|
||||
linked_game_control = "open-gui",
|
||||
},
|
||||
{
|
||||
type = "custom-input",
|
||||
name = "deadlock-focus-search",
|
||||
key_sequence = "",
|
||||
linked_game_control = "focus-search",
|
||||
},
|
||||
{
|
||||
type = "font",
|
||||
name = "did-tab-font",
|
||||
from = "default",
|
||||
size = 32,
|
||||
},
|
||||
{
|
||||
type = "sprite",
|
||||
name = "display-map-marker",
|
||||
filename = get_icon_path("map-marker",32),
|
||||
priority = "extra-high",
|
||||
width = 32,
|
||||
height = 32,
|
||||
flags = {"gui-icon"},
|
||||
},
|
||||
{
|
||||
type = "sound",
|
||||
name = "map-marker-ping",
|
||||
variations = {
|
||||
filename = DID.sound_path.."/ping.ogg",
|
||||
volume = 0.9
|
||||
}
|
||||
},
|
||||
{
|
||||
type = "sound",
|
||||
name = "map-marker-pong",
|
||||
variations = {
|
||||
filename = DID.sound_path.."/pong.ogg",
|
||||
volume = 0.9
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
+10
-10
@@ -20,30 +20,30 @@ return {
|
||||
},
|
||||
["iron-display-small"] = {
|
||||
ingredients = {{"iron-plate",1}},
|
||||
IR_unlock = "deadlock-iron-age",
|
||||
IR_unlock = "ir2-iron-milestone",
|
||||
},
|
||||
["iron-display-medium"] = {
|
||||
ingredients = {{"iron-plate",4}},
|
||||
IR_unlock = "deadlock-iron-age",
|
||||
IR_unlock = "ir2-iron-milestone",
|
||||
},
|
||||
["iron-display"] = {
|
||||
ingredients = {{"iron-plate",9}},
|
||||
IR_unlock = "deadlock-iron-age",
|
||||
IR_unlock = "ir2-iron-milestone",
|
||||
},
|
||||
["steel-display-small"] = {
|
||||
ingredients = {{"steel-plate",1}},
|
||||
unlock = "steel-processing",
|
||||
IR_unlock = "deadlock-steel-age",
|
||||
IR_unlock = "ir2-steel-milestone",
|
||||
},
|
||||
["steel-display-medium"] = {
|
||||
ingredients = {{"steel-plate",4}},
|
||||
unlock = "steel-processing",
|
||||
IR_unlock = "deadlock-steel-age",
|
||||
IR_unlock = "ir2-steel-milestone",
|
||||
},
|
||||
["steel-display"] = {
|
||||
ingredients = {{"steel-plate",9}},
|
||||
unlock = "steel-processing",
|
||||
IR_unlock = "deadlock-steel-age",
|
||||
IR_unlock = "ir2-steel-milestone",
|
||||
},
|
||||
},
|
||||
sizes = {
|
||||
@@ -60,14 +60,14 @@ return {
|
||||
},
|
||||
icon_size = 64,
|
||||
icon_mipmaps = 4,
|
||||
icon_path = "__IndustrialDisplays__/graphics/icons",
|
||||
sprites_path = "__IndustrialDisplays__/graphics/entities",
|
||||
sound_path = "__IndustrialDisplays__/sound",
|
||||
icon_path = "__IndustrialDisplayPlates__/graphics/icons",
|
||||
sprites_path = "__IndustrialDisplayPlates__/graphics/entities",
|
||||
sound_path = "__IndustrialDisplayPlates__/sound",
|
||||
base_sound_path = "__base__/sound",
|
||||
core_sound_path = "__core__/sound",
|
||||
base_icons_path = "__base__/graphics/icons",
|
||||
custom_gui = "DID_gui",
|
||||
mod_name = "IndustrialDisplays",
|
||||
mod_name = "IndustrialDisplayPlates",
|
||||
grid_columns = 10,
|
||||
pending_translation_value = "",
|
||||
}
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 769 B |
@@ -1,10 +1,13 @@
|
||||
{
|
||||
"name": "IndustrialDisplayPlates",
|
||||
"version": "0.18.0",
|
||||
"version": "0.18.5",
|
||||
"title": "Industrial Display Plates",
|
||||
"author": "Wyrrrd",
|
||||
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
|
||||
"dependencies": ["base >= 0.18.13"],
|
||||
"dependencies": [
|
||||
"base >= 0.18.27",
|
||||
"(?)IndustrialRevolution"
|
||||
],
|
||||
"description": "Big, medium and small signs which display item and fluid icons. Can be used to blueprint map markers.",
|
||||
"factorio_version": "0.18"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
local DID = require("globals")
|
||||
|
||||
for index, force in pairs(game.forces) do
|
||||
for display,displaydata in pairs(DID.displays) do
|
||||
if displaydata.IR_unlock and force.technologies[displaydata.IR_unlock] and force.technologies[displaydata.IR_unlock].researched then
|
||||
force.recipes[display].enabled = true
|
||||
elseif displaydata.unlock and force.technologies[displaydata.unlock] and force.technologies[displaydata.unlock].researched then
|
||||
force.recipes[display].enabled = true
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user