FrameworkZ 4.4.2
Provides a framework for Project Zomboid with various systems.
Loading...
Searching...
No Matches
3000_UI_Helper.lua
Go to the documentation of this file.
3FrameworkZ.UI = {}
5function FrameworkZ.UI.GetCenteredX(length, fontSize, text)
6 local width = getTextManager():MeasureStringX(fontSize, text)
7
8 return (length / 2) - (width / 2)
9end
10
11function FrameworkZ.UI.GetMiddle(length, fontSize, text)
12 local width = getTextManager():MeasureStringX(fontSize, text)
14 return (length - width) / 2
15end
16
17function FrameworkZ.UI.GetHeight(fontSize, text)
18 local height = getTextManager():MeasureStringY(fontSize, text)
19
20 return height
21end
void FrameworkZ()
void local height()
void local width
void GetMiddle(length, fontSize, text)
void GetHeight(fontSize, text)
void GetCenteredX(length, fontSize, text)
FrameworkZ global table.