godotengine / godot-proposals

Godot Improvement Proposals (GIPs)
MIT License
1.14k stars 93 forks source link

Add `Tree` `set_column_visible` method #2291

Open me2beats opened 3 years ago

me2beats commented 3 years ago

Describe the project you are working on

A plugin that uses Tree node

Describe the problem or limitation you are having in your project

I want a user to be able to hide/show tree columns

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Adding Tree set_column_visible method would solve the problem

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

new methods: void set_column_visible(column:int, visible:bool) bool is_column_visible(column:int)

new signals: column_hidden(idx:int) column_shown(idx:int)

If this enhancement will not be used often, can it be worked around with a few lines of script?

Maybe but certainly not with a few lines

Is there a reason why this should be core and not an add-on in the asset library?

Hiding columns is a common UX practice. It also opens new possibilities like filtering columns by name/content etc

Calinou commented 3 years ago

See also #2290.

CsloudX commented 7 months ago

waitting this method too!

Calinou commented 7 months ago

@CsloudX Please don't bump issues without contributing significant new information. Use the :+1: reaction button on the first post instead.