godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.13k stars 79 forks source link

Add Tree and Grid export hints #395

Open Shadowblitz16 opened 4 years ago

Shadowblitz16 commented 4 years ago

Describe the project you are working on: space ship game

Describe the problem or limitation you are having in your project: I'm adding a data orientated abstraction over the gui of my game and I need to export a tree of resources.

Describe how this feature / enhancement will help you overcome this problem or limitation: basically the tree node would allow the user to add, move, and deleted the exported hint type to exported hints kinda like the tree editor in the scenes but more simplified.

grids would be like arrays but with a second dimension

Show a mock up screenshots/video or a flow diagram explaining how your proposal will work: doesn't need it

Describe implementation detail for your proposal (in code), if possible: it would have to be done in the engine so idk

If this enhancement will not be used often, can it be worked around with a few lines of script?: it may or may not be used often but i don't think there is a way to do it in scripts thats why i'm suggesting it

Is there a reason why this should be core and not an add-on in the asset library?: because it makes godot better and easier to use.

Xrayez commented 4 years ago

grids would be like arrays but with a second dimension

Kind of like #13?

Shadowblitz16 commented 4 years ago

similar ya. but the grid I was thinking would be more of a 2d array for things like tiledata.

the tree would be like in the godot node editor in which you can right click and add and delete data

Xrayez commented 3 years ago

By the way, I didn't realize that I have recently implemented a feature in Goost that help this proposal (the Grid part), see VariantMap class.

Technically, you could export the resource via script with export(VariantMap) var grid, yet there are currently no editors implemented that would allow you to edit such two-dimensional resources, like proposed in #13.