Ich hab ein kleines Problem mit dxDrawText,
Der Text soll üBerlin ein dxDrawRectangle Gerät werden. D as funktioniert auch nur:
Der Text wird nicht richtig zentriert. ER ist entweder immer über den Rand hinaus oder direkt am Rand.
Code:
Lua
height = 150
width = 400
x = screenwidth/2 - width/2
y = 3
dxDrawRectangle(x, y, width, height tocolor(255, 255, 255, 255), false)
dxDrawText("test", x, y, width, height, tocolor(255, 255, 255, 255), 1.5, "default", "center", "center", true, true, true, true, false)
Ich hoffe ihr könnt mir weiterhelfen.