mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-30 20:01:40 +09:00
.
This commit is contained in:
@@ -168,8 +168,8 @@ if settings.startup['PHI-CT'].value then
|
|||||||
|
|
||||||
for y = 1, 3, 1 do
|
for y = 1, 3, 1 do
|
||||||
for x = 1, 3, 1 do
|
for x = 1, 3, 1 do
|
||||||
local button = table_position.add({type = 'sprite-button', name = 'button_offset_' .. tostring(x + table_range + 1) .. '_' .. tostring(y + table_range + 1), style = 'slot_sized_button'})
|
sprite = table_position.add({type = 'sprite-button', name = 'button_offset_' .. tostring(x + table_range + 1) .. '_' .. tostring(y + table_range + 1), style = 'slot_sized_button'})
|
||||||
button.style.size = {32, 32}
|
sprite.style.size = {32, 32}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -192,14 +192,8 @@ if settings.startup['PHI-CT'].value then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local icon = 'item/inserter'
|
|
||||||
local prototype = inserter_utils.get_prototype(inserter)
|
local prototype = inserter_utils.get_prototype(inserter)
|
||||||
|
gui_instance.table_position.sprite_inserter.sprite = ((prototype and prototype.items_to_place_this) and 'item/' .. prototype.items_to_place_this[1].name) or 'item/bulk-inserter'
|
||||||
if prototype and prototype.items_to_place_this then
|
|
||||||
icon = 'item/' .. prototype.items_to_place_this[1].name
|
|
||||||
end
|
|
||||||
|
|
||||||
gui_instance.table_position.sprite_inserter.sprite = icon
|
|
||||||
idx = 0
|
idx = 0
|
||||||
|
|
||||||
for y = -1, 1, 1 do
|
for y = -1, 1, 1 do
|
||||||
|
|||||||
Reference in New Issue
Block a user