Cubyz icon indicating copy to clipboard operation
Cubyz copied to clipboard

Folder/File Querying

Open H41ogen opened this issue 1 month ago • 7 comments

Doing a draft PR to get feedback on my manner of doing this, and also in the hopes someone can get this working on windows. I've set up test function calls bound to the 1 and 2 keys.

H41ogen avatar Nov 11 '25 03:11 H41ogen

Huh? What are you trying to achieve? Wdym by querying?

Argmaster avatar Nov 11 '25 05:11 Argmaster

I've put this in low priority but please elaborate on the purpose of this change

BoySanic avatar Nov 11 '25 05:11 BoySanic

Uh ok I get it, so you want to pop open os file select prompt. To do this properly you will basically implement that for every graphics environment we want to support (GTK, KDE, mac, Windows) or invent your own using Cubyz UI. That is a lot of work, so I think you should start with explaining what do you need it for.

Argmaster avatar Nov 11 '25 05:11 Argmaster

Uh ok I get it, so you want to pop open os file select prompt. To do this properly you will basically implement that for every graphics environment we want to support (GTK, KDE, mac, Windows) or invent your own using Cubyz UI. That is a lot of work, so I think you should start with explaining what do you need it for.

In my save creation gui rework, I found it much more convenient as the user if I could add addons to the world I'm creating by simply clicking a button that opens the folder selection menu. As for implementing on linux, as far as I can tell zenity just works.

H41ogen avatar Nov 11 '25 05:11 H41ogen

Did you check it on Kubuntu or any other KDE based distro?

Argmaster avatar Nov 13 '25 01:11 Argmaster

i use kde, and it works perfectly. i havent tested on anything else though

H41ogen avatar Nov 13 '25 16:11 H41ogen

In my save creation gui rework, I found it much more convenient as the user if I could add addons to the world I'm creating by simply clicking a button that opens the folder selection menu.

I would propose a drag and drop solution, still easy for the user, but also much less pain to implement, since it is supported by glfw.

IntegratedQuantum avatar Nov 20 '25 18:11 IntegratedQuantum