Godot Version
4.3
Question
I am working on a project with a custom resource made to handle all building information. This can include things like the spite to be used. The production time of the building, amount produced, etc.
I have a global variable that is being used to have one place that keeps a list of all building materials as an enum.
enum BuildingResourceType {
GOLD,
IRON,
WOOD,
STONE
}
I want to be able to use this as a drop down list to select my building resource type. Then assign an integer with it. For example. I would like to select gold make it cost 500 gold to build a building. Then the next building might cost 500 gold and 200 wood etc. I want to be able to assign this in the custom resource for my buildings. I am surprised how difficult this seems to be in this engine.
I can access the global variable and get a drop down but I cannot create a value with it.