mirror of
https://gitlab.icynet.eu/evert/melterns.git
synced 2024-11-28 01:43:46 +01:00
Flip x and y of the silhouettes
This commit is contained in:
parent
3d9a5cd451
commit
a6d765f7fa
@ -1,4 +1,3 @@
|
|||||||
-- TODO: Repair
|
|
||||||
tool_station = {}
|
tool_station = {}
|
||||||
|
|
||||||
local tool_list_cache = nil
|
local tool_list_cache = nil
|
||||||
@ -30,15 +29,15 @@ function tool_station.get_formspec(comp_list)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local x = 1
|
local x = 1
|
||||||
local y = 1
|
local y = 0
|
||||||
local til = ""
|
local til = ""
|
||||||
for _,comp in pairs(comp_list) do
|
for _,comp in pairs(comp_list) do
|
||||||
local img = tinkering.components[comp].image .. "^[colorize:#1e1e1e:255"
|
local img = tinkering.components[comp].image .. "^[colorize:#1e1e1e:255"
|
||||||
til = til .. "image[" .. (x * 1) .. "," .. (y * 0.8) .. ";1,1;".. img .. "]"
|
til = til .. "image[" .. (x * 1) .. "," .. (y + 0.8) .. ";1,1;".. img .. "]"
|
||||||
x = x + 1
|
y = y + 1
|
||||||
if x > 3 then
|
if y > 2 then
|
||||||
x = 1
|
y = 0
|
||||||
y = y + 1
|
x = x + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user