Posted By: Mahdi
How to return the size of a TEXT? - 04/11/11 20:23
hi there,
I have 2 texts:
I want the second text (menu_2) to be at the end of first text (menu_1).
But I don't know how to return the width of a text? Is there anyway to find the width of first text so I can use something like this:
menu_2.pos_x=menu_1 + menu_1.width; // or something like that?
is there anyway?
I have 2 texts:
Code:
FONT text_font = "Arial", 1, 40; TEXT menu_1 { font=inventory_menu_font; layer = 15; flags = NARROW,; } TEXT menu_2 { font=inventory_menu_font; layer = 15; flags = NARROW ; }
I want the second text (menu_2) to be at the end of first text (menu_1).
But I don't know how to return the width of a text? Is there anyway to find the width of first text so I can use something like this:
menu_2.pos_x=menu_1 + menu_1.width; // or something like that?
is there anyway?