So im in middle of changing the UI's, i come across being stuck on inventory, i cant seem to get the equation in right place, any advise
would appreciate it
This was old one
would appreciate it
This was old one
Code:
Grid = new MirItemCell[8 * 10];
for (int x = 0; x < 8; x++)
{
for (int y = 0; y < 12; y++)
{
int idx = 8 * y + x;
Grid[idx] = new MirItemCell
{
ItemSlot = 7 + idx,
GridType = MirGridType.Inventory,
Library = Libraries.Items,
Parent = this,
Location = new Point(x * 36 + 9 + x, y % 5 * 32 + 37 + y % 5),
};
if (idx >= 40)
Grid[idx].Visible = false;
}
}