Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 90499e48ec | |||
| 0416d23f78 | |||
| b0ec644f5a | |||
| 88a01b4bee | |||
| 3cf302c51f | |||
| ae2c66d174 | |||
| f9560c6cda | |||
| 8b6638dcd4 | |||
| 615d8209d6 |
@@ -1,10 +1,23 @@
|
|||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
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
|
Version: 0.18.0
|
||||||
Date: 2020-04-08
|
Date: 2020-04-08
|
||||||
Changes:
|
Changes:
|
||||||
- Mod takeover from https://mods.factorio.com/mod/IndustrialDisplays
|
- Mod takeover from https://mods.factorio.com/mod/IndustrialDisplays
|
||||||
- Changed versioning
|
- Changed versioning
|
||||||
- Changed changelog date format
|
- Changed changelog date format
|
||||||
|
- Changed mod name
|
||||||
Features:
|
Features:
|
||||||
- Added german locale
|
- Added german locale
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
+2
-2
@@ -331,7 +331,7 @@ local function create_display_gui(player, selected)
|
|||||||
local search_button = header.add {
|
local search_button = header.add {
|
||||||
name = "display-search-button",
|
name = "display-search-button",
|
||||||
type = "sprite-button",
|
type = "sprite-button",
|
||||||
sprite = "utility/search_small_white",
|
sprite = "utility/search_white",
|
||||||
style = "display_small_button",
|
style = "display_small_button",
|
||||||
tooltip = {"gui.search-with-focus","__CONTROL__focus-search__"},
|
tooltip = {"gui.search-with-focus","__CONTROL__focus-search__"},
|
||||||
}
|
}
|
||||||
@@ -376,7 +376,7 @@ local function create_display_gui(player, selected)
|
|||||||
local button_table = {}
|
local button_table = {}
|
||||||
for prototype_type,prototypes in pairs(DID.elem_prototypes) do
|
for prototype_type,prototypes in pairs(DID.elem_prototypes) do
|
||||||
for _,prototype in pairs(game[prototypes]) do
|
for _,prototype in pairs(game[prototypes]) do
|
||||||
if not DID.displays[prototype.name] and not ((prototype_type == "item" and (prototype.has_flag("hidden") or prototype.show_in_library)) or (prototype_type == "fluid" and prototype.hidden)) then
|
if not DID.displays[prototype.name] and not ((prototype_type == "item" and prototype.has_flag("hidden")) or (prototype_type == "fluid" and prototype.hidden)) then
|
||||||
local group = (prototype.group.name == "fluids") and "intermediate-products" or prototype.group.name
|
local group = (prototype.group.name == "fluids") and "intermediate-products" or prototype.group.name
|
||||||
if not DID.group_blacklist[group] then
|
if not DID.group_blacklist[group] then
|
||||||
if button_table[group] == nil then button_table[group] = {} end
|
if button_table[group] == nil then button_table[group] = {} end
|
||||||
|
|||||||
+6
-1
@@ -16,4 +16,9 @@ for display,displaydata in pairs(DID.displays) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
------------------------------------------------------------------------------------------------------------------------------------------------------
|
if mods ["Dectorio"] then
|
||||||
|
if data.raw["item-group"]["dectorio"] then
|
||||||
|
data.raw["item-subgroup"]["display-plates"].group = "dectorio"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -54,6 +54,7 @@ for display,displaydata in pairs(DID.displays) do
|
|||||||
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",
|
||||||
minable = {
|
minable = {
|
||||||
mining_time = 0.2,
|
mining_time = 0.2,
|
||||||
result = display,
|
result = display,
|
||||||
@@ -232,7 +233,7 @@ add_styles({
|
|||||||
display_button_selected = {
|
display_button_selected = {
|
||||||
type = "button_style",
|
type = "button_style",
|
||||||
parent = "quick_bar_slot_button",
|
parent = "quick_bar_slot_button",
|
||||||
default_graphical_set = data.raw["gui-style"]["default"]["CGUI_filter_slot_button"].selected_graphical_set
|
default_graphical_set = data.raw["gui-style"]["default"]["slot_button"].selected_graphical_set
|
||||||
},
|
},
|
||||||
display_fake_header = {
|
display_fake_header = {
|
||||||
type = "frame_style",
|
type = "frame_style",
|
||||||
@@ -247,7 +248,7 @@ add_styles({
|
|||||||
},
|
},
|
||||||
display_small_button = {
|
display_small_button = {
|
||||||
type = "button_style",
|
type = "button_style",
|
||||||
parent = "frame_action_button_no_border",
|
parent = "frame_action_button",
|
||||||
left_margin = 1,
|
left_margin = 1,
|
||||||
right_margin = 1,
|
right_margin = 1,
|
||||||
},
|
},
|
||||||
|
|||||||
+4
-4
@@ -60,14 +60,14 @@ return {
|
|||||||
},
|
},
|
||||||
icon_size = 64,
|
icon_size = 64,
|
||||||
icon_mipmaps = 4,
|
icon_mipmaps = 4,
|
||||||
icon_path = "__IndustrialDisplays__/graphics/icons",
|
icon_path = "__IndustrialDisplayPlates__/graphics/icons",
|
||||||
sprites_path = "__IndustrialDisplays__/graphics/entities",
|
sprites_path = "__IndustrialDisplayPlates__/graphics/entities",
|
||||||
sound_path = "__IndustrialDisplays__/sound",
|
sound_path = "__IndustrialDisplayPlates__/sound",
|
||||||
base_sound_path = "__base__/sound",
|
base_sound_path = "__base__/sound",
|
||||||
core_sound_path = "__core__/sound",
|
core_sound_path = "__core__/sound",
|
||||||
base_icons_path = "__base__/graphics/icons",
|
base_icons_path = "__base__/graphics/icons",
|
||||||
custom_gui = "DID_gui",
|
custom_gui = "DID_gui",
|
||||||
mod_name = "IndustrialDisplays",
|
mod_name = "IndustrialDisplayPlates",
|
||||||
grid_columns = 10,
|
grid_columns = 10,
|
||||||
pending_translation_value = "",
|
pending_translation_value = "",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "IndustrialDisplayPlates",
|
"name": "IndustrialDisplayPlates",
|
||||||
"version": "0.18.0",
|
"version": "0.18.2",
|
||||||
"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": ["base >= 0.18.13"],
|
"dependencies": [
|
||||||
|
"base >= 0.18.27"
|
||||||
|
],
|
||||||
"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 and fluid icons. Can be used to blueprint map markers.",
|
||||||
"factorio_version": "0.18"
|
"factorio_version": "0.18"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
for index, force in pairs(game.forces) do
|
||||||
|
local technologies = force.technologies
|
||||||
|
local recipes = force.recipes
|
||||||
|
|
||||||
|
if technologies["steel-processing"].researched then
|
||||||
|
recipes["steel-display-small"].enabled = true
|
||||||
|
recipes["steel-display-medium"].enabled = true
|
||||||
|
recipes["steel-display"].enabled = true
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user