This commit is contained in:
Igor Timofeev 2015-10-25 05:23:44 +03:00
parent d5380d14d0
commit 1bcb4fdd2a

View File

@ -799,7 +799,7 @@ function ECSAPI.drawTopMenu(x, y, width, color, selectedObject, ...)
if gpu.getForeground() ~= objects[i][2] then gpu.setForeground(objects[i][2]) end
gpu.set(xPos, y, objects[i][1])
end
table.insert(objectsToReturn, {xPos, yPos, xPos + unicode.len(objects[i][1]) - 1, yPos})
objectsToReturn[objects[i][1]] = { xPos, yPos, xPos + unicode.len(objects[i][1]) - 1, yPos }
xPos = xPos + unicode.len(objects[i][1]) + spaceBetween
end
return objectsToReturn