FPGA: Add 'unary' value to talbe. Document

This commit is contained in:
SmallJoker
2019-11-03 15:55:46 +01:00
committed by SmallJoker
parent 7784b13da5
commit 9b58f8db29
2 changed files with 30 additions and 16 deletions

View File

@ -192,7 +192,7 @@ plg.to_formspec_string = function(is, err)
local function dropdown_action(x, y, name, val)
local selected = 0
local titles = { " " }
for i, data in ipairs(lcore.get_operands()) do
for i, data in ipairs(lcore.get_operations()) do
titles[i + 1] = data.fs_name
if val == data.gate then
selected = i + 1
@ -249,7 +249,7 @@ plg.from_formspec_fields = function(fields)
end
end
local function read_action(s)
for i, data in ipairs(lcore.get_operands()) do
for i, data in ipairs(lcore.get_operations()) do
if data.fs_name == s then
return data.gate
end