--make it only able to use the tank sensorcards --[09:09:10] getTargetDetails() - 1 tick each --[09:09:14] getTargets - 1 tick local targets = { ["1,1,1"] = { Tanks = { [1] = { Capacity = 4000, Amount = 200, Name = "Water" } }, Position = { X = 1, Y = 1, Z = 1 } }, ["1,2,1"] = { Tanks = { [1] = { Capacity = 4000, Amount = 200, Name = "Water" } }, Position = { X = 1, Y = 1, Z = 1 } }, ["1,3,1"] = { Tanks = { [1] = { Capacity = 4000, Amount = 200, Name = "Water" } }, Position = { X = 1, Y = 1, Z = 1 } } } local titlebar = { title = "TankView", posY = 1, draw = function(self) local w, h = term.getSize() term.setCursorPos(math.floor((w - #self.title) / 2 + 0.5), self.posY) term.write(self.title) end } local tankList = { targets = targets, posX = 1, posY = 3, sizeX = 10, update = function(self) --rescan targets self.targets = "^" end, draw = function(self) local count = 0 for k, v in pairs(self.targets) do term.setCursorPos(self.posX + 2, self.posY + count) term.write(k) count = count + 1 end end } local scrollbar = {} term.clear() titlebar:draw() tankList:draw()