Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: FrizzleFried on February 27, 2019, 07:07:49 AM

Title: Magic Token Word Wrap
Post by: FrizzleFried on February 27, 2019, 07:07:49 AM
What am I doing wrong?  I want the TITLE of a game to WORD WRAP ... amazingly,  i've never done this... but I want to... from what I gather I should code it:

title.word_wrap = true

But that doesn't work.

What am I doing wrong?


Thanks!
Title: Re: Magic Token Word Wrap
Post by: jedione on February 27, 2019, 07:47:22 AM
here ya go,, this is working



Code: [Select]

local flx = fe.layout.width;
local fly = fe.layout.height;
local flw = fe.layout.width;
local flh = fe.layout.height;


local list = fe.add_text ("[Title]"flx*0.095, fly*0.025, flw*0.50, flh*0.200);

//list.set_rgb (R,G,B);
list.font ="blogger";
list.charsize = 80;
list.align = Align.Left;
list.word_wrap = true;

enjoy
Title: Re: Magic Token Word Wrap
Post by: FrizzleFried on February 27, 2019, 12:30:35 PM
Thank you... I learn something new every day.