overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
130 stars 47 forks source link

Create app: Entity List: "Copy ID" on menu and contextual menu. #865

Closed AleziaKurdis closed 3 months ago

AleziaKurdis commented 3 months ago

This PR adds "Copy ID" on menu and contextual menu of the Entity List in the "Create" Application.

Addressing Issue #790

image

enabled if only 1 entity is selected.

image

disabled if more than one selected entity.

The CSS has been updated too, since the found were so thing that it was a paine to see what was disable. I also make the disable font more greyed.

image (Since this menu is not geared to disable menu items, the copy ID function will make a rejection sound or a confirmation sound depending if the selection is === 1 or not)

AleziaKurdis commented 3 months ago

Finally, I change the action for "Copy ID(s)" and it can now copy ids from a multiple selection.

image This outputs something like this in the clipboard: {20cdf19f-d719-4987-be60-3664c8689f13}

image This outputs something like this in the clipboard: ["{20d2b5ff-b1eb-42d9-9e27-68a90df423fe}","{2677e858-7305-47b3-9da0-0767ec8b5911}","{3d0ac241-6d6e-4edd-9575-70f7f2d7f581}"]

image This outputs something like this in the clipboard: {e9034544-dec4-4875-8843-1d2bce6c40a3}

image This outputs something like this in the clipboard: ["{8b5fac05-00c6-40b5-8181-ddbd9de9bca8}","{a2d8ddf4-cbe4-420e-b9a0-7197bcfe913a}","{bfb8fa9c-4003-451e-ac76-591f646f97bf}"]