Add Expansion Sample Maps to ComboBox
-
Hi everyone,
I'm looking to provide users with additional sample libraries. I have a mechanism that allows selection through a ComboBox via the menu shown in the attached photo. Each expansion pack will have its own rectangular image in the first column, categories, and then sample maps.
I would like to know how to ensure that when a user downloads an expansion, the new library is automatically added to the ComboBox.
-
@marcrex You can use the expansion handler to get a list of currently installed expansions.
-
@d-healey thanks for your reply.
I probably didn't phrase my question correctly.
What I meant is that I need to understand how to do it.
I watched your video on expansions from a few years ago, but it mainly discusses presets.
I just want to update the combobox whenever a user downloads an additional package, but I don't know how to update all the submenus of the combobox by adding the new collection to the existing ones. -
@marcrex How are you currently populating the combo box?
-
@d-healey that's a snippet.
HiseSnippet 2500.3oc0Ys0aabbEdoj1jX1j.mf7Peo.iIJBV1pvvkV1RUFtVTTh1pQWHHkSagppwncGxchmclE6Eaoj3+O8w9Sn.8s9qI+CZOyr2lkhThRw1skAQlyky47Mmqyb3fPgCIJRDZTq9wWDPLp8wlitfG60yCS4F6sibBG+yHmGDShhM19h.bTDw0nVskepbG0tyJFpO+zS1FyvbGR4TFFeqf5P1m5SiKmcvVeCkw5icIGS8018Zasmif2SvDI.ZV1rsQ.14k3IjCwxssjowyvQdF09Mlt1qYOdCG7C2vdsNNNc1X8N+t0cH3wiIOz9Aqu1FiWaL1ocGiZevttzXQ3nXLfdiZqrsv8hQdhWySEv2RinmwHxA1Fi.ImNceAyUdDkyZzyixbGjqlhLLpYNnTosbpR6KLOf5RKluT4cW0BnRJzUf0VpJ7VtB7r0gWaM3MCHUSCRqjBoOybjSHMHtbEId9El6wiIgf5gTAJo60XoO4tl8DvN3ws7wujzODFTPg0CZ2dUD7mlOpdcvVEEidENDEg8CXjCvAQnGiNoNB9zvQvXDmXpf6IRhHatoxoJZyM2NT3K++FqNmMN.6BaiKNivl6d1Fv8latCgDH+1k2lCkS7wkBc2.pi56yeqoh8ORcIv2l+1RkbO0nXpiR70Osh5.hVFkqQ.ERt5bBItmvOPvgAVMz2TCPcVRd5zg1.oJHqH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Y5X6oF2Ypw2epwqM03GL03GN030KGWjOT5Y.imt7wGtXkO.FL.CGYsctMcRYxV0L5MouPMqfhVC9mQqx+f2UcuekEKX6p+wE9+fzmU9wFtSNFGQkVmc4uBBKgYjX7ygppiwIr37Yqlh3.AWD3AW7zoZP.3TOYBITG6y7.0MNFhAKm4K1ZHbkUbjVT7udq8gxU3vpw12Hcg8M9GdYl1qeoYJbQx7ZneN1s2qtYWYIvkWnRfu0w6sub36UU2mlUXDAROL9+wsyeroJUNRV48+VPcnHQ1w87pZlPouQP4dGhdAvkjEUSG2VNVBnQDtqZv+F9jsncd0R4h14KZ3jyJ3rk8c0aDpsbVWJk2riA0gY5tzQvkJjPBpn8dAk9XmPwKbReDjDqejZF.kb0OE9cLOPNFYO8idLL7g5UuvwoJqtDgctsDd+aKgqcaI7A2VBe3skv0usDtw0Sn75DcSf2KklL0v3fA6l5.Va2BGvkM9O.wvKvtC -
@marcrex Looks like you're just hardcoding everything currently. You need to instead use the expansion handler to give you a list of installed expansions, loop over those and grab the bits of data you need in order to populate the combo box.