Improve visuals

master
number Zero 2017-03-03 17:26:44 +03:00
parent e4fff9fd62
commit 6b74fe279f
14 changed files with 15 additions and 15 deletions

View File

@ -40,10 +40,10 @@ for bank_count, layout in pairs(ram_layouts) do
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
{ -7/16, -7/16, -7/16, 7/16, -6/16, 7/16 },
{ -8/16, -7/16, -1/16, -7/16, -6/16, 1/16 },
{ 8/16, -7/16, -1/16, 7/16, -6/16, 1/16 },
{ -1/16, -7/16, -8/16, 1/16, -6/16, -7/16 },
{ -1/16, -7/16, 8/16, 1/16, -6/16, 7/16 },
{ -8/16, -7/16, -2/16, -7/16, -6/16, 2/16 },
{ 8/16, -7/16, -2/16, 7/16, -6/16, 2/16 },
{ -2/16, -7/16, -8/16, 2/16, -6/16, -7/16 },
{ -2/16, -7/16, 8/16, 2/16, -6/16, 7/16 },
}
for i = 1, 4 do
local x = bank_positions[i]
@ -62,18 +62,18 @@ for bank_count, layout in pairs(ram_layouts) do
description = string.format("Digiline %d-bank RAM module (%d rows)", bank_count, row_count),
drawtype = "nodebox",
tiles = {
string.format("digiline_memory_banked_ram_%d.png", bank_count),
string.format("digiline_memory_banked_ram_base.png^digiline_memory_banked_ram_%d.png", bank_count),
"digiline_memory_flat.png",
"digiline_memory_ram_bank.png^digiline_memory_banked_ram_side.png",
"digiline_memory_ram_bank.png^digiline_memory_banked_ram_side.png",
"digiline_memory_banked_ram_side2.png",
"digiline_memory_banked_ram_side2.png",
"digiline_memory_banked_ram_side2.png^digiline_memory_banked_ram_side.png",
"digiline_memory_banked_ram_side2.png^digiline_memory_banked_ram_side.png",
},
paramtype = "light",
groups = { dig_immediate = 2 },
selection_box = {
type = "fixed",
fixed = {{ -8/16, -8/16, -8/16, 8/16, 4/16, 8/16 }}
fixed = {{ -8/16, -8/16, -8/16, 8/16, 6/16, 8/16 }}
},
node_box = {
type = "fixed",

14
ram.lua
View File

@ -11,8 +11,8 @@ local ram_layouts = {
},
[4] = {
{x=3, y=4, w=4, h=2},
{x=3, y=4, w=4, h=2},
{x=9, y=10, w=4, h=2},
{x=3, y=10, w=4, h=2},
{x=9, y=4, w=4, h=2},
{x=9, y=10, w=4, h=2},
},
[8] = {
@ -58,10 +58,10 @@ for chip_count, layout in pairs(ram_layouts) do
{ -8/16, -8/16, -8/16, 8/16, -7/16, 8/16 },
{ -7/16, -7/16, -7/16, 7/16, -6/16, 7/16 },
{ -8/16, -7/16, -1/16, -7/16, -6/16, 1/16 },
{ 8/16, -7/16, -1/16, 7/16, -6/16, 1/16 },
{ -1/16, -7/16, -8/16, 1/16, -6/16, -7/16 },
{ -1/16, -7/16, 8/16, 1/16, -6/16, 7/16 },
{ -8/16, -7/16, -2/16, -7/16, -6/16, 2/16 },
{ 8/16, -7/16, -2/16, 7/16, -6/16, 2/16 },
{ -2/16, -7/16, -8/16, 2/16, -6/16, -7/16 },
{ -2/16, -7/16, 8/16, 2/16, -6/16, 7/16 },
}
for _, chip in ipairs(layout) do
nodeboxes[#nodeboxes + 1] = {
@ -77,7 +77,7 @@ for chip_count, layout in pairs(ram_layouts) do
description = string.format("Digiline %d-chip RAM module (%d rows)", chip_count, row_count),
drawtype = "nodebox",
tiles = {
string.format("digiline_memory_ram_%d.png", chip_count),
string.format("digiline_memory_ram_base.png^digiline_memory_ram_%d.png", chip_count),
"digiline_memory_flat.png",
"digiline_memory_ram_side.png",
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 127 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 B

After

Width:  |  Height:  |  Size: 121 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 266 B

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 128 B