plugdata-team / plugdata

Pure Data as a plugin, with a new GUI
https://plugdata.org
GNU General Public License v3.0
1.43k stars 62 forks source link

[feature request] switching ON/OFF integer/float mode in number box? #1622

Open H-MLim opened 2 months ago

H-MLim commented 2 months ago

image

the number box became more convenience than vanilla, that simply dragging numbers to make integer to float. but it seems showing dot in the box is kinda compulsory. and it sometimes really bothering me when making GUIs in my patch, and I want to hide it and shows only number(integer)s.

although there are note object that shows only numbers via sending messages, it still has a problem that since note cannot send the message. or is there already any ways to hide the dot in the box?

porres commented 2 months ago

but it seems showing dot in the box is kinda compulsory. and it sometimes really bothering me when making GUIs in my patch,

I'm also highly annoyed by the dot, specially regarding some GUIs as [brane.m~]. I don't want the preset number, which is only supposed to be an integer, to show this dot...

The solution I'm seeing is to use a list box instead!

But I think that the atom number box should behave the same and only show the dot when there is an actual need for it...

I see that you want to be creative and offer design revisions and all, but it's so easy to introduce conflicts and noise, so so so so easy... and you'll probably be too excited in offering something you wish and you'll just end up missing and overlooking possible issues.

Anyway, this seems to be a MAX influence, that has a box for floats and another for ints... but applied in a Pd paradigm and it doesn't sit right.

And now, why does the list box behave differently than the atom number box? Seems also weird for me

I've been finding many issues that come from this...

So, my basic idea and solution is:

porres commented 2 months ago

I see same goes for [nbx] and, well, maybe just suppress the dot completely and only show it when hovering the mouse to right of if when it also shows non highlightes 0s to show you can click and drag from there...

cause, why do we need the dot?

MAX needs it because it has a float number box and an integer number box... but we're not MAX.

Is it to make MAX people comfortable and not lost?