@GarromOrcShaman said:
No ? Nobody ? What about you @TwistedTwigleg ? So far, you was one of the most helpful members of community...
Well, in theory you should be able to access the enumerators like this (untested):
enum enum_var {Foo = 1, Bar = 2, Godot = 3}
var id = 0
func _ready():
var enum_from_id = enum_var[id]
At least, that is the impression I get from the documentation example.
In theory, another way you could do this is not using enumerators at all, but rather use a constant dictionary. Something like this (untested):
const dictionary = {“Foo”:1, “Bar”:2, “Godot”:3}
var id = 0
func _ready():
var enum_from_id = dictionary.keys()[id]
var access_like_enum = dictionary.Foo
This is the way I would do it, as personally I feel it gives the most flexibility.
I don’t know but this forum seems to be so empty last few days...
I go on vacation and everyone disappears! :lol:
In all seriousness though, the lack of people on the forums these past few days may be related to the Fourth of July (for those who celebrate it / get the day off). I would not be surprised if many, myself included, have decided to take advantage of the Fourth falling on a Wednesday and so took off Thursday and Friday as well (getting a 5 day break, assuming they do not work on the weekends).
Or maybe the forums are just in a quiet phase for now. Activity on the forums seems to come and go, with a few consistent members posting relatively regularly. This seems to be the pattern most/all of the forums I have been a part of.
Things will likely pick up again, there just needs to be some time for it to swing the other way, to a more active/busy phase.
All of this said, I have not really been looking at the forums in the past couple days due to being on vacation, so it’s possible I have missed something, but I do not think there is any reason to worry, at least not for now :smile: