add icons, make rom use c data
This commit is contained in:
@@ -24,6 +24,7 @@ datablock fxDtsBrickData(LogicGate_Rom16x4x16_Data){
|
||||
" gate.romdata = {} " @
|
||||
" for i = 0, 1023 do " @
|
||||
" gate.romdata[i] = 0 " @
|
||||
" Gate.setcdata(gate, i, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
@@ -32,7 +33,9 @@ datablock fxDtsBrickData(LogicGate_Rom16x4x16_Data){
|
||||
" local data = args[1] " @
|
||||
" for i = 1, #data do " @
|
||||
" local c = data:sub(i, i) " @
|
||||
" gate.romdata[i-1] = (c==\"1\") and 1 or 0 " @
|
||||
" local v = (c==\"1\") and 1 or 0 " @
|
||||
" gate.romdata[i-1] = v " @
|
||||
" Gate.setcdata(gate, i-1, v) " @
|
||||
" end " @
|
||||
" Gate.queue(gate, 0) " @
|
||||
"end"
|
||||
|
||||
Reference in New Issue
Block a user