Hi!
Ich würde gerne die Schrift in die Mitte von einem (gezeichneten) Feld bekommen, aber ich bekomme nicht raus, wie das gehen könnte.
Hat es da nicht irgendein Demo gegeben, das das mal konnte? Ich finde es leider nicht... ;/
Wäre schön, wenn mir jemand helfen könnte!
GLG
W.
LOCAL rx1, rx2, ry1, ry2, fx, fy, title$
title$ = "Testeintrag"
rx1 = 200
ry1 = 400
rx2 = 100
ry2 = 25
GETFONTSIZE fx,fy
WHILE TRUE
DRAWRECT rx1, ry1, rx2, ry2, RGB(0x00, 0xff, 0x00)
PRINT title$, rx1+rx2/2-fx*(LEN(title$)/2), ry1+ry2/2-fy/2
SHOWSCREEN
WEND
END
Fauler Sack! :whistle:
For centering or right-align text or even full justify, look at PeeJays Proportional font tool. I have a mirror on my homepage with the color changes I made:
http://gamecorner.110mb.com/code.php (http://gamecorner.110mb.com/code.php) (Bitmap font)
Have it, great, thank you!!!