mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2026-06-27 13:56:20 +09:00
.
This commit is contained in:
@@ -703,7 +703,7 @@ if items['tooltip'] and data.raw.item then
|
|||||||
for k, v in pairs(items['tooltip']) do
|
for k, v in pairs(items['tooltip']) do
|
||||||
local custom_tooltip = {
|
local custom_tooltip = {
|
||||||
name = '[virtual-signal=signal-info]',
|
name = '[virtual-signal=signal-info]',
|
||||||
value = '[virtual-signal=signal-' .. v.color .. ']',
|
value = {'', '[virtual-signal=signal-' .. v.color .. ']', {'virtual-signal.signal-' .. v.color}},
|
||||||
order = 99,
|
order = 99,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -715,6 +715,7 @@ if items['tooltip'] and data.raw.item then
|
|||||||
table.insert(data.raw[v.type][k].custom_tooltip_fields, custom_tooltip)
|
table.insert(data.raw[v.type][k].custom_tooltip_fields, custom_tooltip)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[
|
||||||
if v.color and data.raw.recipe[k] then
|
if v.color and data.raw.recipe[k] then
|
||||||
if not data.raw.recipe[k].custom_tooltip_fields then
|
if not data.raw.recipe[k].custom_tooltip_fields then
|
||||||
data.raw.recipe[k].custom_tooltip_fields = {}
|
data.raw.recipe[k].custom_tooltip_fields = {}
|
||||||
@@ -722,5 +723,6 @@ if items['tooltip'] and data.raw.item then
|
|||||||
|
|
||||||
table.insert(data.raw.recipe[k].custom_tooltip_fields, custom_tooltip)
|
table.insert(data.raw.recipe[k].custom_tooltip_fields, custom_tooltip)
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user