maptool icon indicating copy to clipboard operation
maptool copied to clipboard

[Feature]: Field for data storage on individual macros

Open Pmofmalasia opened this issue 4 months ago • 2 comments

Describe the Problem

For various reasons, sometimes it would be worthwhile to store data on the macro buttons themselves. A possible use-case would be for tracking macro buttons that are intended to be temporary and removed at a later time - copying the macro would change its ID, and the label could be changed making that unusable as a marker. Currently, this is accomplished in an unsupported manner using the disabled maxWidth property. I have not made extensive use of this method but others have and may have additional use cases for doing so.

The Solution you'd like

Adding an officially supported data storage property on macros instead of using maxWidth.

Considerations:

Should we just change the current maxWidth property into this storage property? For as long as I've been using MT, this has been disabled (and minWidth doesn't exactly do what it says either, but that's a separate issue) so I don't see any harm in removing the property altogether unless there are plans to revert this. It would break the macros of those currently using the property in my proposed manner, but it's not supported as is anyway so that seems acceptable.

Should this property be editable within the macro editor? My preference would be for no - at least by default - as in my mind the purpose of the property is to have a secure non-editable portion of the macro button.

Alternatives that you've considered.

No response

Additional Context

No response

Pmofmalasia avatar Mar 13 '24 18:03 Pmofmalasia