Adventure Game Studio

AGS Development => Engine Development => Topic started by: arj0n on Thu 25/02/2021 13:18:09

Title: old option is shown in TextAlignment dropdown
Post by: arj0n on Thu 25/02/2021 13:18:09
When typing <labelname>.TextAlignment = " the dropdownbox with the text alignment values (for gui labels) shows an obsolete value (eAlignCentre):

Code (ags) Select
eAlignCenter
eAlignCentre
eAlignLeft
eAlignRight


The properties-box in the editor shows correctly the 3 values:
Code (ags) Select
Center
Left
Right
Title: Re: old option is shown in TextAlignment dropdown
Post by: Crimson Wizard on Thu 25/02/2021 13:20:57
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.
Title: Re: old option is shown in TextAlignment dropdown
Post by: arj0n on Thu 25/02/2021 13:37:33
ah, right.