Author Topic: Magic Token Word Wrap  (Read 204 times)

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 179
    • View Profile
    • Idaho Garagecade
Magic Token Word Wrap
« 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!
Visit my arcade blog ... www.idahogaragecade.com (updated 03-18-19)

jedione

  • Hero Member
  • *****
  • Posts: 601
  • punktoe
    • View Profile
Re: Magic Token Word Wrap
« Reply #1 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
« Last Edit: February 27, 2019, 07:49:12 AM by jedione »
help a friend....

FrizzleFried

  • Sr. Member
  • ****
  • Posts: 179
    • View Profile
    • Idaho Garagecade
Re: Magic Token Word Wrap
« Reply #2 on: February 27, 2019, 12:30:35 PM »
Thank you... I learn something new every day.
Visit my arcade blog ... www.idahogaragecade.com (updated 03-18-19)