Author Topic: old option is shown in TextAlignment dropdown  (Read 323 times)

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on one or more games that won an AGS Award!
    •  
    • arj0n worked on one or more games that was nominated for an AGS Award!
old option is shown in TextAlignment dropdown
« on: 25 Feb 2021, 13:18 »
When typing <labelname>.TextAlignment = " the dropdownbox with the text alignment values (for gui labels) shows an obsolete value (eAlignCentre):

Code: Adventure Game Studio
  1. eAlignCenter
  2. eAlignCentre
  3. eAlignLeft
  4. eAlignRight

The properties-box in the editor shows correctly the 3 values:
Code: Adventure Game Studio
  1. Center
  2. Left
  3. Right

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: old option is shown in TextAlignment dropdown
« Reply #1 on: 25 Feb 2021, 13:20 »
This is extra value exists for backward compatibility with some old scripts.
EDIT: in latest versions this value is only declared if you have script compat mode set to 3.4.1 or lower.
Autocomplete is filled automatically from the script headers, so it displays everything.
« Last Edit: 25 Feb 2021, 13:24 by Crimson Wizard »

arj0n

  • Mittens Vassal
  • art consists in drawing a line somewhere
    • arj0n worked on one or more games that won an AGS Award!
    •  
    • arj0n worked on one or more games that was nominated for an AGS Award!
Re: old option is shown in TextAlignment dropdown
« Reply #2 on: 25 Feb 2021, 13:37 »
ah, right.