mirror of
https://github.com/PHIDIAS0303/factorio-mod-PHI.git
synced 2025-12-31 04:11:39 +09:00
.
This commit is contained in:
@@ -136,7 +136,7 @@ if settings.startup['PHI-CT'].value then
|
|||||||
for y = -table_range, table_range, 1 do
|
for y = -table_range, table_range, 1 do
|
||||||
for x = -table_range, table_range, 1 do
|
for x = -table_range, table_range, 1 do
|
||||||
local sprite = ((x == 0 and y == 0) and table_position.add({type = 'sprite', name = 'sprite_inserter', sprite = 'item/bulk-inserter'})) or table_position.add({type = 'sprite-button', name = 'button_position_' .. tostring(x + table_range + 1) .. '_' .. tostring(y + table_range + 1), style = 'slot_sized_button'})
|
local sprite = ((x == 0 and y == 0) and table_position.add({type = 'sprite', name = 'sprite_inserter', sprite = 'item/bulk-inserter'})) or table_position.add({type = 'sprite-button', name = 'button_position_' .. tostring(x + table_range + 1) .. '_' .. tostring(y + table_range + 1), style = 'slot_sized_button'})
|
||||||
sprite.style.stretch_image_to_widget_size = ((x == 0 and y == 0) and true) or false
|
sprite.style.stretch_image_to_widget_size = ((x == 0 and y == 0) and true) or nil
|
||||||
sprite.style.size = {32, 32}
|
sprite.style.size = {32, 32}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user