LAF ScriptSlider?
-
This post is deleted! -
Here is an example that will place boxes around the buttons in the Save XML popup. To style different popups you need to check the text property of
obj
and adjust the styling the way you like. As far as I can tell there is no way to change the button text colour or font (maybe the global font can do it)...HiseSnippet 927.3ocsVE2aZbCE2GgqZPWlVU6G.K9qC0qniPHoRnpUBgqB0lTztrtIghpL2YN7hOajOSSPS8679Fr97c.GrR5RQZ9O.d989Y+yO+98LCUxPZZpTgrpb0hYTj0OZGrPnm1aJgIPCNGY8S1WPR0TENepyVLijlRiPVVG7FyDVUJixF+8ubFgSDgzhoPnOHYgz2wRX5hYG952x3beRD8JVxFQe7qGDJE8jb4bfOGX6glQBugDSujXBqjMx5Q8iXZoJPSzzTHlyjQKBlJuUjG+GXorwbpwnIJ.Vn7oQ8lx3QCWcVSQHqxCKN4Gjexel8ErH154Kx.+blCbAhMyAVk1lRk2hRMuOJ4K4QlE3dnm0FzqbN8dhcPnhMSW3wvsGaOP.WNSHPZeSZkGKpzSOvtmDhPnajPtg5q.i0HbNwyyE21yqdmCqdXUH4mpwehnvbxD7qv8EwLAsQnhBGs2vkiI77k8cR4McEQ9TJ2odG.IDeCEMlYpS7mKB0LovoVjhbaWNUo+clHRdaMW7jU9hcwxw+Y8p+UULLhaLAJH5x4Nd2462Ja.qqwU1GFJQ.BAPZP.1zYIpTpNuZAvc7wdYi5c1XI+UZn1gT+qiO+qzF2Nkooq8aHbNDWrWiVahyGxaN05ISXg3.hHEeQ.bdZ9xsv1kyhEznqn2ocLbUyzbpKdDjj8bWy9QGcsKtkG7QsP3dQQipYx+lk4v6kni4fTXUXKObx4BnFxPXhHlScFQF4cM943llaUxnVWieAt0ot3SAyiZC6W6+68IVQW7P2lSOZqs4j1EaS0OWuypKarTboTSeuvwbeWo5mqh+2tlLYm9LUtJIGJg1oaS2C02BniXdxXpxEJf3yoqCDjTaqYezCSyFlKj1HPoXffoe+L5R6BUcycnpQKUhvu9sAmSzDiPe4bPby.kByPGqyoeB5ZlK6qXeNM8FsbFz27q5I.cljQy4D81sqL8kW5.xGa0Wvn8EoL8hM6a+czCyam8v14o8AR2mXOjoCmta9VZG7ExZ+ey2kuHbnc+ISf59BxV11+O121+eGTAzbZlH9BhVwtCYYe47j.PdFRAlHDTNrQ1VkLUT41dFaSlIfJhxL9GXrzYSis0RmMW4DkPBUxOFlqTLu47CYy.bRj8baE3cevF2Dkod.b1dM7PIvSgeLLzjJdAv8ci4n8.Sq8.yw6Al16AlS1CLmtGXd42Di4egzctVljKSfIF1OqMhkUeAApxxpHQegT0yJY
-
Oh I'm an idiot. There's a LAF function specifically for styling dialog buttons.
laf.registerFunction("drawDialogButton", function(g, obj)
-
@d-healey said in LAF ScriptSlider?:
laf.registerFunction("drawDialogButton", function(g, obj)
Thanks David :)
-
@d-healey haha! this also affects the preset browser buttons! A real can of worms!
-
@DanH You can filter out individual buttons by their
text
property, but I think an opt-in rather than an opt-out solution would be better... @Christoph-HartHiseSnippet 1158.3oc2V0saaaCElxwJX1cYscXO.Z9Ja.GA4j1thEDr3jXWXrlDi5rtATTTvHQIyEJRAJpjXTj2g8br61avteuL6xcW1ghxV1MNcMFX6hwKr74W8oCO+MTJ7IooBIxp1oSRHHqO2dzDtZ7AiwTNZvgHquv9HbphHcLr1eRBNMkDfrrV6EZFV0phxO+42sOlg49jRVHzqETexKowTUI2g688TFqONfbJMdNsexdC7E7CDLQFfm0r8PIX+ywQjiwZ0pXirVuW.UIjiTXEIEzYeQvjQiEWxM5+ZZJ8LFQSzAMBbjgM5fwTVvvoeqoHjU0gke4qY9x+J6inAzY7Ki.OJWfSoEyGCrprHjpt.j5bWPpufEncvc.Oq4fWUC7dr8HeIMQUJQisGXOfCWNgXHrOOrL5hpDW09.AnAW4FiOmzWBDyrn4y77Z67TOuV6rQ8MpCA+TkyEXoCCG5rqSOdDkSb8kD3S6ELwYXlwsuTHNuKOnOgvZ1ZGvRPeWIIhpyS5mw8UTAuYi.I9xCoXlHZ+LkRvaz1Ibpvn1Nhy94V0e+F0cfCfwTAi3lHobUSkTCNsbMvzxM+pgVhjjRT6KEWlB4j657lFGIjDv0M5FDneLBeAAtqzZ03sKXNMzo4Bl6R4AjqNIT+pbUjqTsb95cc1rSKi9uO+W8IxMDxX6xXM8tZqs7xOvGtVzLcnF2HtfHaMi4+fwKyAAPpy8wAyAR3KqOb+1rwAhXpuyHLO04nQPPoyVtK8Ulahofqo4Qp6kioJxbJG4puG6xnQbRvoPPZVzJ+JzECoGPX2GRwjjfFSuwt17fvRIEg+hq5+WDOe9+gwyEdKWW+5V6LsJxQvOVnHmvaBER0qU+55NennvvkJS2SPJXLhboh08kkeLCaxyhOiHaCkjrLxLEglUK1Mb8Ostg9lVTyonfOfSUmjPJnK6W1YI8KQE83f+8CCNDqv5VnE7.8RHREUCGqCIW.yiLMTqYeHI8bkHIW23DAW6AqGnJlFX500mIvJJO5TJ.aJffGZOOqNnqJGfMXuIkD6s2kz.0Xjks0WVAgFSnQiUZpe0ZFdM.4g1CmuqD5rnoy.qsN3n+R6MHGJtj6ucyubyhb2Ry9O98axYmGAprokcdIWCcXU2UrnK725njYj1yD06pDHwFtdS6lBNKKVqRHFJbK0IO7KuCGnSzRusagDAiA2VVe7EBI.d879EDdbVrABZa11vyv3G0AyWAwcAH4MlVIdta+Am12aAZ9uci5WCqkbqQtvfeQPFCqVba.8ZOEBfn1Bic0iVgXoZx7qEcOVQvaoqHrzT9OQ39X6gTk+3ki2JKAuPoy+13sXgqMr6EFR7Ukfspc+eZU2t5d.kWIxz0uGgURJT9ZCYcifZHeBfDNGFYoKSqnaqXn8zz5HyHBOHm3F3THril1pPXmoBQwXeo3c9l1k5U59rbN.l34ayVCVqFnc5fxagB1Y645ghgMMemuuNTrIf8kayVqfMauB17jUvlmtB17rUvluYEr44eTazK42MSIhMkI.ig8x6jZY0iigrr7LRzeSE2GH+
-
@d-healey Thanks, this has been an education (again!)
-
I've just commited a few changes that should reduce the sketchiness of the scripted LAF:
- The alert windows do not get messed up anymore as soon as you enable the scripted LAF
- same with the custom settings tile (actually I had to change the default appearance of that one a bit in order to enable this, but it looked super weird anyway with its default JUCE look and feel)
- there is now a
parentType
property that contains the ID of the FloatingTile that this component is in. This way you can do stuff like
if(obj.parentType == "CustomSettings") g.setFont("Comic Sans MS");
-
@Christoph-Hart Thanks Christoph!
-
-
@Christoph-Hart do you think you tweaked something here that resulted in this
https://forum.hise.audio/topic/3874/blank-boxes-in-new-scriptnode-no-laf
?
-
No Idea What This Means, But This Error Shows Up As Soon As I Hit F5
Interface: Line 21, column 12 {SW50ZXJmYWNlfHw1MTB8MjF8MTI=}Unknown function 'clear'
In This Code:
HiseSnippet 1527.3ocuW0saaaCEVNMZXwaYncXO.b9JmVGGa2l1AjkMm+bQPcRciS61PPQAiDkEWjIEnnai2PA1KReW1izteWzcNjVVR1NoAAnSIHH77G+32g7vC6ojdrjDoxozJmNNl4T5qc6OVnC2KjxENGtOH2s6NcH8nBmcGGSSRX9NkJcmmhpKsxxNlu+4m2kFQEdrLQNNuRx8Xc4C45Lo8Z+LdTTGpO6T9vbV+n1G5IE6Iiji.nbG2FNwTuKnCXGSQyVx0ozWbfOWKU80TMKwozx6J8G2OT9Ng09WwS3mGwvAMc5CAxJtiLxGQLJ0YuPdjeuzkbhCDkdYDvcrDv24dD2mOUdFQbWiBRlG44iRKccvqYd303lCuR4f2xV3cO29dJdrNSChsux8PgloBnPJHOrr15rz2th6dRvBgt9P5ErNJXvTOp93FMpQ1rQi01Z0xqVFRDIZxaoJRDMfrM4.w.tfU2Swfk1SijmSirgsqTdwNB+NLVTUqq3OarAgbhTSUiIIQbelxJ5v.xH.TDZBgh6lH8MJqQRXZhlcolPE9jgReFIVIiYJMmkPzRREv3JqVFwSLflzkgEN8n5PybCPsthMfm.qoNiDdZtTTshuh9NKVryVkZjfTkCpQjm+6qU9OWsLA9v3qnhALXN.4.McIYc6+wEaYsw9WX0j.gTCl6yohL2MRedP.th1lzp9lEbCsfp7NMj6cg.xbfIMp2ZqBJ+EtuNDTzrdCXxaA+89E7YVbbDj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pO23cxarV08ff.nlUFXW1syu94+AUNP8RMbABzvjBy9tGOZXeXKmGCPhP.MT.xJsDdf0NtANFYl9PgMyfOBeST1DGWZhxloJcFR8Tx23YOliuh6KMR.LILOlcE2ivwjlomtccgZq3Nc9a77PpXc.6K1mV2Bed3svmGcK7YyagOO9V3yStE97CWqO3652YjVNzdLADz6.SU1RkNPPgcYlcjN+W35HpK
-
@Natan might be a typo in a Console.clear() somewhere ?
-
This part
Interface: Line 21, column 12
Means the error is on Line 21 of your interface script.This part
Unknown function 'clear'
Tells you what the error is. You are using a function calledclear
that doesn't exist. -
-
Just had a quick look at the code and you're calling clear on a path, so it should work. Don't know why it isn't...
What version of HISE are you using?
-
@d-healey Funny, It Stopped :) By Itself
-
Sir, Any Idea How to Add A Darker Arc As Background To This:
Just A Fixed Shadowy Arc Like This Image ( The Gray One - With Square Edges Not Those Circle Looks )HiseSnippet 1527.3ocuW0saaaCEVNMZXwaYncXO.b9JmVGGa2l1AjkMm+bQPcRciS61PPQAiDkEWjIEnnai2PA1KReW1izteWzcNjVVR1NoAAnSIHH77G+32g7vC6ojdrjDoxozJmNNl4T5qc6OVnC2KjxENGtOH2s6NcH8nBmcGGSSRX9NkJcmmhpKsxxNlu+4m2kFQEdrLQNNuRx8Xc4C45Lo8Z+LdTTGpO6T9vbV+n1G5IE6Iiji.nbG2FNwTuKnCXGSQyVx0ozWbfOWKU80TMKwozx6J8G2OT9Ng09WwS3mGwvAMc5CAxJtiLxGQLJ0YuPdjeuzkbhCDkdYDvcrDv24dD2mOUdFQbWiBRlG44iRKccvqYd303lCuR4f2xV3cO29dJdrNSChsux8PgloBnPJHOrr15rz2th6dRvBgt9P5ErNJXvTOp93FMpQ1rQi01Z0xqVFRDIZxaoJRDMfrM4.w.tfU2Swfk1SijmSirgsqTdwNB+NLVTUqq3OarAgbhTSUiIIQbelxJ5v.xH.TDZBgh6lH8MJqQRXZhlcolPE9jgReFIVIiYJMmkPzRREv3JqVFwSLflzkgEN8n5PybCPsth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EFoXcdf2cwGWjqVAZxG9vG9Wzjgbe+HVOYBGSp4edA1pXpyCy+Xje6ugd2xMrMzSXbe9evx+dkjQAA7Kw7UW3UIy0kMzquzG6Np3C.vW8LQAhl7cZicSK.TNN+r7Y4UA2T3dO2dbsW3hw6RK.uvlpO23cxarV08ff.nlUFXW1syu94+AUNP8RMbABzvjBy9tGOZXeXKmGCPhP.MT.xJsDdf0NtANFYl9PgMyfOBeST1DGWZhxloJcFR8Tx23YOliuh6KMR.LILOlcE2ivwjlomtccgZq3Nc9a77PpXc.6K1mV2Bed3svmGcK7YyagOO9V3yStE97CWqO3652YjVNzdLADz6.SU1RkNPPgcYlcjN+W35HpK
-
I think you posted the wrong snippet
-
@d-healey
I Just Don't Want Its Background, Instead of A Nice Circle Like The Above ImageHiseSnippet 1530.3ocuW0saSbDEdcHKpwsoBjp50S8UNfiisACUJMs4WihvIwDGnsJBgFu6r1Sy5YVM6XHtUH0WDdW3Qp22KnmyLd8tqsSHJRTCBwb9a9NemYN6Y5njdr3XoxovJmMNh4T3ab6NVnGr2.JW3b39fb216zhzgJb1cbDMNl46TnvcdFptvJK6X98O+xtzPpvikJxw4URtGqMeHWmJsy1OmGF1h5yNiOLi0Od6C8jh8jgxQ.TtiaMmHp2Ez9rionYK45T3tG3y0RUWMUyhcJr7tR+wcGHemvZ+q3w7dgLbQcmtPfrhaIC8QDiRc1a.OzuSRJG6.QoSJAbGKA7ctGw84SkmRD2ynfj5QV9nvRWG7pmEd0t4vqPF3srEd22sqmhGoS0fX6qcOTnYp.JTBxBKqsNK88q3tmDrPnqNjdAqkBVL0ixOoVsJjl0ps1lqVb0hPgHVSdKUQBoAjsHGH5yErpdJFjZOKT1iFZCaao7hcD9sXrvxVWw+rwFDxoRMUMlDGx8YJqnCCHi.PQnwDJdZhz0nrBIloIZ1kZBU3SFJ8YjHkLhozbVLQKIk.iKsZQDOQ.ZRRCKb5P0CL6M.0pJVedLjSsFI7zbonbIeE8cVrX2sRUHAIJ6WgH68Gq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