make callbacks based on avilable expansions



  • hello everyone, can somebody help me with the logic here?, so I made a script that scans all the expansions and shows them as images, but I'm stuck here, how do I make callbacks for them, for example I want to change the samplemap when I clicked on one of those images

    here is my snippet

    HiseSnippet 1829.3ocuYslaaaDDlzILIRINMoHG.B8KYHVEJU2zh3XTW+pvM1NFUoFAHNHflbkzZSsjkbkiEBLPNB8Pz+2qQON8FzN6KxkTOprRck+g4NyNy7Meyrq1k5njHeTZZThgYkWOJFYX9.qNiHz9a02CSL1aaCyaaEQL1bTrWZJJvvz7V+HSiYkaav+7We+ldgdDeTtHCiiiv9n8wCvzboGswKwgg65EfdMdf1rWci87iHaEEFMDPwsrbMh87O2qG5PO1zVxxv7N6DfoQIcndTTJfnMiBF0oezGHh4eLNEeZHhMnkQGvQBw6FEFvPLSpwV8wgAGox1TCvKGkm62Rj6Ow5.b.NSdNG7HtB6bKz4CyklE7ZoCO24GdlZv61B38XqN9I3XZtFF1tu0dDJJoqGTBzgkXtFK8GOvZqHXFDZyAdmi1MAFjYQ8Vsbccrelq6JqsbU1eO8o1aiSiC8FYmhnKWEpMoT6K7RrQWF6QRwvX60s2gzCSPM6gn6nDuONkVW4lDTO6yw9mu2.nRxL3suaMgzThWBRHdctPtu21i5YKFqa9VQCITvZWci0ElCO1zeIlpBUtBtMbMR2Wzl8FzaLSXx2+zvo3qIYAWglI555iv85y.Fv0EL5C3.Z+IHOjsxAjuZY4YdpsKOFLgiV2URZh+5FkXWGYiIZErU93xUsgOr4GClyKbPaTLJghQo7plROVomWixJpL07pz5nlgQdArG2EGhpWK.dp4YoQjZp4g6BHfMglTnwc80q8RfOqo.A6irX0LdXZ+5wMYK0UFqTKpxMZTRrnyQXH9stuak0rsymQJrrKqgTCCNpH5j6aG6ZrmONNJgVSN3HOBJrlipwvQ0I3nEaGWETuRRKgonwy4NrNhBIspQrXVaWZBSHu0Vxb8SbUTczbuiscM9nrjmORk8ptbmr1ZGcL3vZX03fqza+z+CSBgMIr6Nj3SAXUBjp5BfFe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rfzS9LgTYJssNkFrHTZacJs8+2TZacJMXZTZ6+Soz6ds1Ibbl8lb85CDQWaA6jCcv7ufsbBYtz7zd8PgUyyR1VSs+R3BUCF+MFrvMXEXl4pCKKEl8p16Im1B0iUDUi+JZej0AQACC8nEe6wrWYtTAtzaSm8pXA5iNR+Upei7JkmW39XqivT+9SFuKMA7BM62z3U9B5W1ZmtcQ9T8echceyM+ai23miFRwjdG3QSvrFqCGNnSzvDeDfDBzKvNlp4RrSJHF6pZ95fHA7A+M7QprEaroTYKkRiAd9IQu2Wb.N1OAv83R.LQ3q6pXc.arc1oOsrba5ZL.GfeuuOiJ9J.6S1l1KfMe8BXypKfMeyBXyyV.a91Evlual1v9Qg9ggznAhkIffi1gepYSycHdPWFuiz3e.3xUGJJ
    


  • Don't use images. Use a panel, then you can use the panel's mouse callback.



  • @d-healey aha thank you so much



  • I'm sorry but can you give me an example





  • @d-healey this is stange, it did work but for some reason it gives me an error message function not found now



  • @fmented I forgot to remove the old components


Log in to reply
 

7
Online

647
Users

2.6k
Topics

21.4k
Posts