Jump to content

Tekkit Telekom/Scripts

From Tekkit Lite Server

This page contains various Lua scripts or functions used by the Tekkit Telekom

Utility

getCenterXPos
function getCenterXPos(lenX, maxX)
    return math.ceil(maxX/2 - lenX/2)
end
getCenterYPos
function getCenterYPos(lenY, maxY)
    return math.ceil(maxY/2 - lenY/2)
end
drawCenterText
drawCenterTextScreen
splitStringToLines
drawBox
drawBoxWithTitle
drawBaseInterface