I have a texture and a config value with 4 values. For clarity lets call those values north, east, south, and west.
These values will divide the texture into a 3x3 grid, where the first row is north pixels high, last row is south pixels high, first column is west pixels wide, and the last column is east pixels wide. I want to be able to draw these textures on the screen individually, and i want to do so with scaling.
basically, it so I can make a texture for the background of a gui element with the borders scaling correctly.
sorry for english,
d_b
OLD POST:
I have this table:
Code: Select all
local morphDefs = {
ant= {
[1] = {into = 'mantis', metal = 100, energy = 0, time = 5,},
},
...
}
Code: Select all
{
[1] = {[2], 100},
...
}
Pie and cake,
d_b