Preset Browser - List item background
-
@ustk said in Preset Browser - List item background:
One problem I guess.. If a user doesn't know the exact way to save presets name like
Category names like "BA", "DR" etc and _ speparator
the Presets name shows something like this
-
@DabDab yep, will need a safety built in
-
@DabDab absolutely, it was just a quick draft but more safeties have to be made, which in the end are just some
undefined
checks -
@DabDab you just need
id
to be checkedif (identifiers.contains(id)) { a.removeFromLeft(30); g.drawAlignedText(id, a, "left"); }
this works even if a user enters a name that contains an
_
char -
@ustk said in Preset Browser - List item background:
if (identifiers.contains(id)) { a.removeFromLeft(30); g.drawAlignedText(id, a, "left"); }
But if a user only enters words without the id and cat the name is unidentified. End users must need to know how to write and save presets otherwise it will not be visible.
-
@DabDab try this
HiseSnippet 1448.3ocsWssaaaDDkT1Lnh8RZ.5G.gPePpPPPR9VRMBpkrrZEpbhfkSZALBLVSNTZqI2UX4JeAAFn8On+G8o9GzOg9oz25ioyxkTjTRtMvngPW3NyYl4ryNb1kiDbWHJhKLLsO81Yfg4mXM9Vlb5gSITlwfdFlel0wjHIHbzh5d6LRTD3YXZtw2pDXVdSi3q+5a5RBHLWHSjgwq4TWXHMjJyjN5fumFDzm3AmRCygd6CF3xYGxC3yQ9rgUSiYD2KISfWPTvJYY7cjnoFlekk21W.j1jlO6Y6s8dD2catU68Zt2S82FH6554ty13ncIjKLLezQdTIWLVRjPjg4lc4d2NdJ+ZlN.ulFQuH.TCZYLFirVbedfmZJpjZb3TZf2nzDUjA5kQYosMzosuv5XpGcg7rz2mGqvIyh7IPyREo2FEnWq7zqYN5sFJYliRapozSrF6JnyjYZT74isFvvUSeBtNkmJZrFk9iMsNjiHXxFgjKg9BbvBKptayl0cvepsuMhJhG.MbC.hnJJv1FW8hjNWQD3zEhjcE7qi.w4C6z244Nod0U.3jcH2kDLjyurCyqO.AwNHExDPdHObFmgCpVoe.mHorImRCfVUp0HBjqX8xwS4sL1P8PGQ8ofHBIxYU51oRcmJ8Noxa1OGJWhTUnkBY7XMnWc7XEN7Z4fzP.SnpGM5Om4Job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r6jKfQmwv85PYlkTMt0iapFqx.iAlW7f2gWIJaoFalnrUpRiPhqfetqdSH0Yu+nXIHmXwumRY7ElvwNsLh2XJedNDeUfyccK5pULr8C0vsdnFt8C0vcdnFt6C0v8dnF9z+aCUuoVm4Rdn9wFCiiGcT7dYllGwHXEXb0pw+bl8Q4G
-
@ustk Excellent. Working Correctly.
-
@ustk Got this working nicely, thanks! However I guess what I'm really after is a reflection of the preset tags... @Christoph-Hart is there any way to dig the preset tags out a preset and display this in the preset browser list items?
-
@DanH I am not sure how comfortable you are with editing the source code, but if you are signed up to David's Patreon he shows how to make edit's to the preset browser source here: https://www.patreon.com/posts/adding-custom-to-126009781
I am finding this pretty useful. I'm actually tinkering around in their currently to edit the tag list. In my case it's the 30 pixel, one line of tags that is limiting (I need multiline).
What you are after may be doable in HISEscript alone though I can't really think of a solution off the top of my head.
-
@HISEnberg happy with editing source code although these days I try not to do it if possible.
I'll take a look at the vid, thanks