Tekkit Telekom/Scripts: Difference between revisions
Appearance
Rezizdigus (talk | contribs) Created page with "This page contains various Lua scripts or functions used by the Tekkit Telekom == Utility ==" |
Rezizdigus (talk | contribs) |
||
| Line 2: | Line 2: | ||
== Utility == | == Utility == | ||
====== getCenterXPos ====== | |||
{{Code|function getCenterXPos(lenX, maxX) | |||
return math.ceil(maxX/2 - lenX/2) | |||
end|lang=lua|code=function getCenterXPos(lenX, maxX) | |||
return math.ceil(maxX/2 - lenX/2) | |||
end}} | |||
====== getCenterYPos ====== | |||
{{Code|function getCenterYPos(lenY, maxY) | |||
return math.ceil(maxY/2 - lenY/2) | |||
end|lang=lua}} | |||
====== drawCenterText ====== | |||
====== drawCenterTextScreen ====== | |||
====== splitStringToLines ====== | |||
====== drawBox ====== | |||
====== drawBoxWithTitle ====== | |||
====== drawBaseInterface ====== | |||
Revision as of 14:41, 23 May 2026
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