Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String Array properties treated as Color type #210

Open
Loxtir opened this issue Nov 12, 2024 · 0 comments
Open

String Array properties treated as Color type #210

Loxtir opened this issue Nov 12, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@Loxtir
Copy link

Loxtir commented Nov 12, 2024

Godot version: 4.3.stable, 4.4.dev4

Describe the bug
Just updated from Pandora alpha 6 to alpha 9.
In String Array properties, every value is treated as a Color.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new category with an array property.
  2. Add any value, for example "1".
  3. Try to save, you will get an error "Invalid color name: 1." If you use Color names as values, you will not get this error, but you will get the next ones.
  4. Reload the project.
  5. Try and edit the array values, you will get another error: "Pandora error: value (0, 0, 0, 1) is incompatible with type <RefCounted#-9223370148864261134>" and the value 1 will be lost.
  6. When closing the Array manager window, you will get the following error: "res://addons/pandora/ui/components/array_editor/array_manager.gd:49 - Invalid operands 'Color' and 'String' in operator '=='.".

Expected behavior
Working array properties as in alpha 6.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: no
  • Version: alpha 9

Additional context
This also modified my existing pandora.data file, changing every array.
Screenshot 2024-11-12 172002

Edit
On further investigation, the issue seems to be with the String type, since the bool, int, float and vector2 types work correctly.

@Loxtir Loxtir added the 🐛 bug Something isn't working label Nov 12, 2024
@Loxtir Loxtir changed the title Array properties treated as Color type String Array properties treated as Color type Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant