F3XTeam / RBX-Building-Tools

A set of powerful, easy building tools for ROBLOX.
38 stars 22 forks source link

Allow users to select multiple sides in the surface tool #23

Closed GigsD4X closed 9 years ago

GigsD4X commented 9 years ago

I think the best way to go here is to just add an option "ALL" in the dropdown.

GigsD4X commented 9 years ago

Added in 795e1dac51c461f947810e1aba50749899e21c6d.

AnonymousPrayers commented 9 years ago

On the way home on my laptop, I was going through the Surface tool trying to find a way to add this and I came up with an idea, but with this new "ALL" button I don't know how to implement it. It would essentially not have the dropdown collapse when an side is selected, but instead but a checkmark next to it (or remove it) and set it in a table to true. The table would be something like this

sides = {Top = true; Bottom = false; Left = false; Right = false; Front = false; Back = false;}

Then, say I select the "BOTTOM" option, this would be the code:

sides["Bottom"] = true

Then when a surface type is selected, it would do:

for i, v in pairs(sides) do part[i.."Surface"] = surfacetype end

The checkmark thing could be accomplished by putting an ImageLabel on the right of each TextButton, or putting this at the front for deselected: "[ ]" or this for selected: "[X]".

GigsD4X commented 9 years ago

Okay so what I was thinking was that you should be able to shift + click to multiselect sides too, but in what cases would it really be useful? It doesn't sound like a very common thing to do :o On Dec 4, 2014 1:07 PM, "Zenon" notifications@github.com wrote:

On the way home on my laptop, I was going through the Surface tool trying to find a way to add this and I came up with an idea, but with this new "ALL" button I don't know how to implement it. It would essentially not have the dropdown collapse when an side is selected, but instead but a checkmark next to it (or remove it) and set it in a table to true. The table would be something like this

sides = {Top = true; Bottom = false; Left = false; Right = false; Front = false; Back = false;}

Then, say I select the "BOTTOM" option, this would be the code:

sides["Bottom"] = true

Then when a surface type is selected, it would do:

for i, v in pairs(sides) do part[i.."Surface"] = surfacetype end

The checkmark thing could be accomplished by putting an ImageLabel on the right of each TextButton, or putting this at the front for deselected: "[ ]" or this for selected: "[X]".

— Reply to this email directly or view it on GitHub https://github.com/F3XTeam/ROBLOX-Building-Tools/issues/23#issuecomment-65703831 .

AnonymousPrayers commented 9 years ago

Idk, but I've never used the right-click thing myself anyways, so I wouldn't know. With the menu, it'd be good for things that need welds or something on some surfaces but not all, or to put hinges on two sides, or to selectively disable outlines, etc.