Compare commits
43 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0bebedf09b | |||
| 4bf7bf8333 | |||
| d60715fdd7 | |||
| e7d44327e8 | |||
| fd7ab16354 | |||
| 18299fd3f5 | |||
| 9d8443c9b2 | |||
| be669f7b3e | |||
| e49a69058b | |||
| bf22a80ca9 | |||
| 14eec22025 | |||
| 6290cf9647 | |||
| 2aa09fba3d | |||
| ed398933ac | |||
| acbee5c1e7 | |||
| f33d7a6f1b | |||
| 8e126bee36 | |||
| 59d19f1dd1 | |||
| 68503cbf0e | |||
| 1a7717e03a | |||
| e619083b57 | |||
| 1d4fbf6365 | |||
| 5d5b2f730b | |||
| 0503448c97 | |||
| 92c591e731 | |||
| a544aa53c3 | |||
| 301de33990 | |||
| f8815dd4ec | |||
| 4587cff6ab | |||
| 60dd9847a3 | |||
| 48244eaefd | |||
| cfdbe21542 | |||
| 36c04830c9 | |||
| b94b3782c6 | |||
| 5211c8f3dd | |||
| 480f7efde2 | |||
| 78fec4fcff | |||
| 7612c840c0 | |||
| 66587c503d | |||
| 3c2e3eb6d6 | |||
| 59aa449911 | |||
| 423cf5aff2 | |||
| f026c767d8 |
@@ -1 +1,2 @@
|
|||||||
*.zip
|
*.zip
|
||||||
|
.vscode/*
|
||||||
|
|||||||
+2
-2
@@ -5,9 +5,9 @@ CREDITS
|
|||||||
|
|
||||||
All code and graphics created by Deadlock989, with the following exceptions.
|
All code and graphics created by Deadlock989, with the following exceptions.
|
||||||
|
|
||||||
Code and graphics modifications after 2020-04-08 by Wyrrrd.
|
Code and graphics modifications after 2020-04-08 by Wyrrrd, ickputzdirwech, Friendch, dwightkung and Deadlock989.
|
||||||
For the latest unmodified version, see https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/cd8778eb3b11f8bde5418088253123b1029dc461
|
For the latest unmodified version, see https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/cd8778eb3b11f8bde5418088253123b1029dc461
|
||||||
|
|
||||||
Sounds by thomasevd and Raclure @ freesound.org.
|
Sounds by thomasevd and Raclure @ freesound.org.
|
||||||
|
|
||||||
Thanks to TheStaplergun for getting me started on GUIs and to others for scripting help.
|
Thanks to TheStaplergun for getting me started on GUIs and to others for scripting help.
|
||||||
|
|||||||
@@ -1,12 +1,18 @@
|
|||||||
|
⚠ **This repository is archived.** ⚠
|
||||||
|
|
||||||
|
Though I have had great plans with this mod, I cannot find the time to maintain it properly. Luckily, the mod will not die, you can migrate to [Flydiverny's fork](https://github.com/Flydiverny/IndustrialDisplayPlates). I will try to merge the new features and fixes over to their fork in the meantime...
|
||||||
|
|
||||||
# Industrial Display Plates
|
# Industrial Display Plates
|
||||||
<img src="https://raw.githubusercontent.com/Wyrrrd/IndustrialDisplayPlates/master/thumbnail.png" width="128" height="128">
|
<img src="https://raw.githubusercontent.com/Wyrrrd/IndustrialDisplayPlates/master/thumbnail.png" width="144" height="144">
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
Big, medium and small signs to display item and fluid icons. Can be used to blueprint map markers.
|
Big, medium and small signs to display item, fluid and signal icons. Can be used to blueprint map markers.
|
||||||
|
|
||||||
### Locale
|
### Locale
|
||||||
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/master/locale). I'd be happy to add your language and credits to the next release.
|
If you want to contribute by translating this mod, you can view the existing translations [here](https://github.com/Wyrrrd/IndustrialDisplayPlates/tree/master/locale). I'd be happy to add your language and credits to the next release.
|
||||||
|
|
||||||
### Credits
|
### Credits
|
||||||
Thanks to [Deadlock989](https://mods.factorio.com/user/Deadlock989) for the [original mod](https://mods.factorio.com/mod/IndustrialDisplays).
|
Thanks to [Deadlock989](https://mods.factorio.com/user/Deadlock989) for the [original mod](https://mods.factorio.com/mod/IndustrialDisplays).
|
||||||
Sounds by thomasevd and Raclure on freesound.org.
|
Sounds by thomasevd and Raclure on freesound.org.
|
||||||
|
Thanks to [Friendch](https://mods.factorio.com/user/Friendch) for the french translation.
|
||||||
|
Thanks to [dwightkung](https://github.com/dwightkung) for the simplified chinese translation.
|
||||||
|
|||||||
+52
-1
@@ -1,4 +1,55 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.6
|
||||||
|
Date: 2023-04-10
|
||||||
|
Changes:
|
||||||
|
- Add deprecation info
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.5
|
||||||
|
Date: 2023-03-15
|
||||||
|
Locale:
|
||||||
|
- Added simplified Chinese translation (thanks to dwightkung)
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.4
|
||||||
|
Date: 2021-09-07
|
||||||
|
Bugfixes:
|
||||||
|
- fixed crash and unwanted behaviour introduced with last release
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.3
|
||||||
|
Date: 2021-09-06
|
||||||
|
Bugfixes:
|
||||||
|
- Implemented controlled error message for blueprint update bug in factorio to avoid crash
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.2
|
||||||
|
Date: 2021-08-21
|
||||||
|
Changes:
|
||||||
|
- Made virtual signals available (snouz)
|
||||||
|
- Softer map ping sound
|
||||||
|
Locale:
|
||||||
|
- Adjusted French translation
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.1
|
||||||
|
Date: 2021-08-08
|
||||||
|
Locale:
|
||||||
|
- Added French translation (thanks to Friendch)
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
Version: 1.1.0
|
||||||
|
Date: 2020-12-02
|
||||||
|
Changes:
|
||||||
|
- Version bump for base game 1.1
|
||||||
|
---------------------------------------------------------------------------------------------------
|
||||||
|
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
|
Version: 0.18.2
|
||||||
Date: 2020-08-02
|
Date: 2020-08-02
|
||||||
Changes:
|
Changes:
|
||||||
@@ -77,4 +128,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.
|
- 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.
|
- Copper, iron and steel displays are provided by default.
|
||||||
- Now uses ghost tags instead of hax to store plate settings in blueprints.
|
- 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.
|
||||||
|
|||||||
+632
-581
File diff suppressed because it is too large
Load Diff
@@ -1,315 +1,286 @@
|
|||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- DEADLOCK'S INDUSTRIAL DISPLAYS
|
-- DEADLOCK'S INDUSTRIAL DISPLAYS
|
||||||
-- Forked from Industrial Revolution, for your signage pleasure
|
-- Forked from Industrial Revolution, for your signage pleasure
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- constants
|
-- constants
|
||||||
|
|
||||||
local DID = require("globals")
|
local DID = require("globals")
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- functions
|
-- functions
|
||||||
|
|
||||||
local function get_icon_path(name, icon_size)
|
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)
|
return string.format("%s/%s/%s.png", DID.icon_path, tostring(icon_size or DID.icon_size), name)
|
||||||
end
|
end
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- prototypes
|
-- prototypes
|
||||||
|
|
||||||
local dimensions = {
|
local dimensions = {
|
||||||
[1] = {width = 80, height = 80},
|
[1] = {width = 80, height = 80},
|
||||||
[2] = {width = 134, height = 134},
|
[2] = {width = 134, height = 134},
|
||||||
[3] = {width = 196, height = 196},
|
[3] = {width = 196, height = 196},
|
||||||
}
|
}
|
||||||
|
|
||||||
local shadow_dimensions = {
|
local shadow_dimensions = {
|
||||||
[1] = {width = 80, height = 80, sprite = "display-shadow-small"},
|
[1] = {width = 80, height = 80, sprite = "display-shadow-small"},
|
||||||
[2] = {width = 146, height = 134, sprite = "display-shadow-medium"},
|
[2] = {width = 146, height = 134, sprite = "display-shadow-medium"},
|
||||||
[3] = {width = 204, height = 204, sprite = "display-shadow"},
|
[3] = {width = 204, height = 204, sprite = "display-shadow"},
|
||||||
}
|
}
|
||||||
|
|
||||||
data:extend({{
|
data:extend({{
|
||||||
name = "display-plates",
|
name = "display-plates",
|
||||||
type = "item-subgroup",
|
type = "item-subgroup",
|
||||||
group = "logistics",
|
group = "logistics",
|
||||||
order = "z[display-plates]"
|
order = "z[display-plates]"
|
||||||
}})
|
}})
|
||||||
|
|
||||||
local count = 1
|
local count = 1
|
||||||
for display,displaydata in pairs(DID.displays) do
|
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 size = (string.find(display,"small") and 1) or (string.find(display,"medium") and 2) or 3
|
||||||
local box_size = size * 0.5
|
local box_size = size * 0.5
|
||||||
data:extend({
|
data:extend({
|
||||||
{
|
{
|
||||||
name = display,
|
name = display,
|
||||||
type = "simple-entity-with-owner",
|
type = "simple-entity-with-owner",
|
||||||
localised_description = {"entity-description.display"},
|
localised_description = {"entity-description.display"},
|
||||||
render_layer = "lower-object",
|
render_layer = "lower-object",
|
||||||
icon = get_icon_path(display),
|
icon = get_icon_path(display),
|
||||||
icon_size = DID.icon_size,
|
icon_size = DID.icon_size,
|
||||||
icon_mipmaps = DID.icon_mipmaps,
|
icon_mipmaps = DID.icon_mipmaps,
|
||||||
corpse = "small-remnants",
|
corpse = "small-remnants",
|
||||||
fast_replaceable_group = "display",
|
fast_replaceable_group = "display",
|
||||||
minable = {
|
minable = {
|
||||||
mining_time = 0.2,
|
mining_time = 0.2,
|
||||||
result = display,
|
result = display,
|
||||||
},
|
},
|
||||||
max_health = 10 + size * 30,
|
max_health = 10 + size * 30,
|
||||||
flags = {"placeable-player", "placeable-neutral", "player-creation"},
|
flags = {"placeable-player", "placeable-neutral", "player-creation", "not-rotatable"},
|
||||||
collision_box = { {-box_size+0.1, -box_size+0.1}, {box_size-0.1, box_size-0.1} },
|
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} },
|
selection_box = { {-box_size, -box_size}, {box_size, box_size} },
|
||||||
collision_mask = {
|
collision_mask = {
|
||||||
"object-layer",
|
"object-layer",
|
||||||
"water-tile",
|
"water-tile",
|
||||||
},
|
},
|
||||||
open_sound = {
|
open_sound = {
|
||||||
filename = DID.base_sound_path.."/machine-open.ogg",
|
filename = DID.base_sound_path.."/machine-open.ogg",
|
||||||
volume = 0.5
|
volume = 0.5
|
||||||
},
|
},
|
||||||
close_sound = {
|
close_sound = {
|
||||||
filename = DID.base_sound_path.."/machine-close.ogg",
|
filename = DID.base_sound_path.."/machine-close.ogg",
|
||||||
volume = 0.5
|
volume = 0.5
|
||||||
},
|
},
|
||||||
mined_sound = {
|
mined_sound = {
|
||||||
filename = DID.core_sound_path.."/deconstruct-medium.ogg"
|
filename = DID.core_sound_path.."/deconstruct-medium.ogg"
|
||||||
},
|
},
|
||||||
resistances = {
|
resistances = {
|
||||||
{
|
{
|
||||||
type = "fire",
|
type = "fire",
|
||||||
percent = 75
|
percent = 75
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
picture = {
|
picture = {
|
||||||
layers = {
|
layers = {
|
||||||
{
|
{
|
||||||
filename = string.format("%s/"..display..".png", DID.sprites_path),
|
filename = string.format("%s/"..display..".png", DID.sprites_path),
|
||||||
priority = "high",
|
priority = "high",
|
||||||
shift = {0,0},
|
shift = {0,0},
|
||||||
height = dimensions[size].height,
|
height = dimensions[size].height,
|
||||||
width = dimensions[size].width,
|
width = dimensions[size].width,
|
||||||
scale = 0.5,
|
scale = 0.5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
filename = string.format("%s/%s.png", DID.sprites_path, shadow_dimensions[size].sprite),
|
filename = string.format("%s/%s.png", DID.sprites_path, shadow_dimensions[size].sprite),
|
||||||
priority = "high",
|
priority = "high",
|
||||||
shift = {0,0},
|
shift = {0,0},
|
||||||
height = shadow_dimensions[size].height,
|
height = shadow_dimensions[size].height,
|
||||||
width = shadow_dimensions[size].width,
|
width = shadow_dimensions[size].width,
|
||||||
scale = 0.5,
|
scale = 0.5,
|
||||||
draw_as_shadow = true,
|
draw_as_shadow = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
random_variation_on_create = false,
|
random_variation_on_create = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "item",
|
type = "item",
|
||||||
name = display,
|
name = display,
|
||||||
order = "z["..count.."]",
|
order = "z["..count.."]",
|
||||||
subgroup = "display-plates",
|
subgroup = "display-plates",
|
||||||
stack_size = 100,
|
stack_size = 100,
|
||||||
icon = get_icon_path(display),
|
icon = get_icon_path(display),
|
||||||
icon_size = DID.icon_size,
|
icon_size = DID.icon_size,
|
||||||
icon_mipmaps = DID.icon_mipmaps,
|
icon_mipmaps = DID.icon_mipmaps,
|
||||||
place_result = display,
|
place_result = display,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type = "recipe",
|
type = "recipe",
|
||||||
name = display,
|
name = display,
|
||||||
order = "z["..count.."]",
|
order = "z["..count.."]",
|
||||||
result = display,
|
result = display,
|
||||||
result_count = 1,
|
result_count = 1,
|
||||||
category = "crafting",
|
category = "crafting",
|
||||||
enabled = mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil) or (displaydata.unlock == nil),
|
enabled = (mods["IndustrialRevolution"] and (displaydata.IR_unlock == nil)) or (not mods["IndustrialRevolution"] and displaydata.unlock == nil),
|
||||||
ingredients = displaydata.ingredients,
|
ingredients = displaydata.ingredients,
|
||||||
energy_required = 1,
|
energy_required = 1,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
count = count + 1
|
count = count + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
-- styles
|
-- styles
|
||||||
|
|
||||||
local function add_styles(styles)
|
local function add_styles(styles)
|
||||||
local default_styles = data.raw["gui-style"]["default"]
|
local default_styles = data.raw["gui-style"]["default"]
|
||||||
for name, style in pairs(styles) do
|
for name, style in pairs(styles) do
|
||||||
default_styles[name] = style
|
default_styles[name] = style
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
add_styles({
|
add_styles({
|
||||||
display_tabbed_pane = {
|
display_tabbed_pane = {
|
||||||
tab_container = {
|
tab_container = {
|
||||||
horizontal_spacing = 0,
|
horizontal_spacing = 0,
|
||||||
left_padding = 0,
|
left_padding = 0,
|
||||||
right_padding = 0,
|
right_padding = 0,
|
||||||
horizontal_align = "center",
|
horizontal_align = "center",
|
||||||
type = "horizontal_flow_style",
|
type = "horizontal_flow_style",
|
||||||
},
|
},
|
||||||
tab_content_frame = {
|
tab_content_frame = {
|
||||||
bottom_padding = 8,
|
bottom_padding = 8,
|
||||||
left_padding = 10,
|
left_padding = 10,
|
||||||
right_padding = 10,
|
right_padding = 10,
|
||||||
top_padding = 8,
|
top_padding = 8,
|
||||||
graphical_set = data.raw["gui-style"]["default"]["tabbed_pane"]["tab_content_frame"].graphical_set,
|
type = "frame_style",
|
||||||
type = "frame_style",
|
graphical_set = data.raw["gui-style"]["default"]["filter_tabbed_pane"]["tab_content_frame"].graphical_set,
|
||||||
},
|
},
|
||||||
type = "tabbed_pane_style",
|
type = "tabbed_pane_style",
|
||||||
parent = "tabbed_pane",
|
parent = "filter_tabbed_pane",
|
||||||
width = 420,
|
width = 420,
|
||||||
},
|
},
|
||||||
display_tab = {
|
display_tab = {
|
||||||
type = "tab_style",
|
type = "tab_style",
|
||||||
parent = "filter_group_tab",
|
parent = "filter_group_tab",
|
||||||
font = "did-tab-font",
|
font = "did-tab-font",
|
||||||
top_padding = 8,
|
top_padding = 8,
|
||||||
bottom_padding = 8,
|
bottom_padding = 8,
|
||||||
minimal_width = 32,
|
minimal_width = 32,
|
||||||
horizontally_stretchable = "on",
|
horizontally_stretchable = "on",
|
||||||
horizontally_squashable = "on",
|
horizontally_squashable = "on",
|
||||||
},
|
},
|
||||||
display_frame = {
|
display_frame = {
|
||||||
type = "frame_style",
|
type = "frame_style",
|
||||||
parent = "frame",
|
parent = "frame",
|
||||||
bottom_padding = 8,
|
bottom_padding = 8,
|
||||||
vertical_flow_style = {
|
vertical_flow_style = {
|
||||||
type = "vertical_flow_style",
|
type = "vertical_flow_style",
|
||||||
vertical_spacing = 0,
|
vertical_spacing = 0,
|
||||||
horizontal_align = "center",
|
horizontal_align = "center",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
display_deep_frame = {
|
display_inside_frame = {
|
||||||
type = "frame_style",
|
type = "frame_style",
|
||||||
parent = "inside_deep_frame",
|
parent = "inside_shallow_frame",
|
||||||
vertical_flow_style = {
|
vertical_flow_style = {
|
||||||
type = "vertical_flow_style",
|
type = "vertical_flow_style",
|
||||||
vertical_spacing = 0,
|
vertical_spacing = 0,
|
||||||
horizontal_align = "center",
|
horizontal_align = "center",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
display_tab_deep_frame = {
|
display_tab_deep_frame = {
|
||||||
type = "frame_style",
|
type = "frame_style",
|
||||||
parent = "subpanel_inset_frame",
|
parent = "slot_button_deep_frame",
|
||||||
vertical_flow_style = {
|
},
|
||||||
type = "vertical_flow_style",
|
display_buttons = {
|
||||||
vertical_spacing = 0,
|
type = "table_style",
|
||||||
padding = 0,
|
horizontal_spacing = 0,
|
||||||
},
|
vertical_spacing = 0,
|
||||||
graphical_set = {
|
},
|
||||||
base = {
|
display_button_selected = {
|
||||||
center = {
|
type = "button_style",
|
||||||
position = {42,8},
|
parent = "quick_bar_slot_button",
|
||||||
size = {1,1},
|
default_graphical_set = data.raw["gui-style"]["default"]["slot_button"].selected_graphical_set
|
||||||
},
|
},
|
||||||
corner_size = 8,
|
display_fake_header = {
|
||||||
draw_type = "outer",
|
type = "frame_style",
|
||||||
position = {85,0},
|
height = 24,
|
||||||
},
|
graphical_set = data.raw["gui-style"]["default"]["draggable_space"].graphical_set,
|
||||||
shadow = data.raw["gui-style"]["default"]["inside_deep_frame"].graphical_set.shadow,
|
use_header_filler = false,
|
||||||
},
|
horizontally_stretchable = "on",
|
||||||
background_graphical_set = {
|
vertical_align = "center",
|
||||||
corner_size = 8,
|
alignment = "right",
|
||||||
overall_tiling_horizontal_padding = 5,
|
left_margin = data.raw["gui-style"]["default"]["draggable_space"].left_margin,
|
||||||
overall_tiling_horizontal_size = 30,
|
right_margin = data.raw["gui-style"]["default"]["draggable_space"].right_margin,
|
||||||
overall_tiling_horizontal_spacing = 10,
|
},
|
||||||
overall_tiling_vertical_padding = 5,
|
display_small_button = {
|
||||||
overall_tiling_vertical_size = 30,
|
type = "button_style",
|
||||||
overall_tiling_vertical_spacing = 10,
|
parent = "frame_action_button",
|
||||||
position = { 282, 17 },
|
left_margin = 1,
|
||||||
},
|
right_margin = 1,
|
||||||
},
|
},
|
||||||
display_buttons = {
|
display_small_button_active = {
|
||||||
type = "table_style",
|
type = "button_style",
|
||||||
horizontal_spacing = 0,
|
parent = "display_small_button",
|
||||||
vertical_spacing = 0,
|
default_graphical_set = data.raw["gui-style"]["default"]["frame_button"].clicked_graphical_set,
|
||||||
},
|
},
|
||||||
display_button_selected = {
|
})
|
||||||
type = "button_style",
|
|
||||||
parent = "quick_bar_slot_button",
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
default_graphical_set = data.raw["gui-style"]["default"]["slot_button"].selected_graphical_set
|
|
||||||
},
|
-- controls / misc media
|
||||||
display_fake_header = {
|
|
||||||
type = "frame_style",
|
data:extend({
|
||||||
height = 24,
|
{
|
||||||
graphical_set = data.raw["gui-style"]["default"]["draggable_space"].graphical_set,
|
type = "custom-input",
|
||||||
use_header_filler = false,
|
name = "deadlock-open-gui",
|
||||||
horizontally_stretchable = "on",
|
key_sequence = "",
|
||||||
vertical_align = "center",
|
linked_game_control = "open-gui",
|
||||||
alignment = "right",
|
},
|
||||||
left_margin = data.raw["gui-style"]["default"]["draggable_space"].left_margin,
|
{
|
||||||
right_margin = data.raw["gui-style"]["default"]["draggable_space"].right_margin,
|
type = "custom-input",
|
||||||
},
|
name = "deadlock-focus-search",
|
||||||
display_small_button = {
|
key_sequence = "",
|
||||||
type = "button_style",
|
linked_game_control = "focus-search",
|
||||||
parent = "frame_action_button",
|
},
|
||||||
left_margin = 1,
|
{
|
||||||
right_margin = 1,
|
type = "font",
|
||||||
},
|
name = "did-tab-font",
|
||||||
display_small_button_active = {
|
from = "default",
|
||||||
type = "button_style",
|
size = 32,
|
||||||
parent = "display_small_button",
|
},
|
||||||
default_graphical_set = data.raw["gui-style"]["default"]["frame_button"].clicked_graphical_set,
|
{
|
||||||
},
|
type = "sprite",
|
||||||
})
|
name = "display-map-marker",
|
||||||
|
filename = get_icon_path("map-marker",32),
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
priority = "extra-high",
|
||||||
|
width = 32,
|
||||||
-- controls / misc media
|
height = 32,
|
||||||
|
flags = {"gui-icon"},
|
||||||
data:extend({
|
},
|
||||||
{
|
{
|
||||||
type = "custom-input",
|
type = "sound",
|
||||||
name = "deadlock-open-gui",
|
name = "map-marker-ping",
|
||||||
key_sequence = "",
|
variations = {
|
||||||
linked_game_control = "open-gui",
|
filename = DID.sound_path.."/ping.ogg",
|
||||||
},
|
volume = 0.9
|
||||||
{
|
}
|
||||||
type = "custom-input",
|
},
|
||||||
name = "deadlock-focus-search",
|
{
|
||||||
key_sequence = "",
|
type = "sound",
|
||||||
linked_game_control = "focus-search",
|
name = "map-marker-pong",
|
||||||
},
|
variations = {
|
||||||
{
|
filename = DID.sound_path.."/pong.ogg",
|
||||||
type = "font",
|
volume = 0.9
|
||||||
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
|
|
||||||
}
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
||||||
|
|||||||
+8
-6
@@ -20,30 +20,30 @@ return {
|
|||||||
},
|
},
|
||||||
["iron-display-small"] = {
|
["iron-display-small"] = {
|
||||||
ingredients = {{"iron-plate",1}},
|
ingredients = {{"iron-plate",1}},
|
||||||
IR_unlock = "deadlock-iron-age",
|
IR_unlock = "ir2-iron-milestone",
|
||||||
},
|
},
|
||||||
["iron-display-medium"] = {
|
["iron-display-medium"] = {
|
||||||
ingredients = {{"iron-plate",4}},
|
ingredients = {{"iron-plate",4}},
|
||||||
IR_unlock = "deadlock-iron-age",
|
IR_unlock = "ir2-iron-milestone",
|
||||||
},
|
},
|
||||||
["iron-display"] = {
|
["iron-display"] = {
|
||||||
ingredients = {{"iron-plate",9}},
|
ingredients = {{"iron-plate",9}},
|
||||||
IR_unlock = "deadlock-iron-age",
|
IR_unlock = "ir2-iron-milestone",
|
||||||
},
|
},
|
||||||
["steel-display-small"] = {
|
["steel-display-small"] = {
|
||||||
ingredients = {{"steel-plate",1}},
|
ingredients = {{"steel-plate",1}},
|
||||||
unlock = "steel-processing",
|
unlock = "steel-processing",
|
||||||
IR_unlock = "deadlock-steel-age",
|
IR_unlock = "ir2-steel-milestone",
|
||||||
},
|
},
|
||||||
["steel-display-medium"] = {
|
["steel-display-medium"] = {
|
||||||
ingredients = {{"steel-plate",4}},
|
ingredients = {{"steel-plate",4}},
|
||||||
unlock = "steel-processing",
|
unlock = "steel-processing",
|
||||||
IR_unlock = "deadlock-steel-age",
|
IR_unlock = "ir2-steel-milestone",
|
||||||
},
|
},
|
||||||
["steel-display"] = {
|
["steel-display"] = {
|
||||||
ingredients = {{"steel-plate",9}},
|
ingredients = {{"steel-plate",9}},
|
||||||
unlock = "steel-processing",
|
unlock = "steel-processing",
|
||||||
IR_unlock = "deadlock-steel-age",
|
IR_unlock = "ir2-steel-milestone",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sizes = {
|
sizes = {
|
||||||
@@ -54,9 +54,11 @@ return {
|
|||||||
elem_prototypes = {
|
elem_prototypes = {
|
||||||
item = "item_prototypes",
|
item = "item_prototypes",
|
||||||
fluid = "fluid_prototypes",
|
fluid = "fluid_prototypes",
|
||||||
|
["virtual-signal"] = "virtual_signal_prototypes",
|
||||||
},
|
},
|
||||||
group_blacklist = {
|
group_blacklist = {
|
||||||
["creative-mod_creative-tools"] = true,
|
["creative-mod_creative-tools"] = true,
|
||||||
|
["other"] = true,
|
||||||
},
|
},
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
icon_mipmaps = 4,
|
icon_mipmaps = 4,
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 949 B After Width: | Height: | Size: 769 B |
@@ -1,12 +1,13 @@
|
|||||||
{
|
{
|
||||||
"name": "IndustrialDisplayPlates",
|
"name": "IndustrialDisplayPlates",
|
||||||
"version": "0.18.2",
|
"version": "1.1.6",
|
||||||
"title": "Industrial Display Plates",
|
"title": "Industrial Display Plates",
|
||||||
"author": "Wyrrrd",
|
"author": "Wyrrrd",
|
||||||
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
|
"homepage": "https://github.com/Wyrrrd/IndustrialDisplayPlates",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"base >= 0.18.27"
|
"base >= 1.1.0",
|
||||||
|
"(?)IndustrialRevolution"
|
||||||
],
|
],
|
||||||
"description": "Big, medium and small signs which display item and fluid icons. Can be used to blueprint map markers.",
|
"description": "Big, medium and small signs which display item, fluid and signal icons. Can be used to blueprint map markers.",
|
||||||
"factorio_version": "0.18"
|
"factorio_version": "1.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
[display-plates]
|
||||||
|
blueprint-wont-have-icons=Dieser aktualisierte Blaupause wird keine Symbole oder Kartenmarkierungen der Anzeigeplatten enthalten. Um diese hinzuzufügen, erstelle eine neue Blaupause.
|
||||||
|
mod-migration-info=Die Mod "IndustrialDisplayPlates" wird demnächst eingestellt. Bitte migrieren Sie auf "DisplayPlates" wie auf der Mod-Portal-Seite beschrieben.
|
||||||
|
|
||||||
[entity-name]
|
[entity-name]
|
||||||
copper-display=Kupferanzeigeplatte (groß)
|
copper-display=Kupferanzeigeplatte (groß)
|
||||||
iron-display=Eisenanzeigeplatte (groß)
|
iron-display=Eisenanzeigeplatte (groß)
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
[display-plates]
|
||||||
|
blueprint-wont-have-icons=This updated blueprint will not contain any icons or map markers of the display plates. To include them, create a new blueprint.
|
||||||
|
mod-migration-info=The mod "IndustrialDisplayPlates" will retire soon. Please migrate to "DisplayPlates" as described on the mod portal page.
|
||||||
|
|
||||||
[entity-name]
|
[entity-name]
|
||||||
copper-display=Copper display plate (large)
|
copper-display=Copper display plate (large)
|
||||||
iron-display=Iron display plate (large)
|
iron-display=Iron display plate (large)
|
||||||
|
|||||||
@@ -0,0 +1,21 @@
|
|||||||
|
[display-plates]
|
||||||
|
blueprint-wont-have-icons=Ce plan mis à jour ne contiendra pas les icônes ni les marqueurs de carte des panneaux d'affichage. Pour les inclure, créez-en un nouveau.
|
||||||
|
mod-migration-info=Le mod "IndustrialDisplayPlates" sera bientôt retiré. Veuillez migrer vers "DisplayPlates" comme décrit sur la page portail du mod.
|
||||||
|
|
||||||
|
[entity-name]
|
||||||
|
copper-display=Panneau d'affichage en Cuivre (Grand)
|
||||||
|
iron-display=Panneau d'affichage en Fer (Grand)
|
||||||
|
steel-display=Panneau d'affichage en Acier (Grand)
|
||||||
|
copper-display-medium=Panneau d'affichage en Cuivre (Moyen)
|
||||||
|
iron-display-medium=Panneau d'affichage en Fer (Moyen)
|
||||||
|
steel-display-medium=Panneau d'affichage en Acier (Moyen)
|
||||||
|
copper-display-small=Panneau d'affichage en Cuivre (Petit)
|
||||||
|
iron-display-small=Panneau d'affichage en Fer (Petit)
|
||||||
|
steel-display-small=Panneau d'affichage en Acier (Petit)
|
||||||
|
|
||||||
|
[controls]
|
||||||
|
display-map-marker=Marqueur de carte
|
||||||
|
display-plate=Panneau d'affichage
|
||||||
|
|
||||||
|
[entity-description]
|
||||||
|
display=Une icône qui peut être reliée à un marqueur sur la carte. Les paramètres sont préservés dans les plans.
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
[mod-name]
|
||||||
|
IndustrialDisplayPlates=工业展示板
|
||||||
|
[mod-description]
|
||||||
|
IndustrialDisplayPlates=显示物品、流体和信号图标的大、中、小标志。可用于绘制包含地图标记的蓝图。
|
||||||
|
[display-plates]
|
||||||
|
blueprint-wont-have-icons=此更新的蓝图将不包含任何显示板的图标或地图标记。要包含它们,请创建一个新的蓝图。
|
||||||
|
mod-migration-info="IndustrialDisplayPlates "修改即将退役。请迁移到 "DisplayPlates",如修改门户页面上所描述的。
|
||||||
|
|
||||||
|
[entity-name]
|
||||||
|
copper-display=铜质显示板(大)
|
||||||
|
iron-display=铁质展示板(大)
|
||||||
|
steel-display=钢制展示板(大)
|
||||||
|
copper-display-medium=铜质显示板(中)
|
||||||
|
iron-display-medium=铁质展示板(中)
|
||||||
|
steel-display-medium=钢制展示板(中)
|
||||||
|
copper-display-small=铜质显示板(小)
|
||||||
|
iron-display-small=铁质展示板(小)
|
||||||
|
steel-display-small=钢显示板(小)
|
||||||
|
|
||||||
|
[controls]
|
||||||
|
display-map-marker=地图标记
|
||||||
|
display-plate=展示板
|
||||||
|
|
||||||
|
[entity-description]
|
||||||
|
display=一个可以链接到地图标记的图标性标志。图标和地图标记设置可被保留在蓝图中。
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
|
local DID = require("globals")
|
||||||
|
|
||||||
for index, force in pairs(game.forces) do
|
for index, force in pairs(game.forces) do
|
||||||
local technologies = force.technologies
|
for display,displaydata in pairs(DID.displays) do
|
||||||
local recipes = force.recipes
|
if displaydata.IR_unlock and force.technologies[displaydata.IR_unlock] and force.technologies[displaydata.IR_unlock].researched then
|
||||||
|
force.recipes[display].enabled = true
|
||||||
if technologies["steel-processing"].researched then
|
elseif displaydata.unlock and force.technologies[displaydata.unlock] and force.technologies[displaydata.unlock].researched then
|
||||||
recipes["steel-display-small"].enabled = true
|
force.recipes[display].enabled = true
|
||||||
recipes["steel-display-medium"].enabled = true
|
end
|
||||||
recipes["steel-display"].enabled = true
|
end
|
||||||
end
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user