Author Topic: Did something change with scripting recently? Texts not inheriting positions  (Read 1938 times)

cools

  • Full Member
  • ***
  • Posts: 83
  • Arcade Otaku Sysadmin
    • View Profile
    • Arcade Otaku
I rebuilt my vertical cabinet over the weekend, including updating Windows to 7 (from XP) and AttractMode to 2.2.1 (from 1.6.1).

Rather than use my existing verticools layout.nut, I used the one in the download zip. Needed to make a few tweaks (stripped out the rotation code entirely as the OS is portrait), but anything where I used the shadow trick - draw shadow then text afterwards inheriting the properties of the shadow did not work.

Code: [Select]
local slgsh=fe.add_text("[Title]",lbx+1,lby+1,lbw,ith);
slgsh.set_rgb(0,0,0);
local selgame=fe.add_text(slgsh.msg,slgsh.x-1,slgsh.y-1,slgsh.width,slgsh.height);

I ended up modifying this code to the below, which works.
Code: [Select]
local slgsh=fe.add_text("[Title]",lbx+1,lby+1,lbw,ith);
slgsh.set_rgb(0,0,0);
local selgame=fe.add_text(slgsh.msg,lbx,lby,lbw,ith);

Just wondering if something changed or if there's something weird going on with my setup.