Problem "More" & "Save Preset" buttons custom preset browser
-
I followed the video from Healey about the preset browser. Everything works like the video, but I run into the following issue: I want to change the 'more' and 'save preset' buttons, but when I finish the script for this, the icons disappear and nothing shows up. What am I missing?
presetBrowserLaf.registerFunction("drawDialogButton", function(g, obj) { drawMoreAndSaveButtons(); }); //functions inline function drawMoreAndSaveButtons() { local buttonNames = ["More", "Save Preset"]; if(!buttonNames.contains(obj.text)) return; local a = obj.area; local icons = {}; local pathData = "5225.t0F.fHCQ..vWCwF.foBQ..vWCwF.foBQ..rgCwF.fHCQ..rgCMVa..UCDA...MDaPUiNDA...MDaPUiNDA...MDat9mNDM6A.MDabmrNDIjG.MDaoNwND44P.MDany0ND85c.MDaoU5NDUkt.MDa8y9NDM1BAMDa2MCODcpZAMDaphGODM90AMDaowKODIsTBMDaJ5OODQx1BMDag6SODQHbCMDaF0WODAoDDMDaPlaODINvDMDaZNeODkvdEMDa8rhOD8HPFMDaUCkODsdzFMDaUCkODwdzFMDaCx7PDwJubMDaCx7PDwJubMDaD++PDgEkcMDaCACQD8ecdMDag2EQD8PXeMDa.hHQDIOUfMDaE.KQD0PTgMDaXQMQD4KUhMDafUOQD40WiMDaHLQQDQDbjMDa+zRQDArgkMDaxOTQDEhnlMDaSbUQDAavmMDaVZVQDgK4nMDaxIWQDsmBpMDadpWQDAjLqMDaV7WQDgzVrMDa..XQDArJsMDa..XQDArJsMDa..XQDA.XPODa..XQDA.XPODaj3WQDwK8PODaQhWQDoQhQODaJ8VQDoKGRODaWIVQD4yqRODa9FUQDYDPSODaJ1SQDg2ySODaJWRQDYGWTODaJpPQDgt4TODaduNQDUmaUODaXmLQDUr7UODaNRJQDQ3bVODaZvGQDAF7VODaSBEQDgPZWODaVHBQDAS2WODaAC+PD4HSXODayx6PDossXODaNX3PD87FYODa0yzPD4xdYODaLFwPDkK0YODa3OsPDgCJZODaiQoPDMWcZODazKkPDsCuZODaU+fPDIF+ZODavrbPD8aMaODazTXPD4BZaODaJ3SPDw3jaODahWOPDA7saODapyJPDIK0aODaOMFPDAk5aODaBkAPDwH9aODax67ODw0+aODa..6ODA..bODa..6ODA..bODa..UCDA..bODa..UCDA..bODahVPCDgD+aODaysKCDIR7aODaiFGCDUo2aODaggBCD4JwaODac+8BDw2naODaDg4BDQwdaODaEG0BDM4RaODaLxvBDQQEaODaFirBDs60ZODadZnBDA6jZODa9XjBD4QRZODaPefBDMC9YODa7sbBDYRnYODanEYBDwBQYODa4lUBDIX3XODaSRRBDYVdXODaXHOBDwACXODaoILBDodlWODaiVIBDcwHWODajuFBDA+oVODaFUDBDYLJVODahGBBDcdoUODaOG.BDg5GUODafT9ADAlkTODaou7ADYlBTODa5X6ADMAeSODafP5ADI75RODamV4ADIcVRODaXq3ADwowQODa5N3ADInLQODaRA3ADEdmPODa..3ADA.XPODa..3ADA.XPODa..3ADA.PWMDa..3ADA.PWMDabG3ADYnEVMDauc3ADob6TMDa0B4ADonwSMDao14ADQXnRMDaB45ADI2eQMDa1I7AD8PXPMDa2n8ADEwQOMDa1U+ADwhLNMDaiPABDMwHMMDaoXCBDMmFLMDaxsEBDQOFKMDamOHBDwyGJMDat8JBDsdKIMDaq2MBDsYQHMDa.8PBDAtYGMDaNMTBDkjjFMDaymWBD4ExEMDaLLaBDAZBEMDa14dBDonUDMDaIvhBD03qCMDaetlBDYQECMDaNzpBDY3gBMDas.uBDgyABMDaQSyBD4GkAMDaOq2BDI5KAMDa3G7BDUN1.MDafn.CD0Gj.MDaYLECDkoU.MDayxICD40J.MDa.aNCDgtC.MDaQDSCDkT..MDa..UCDA...MDa..UCDA...MTa..1BDA.PWMDa..1BDA.XPODa..1BDA.XPODaeB1BDQYjPODa5I1BDkvvPODaRV1BD4C8PODaim1BDQQIQODaq81BD0VUQODamX2BDgRgQODaR32BDgBsQODamb3BD4j3QODagE4BD02CRODa3x4BDg4NRODalj5BDInYRODahZ6BDABjRODakT7BDkEtRODajR8BDEw2RODaUT9BDACASODauY+BD44ISODalh.CDYTRSODautACDAQZSODa78BCDktgSODaCPDCD4qnSODa0jECDwGuSODaD7FCDQA0SODajUHCDYW5SODaFwICDUI+SODaZNKCDUVCTODaRsLCDo8FTODafMNCDs9ITODaxtOCDEYLTODa6PQCDYLNTODapyRCDQXOTODavVTCDo7OTODa..UCDA.PTODa..UCDA.PTODa..zCDA.PTODa..zCDA.XwNDa..zCDA.XwNDabGzCDMzxvNDauczCDUtMvNDa0B0CDUznuNDao10CDILDuNDaB41CDk6etNDa1I3CDcH7sNDa2n4CDg3XsNDa1U6CDYQ1rNDaiP8CDoXTrNDaoX+CDoSyqNDaxsADDoGSqNDamODDD44ypNDat8FDDYuUpNDaq2IDD4r3oNDa.8LDDA2boNDaNMPDDQRBoNDaymSDD8BonNDaLLWDDAMQnNDa14ZDDUz5mNDaIvdDDY7kmNDaethDDsnRmNDaNzlDDM7.mNDas.qDDw4vlNDaQSuDDAjhlNDaOqyDDI8UlNDa3G3DDIGKlNDafn7DD4CBlNDaYLAEDwz5kNDayxEED8Z0kNDa.aJEDQ2wkNDaQDOEDQJvkNDa..QEDA.vkNDa..QEDA.vkNDa..+MDA.vkNDa..+MDA.vkNDadoCNDg6vkNDaMRHND4sykNDac4LNDsV3kNDaedQNDI09kNDai.VNDQHGlNDa7dZNDwNQlNDa73dND0FclNDazMiNDwtplNDa6bmNDUD5lNDahkqNDAEKmNDaBmuNDMtcmNDavfyND07wmNDaDR2NDosGnNDaX55NDQ8dnNDaGY9ND4m2nNDassAODooQoNDan2DODQ9roNDaW1GODYgIpNDacoJODoNmpNDabPMODAAFqNDa5pOODoykqNDad3QODkgFrNDax3SODgEnrNDafqUODAZJsNDaWPWODoYssNDaFmXODw9PtNDafuYODwC0tNDaYoZOD0hYuNDanTaODIV9uNDaFwaODwWivNDat9aOD0gHwNDa..bODA.XwNDa..bODA.XwNDa..bODA.PTODa..6ODA.PTODa..6ODA.PTODaJi7ODIrOTODaDF9ODwvNTODaen+ODwMMTODaJJAPDoCKTODa1pBPDkRHTODaTJDPDI6DTODaTn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h.QZprZCw1q.h.QxAmZCw1qkg.QECgZCw15Kg.QQuZZCwVbyf.QVGTZCwlTbf.QZLMZCwVmFf.Qf+EZCw1Wxe.Q0g9YCwloee.Qjz1YCwVeNe.Q73tYCwF79d.QOvlYCwFBwd.QuadYCwlyjd.Qx7UYCwlRZd.QvTMYCwFgQd.Q9jDYCw1eJd.Q3t6XCwlPEd.Q5yxXCwlyAd.Qb0oXCwFJ.d.Q7zfXCwF..d.Q5DcXCwF..d.Q5DcXCMVY"; icons.more = Content.createPath(); icons.more.loadFromData(pathData); local icon = obj.text == "More" ? icons.more : icons.save; g.setColour(Colours.withAlpha(obj.textColour, obj.over ? 1.0 - 0.5 * obj.down : 0.7)); g.fillPath(icons, [a[0] + a[2] / 2 - 18 / 2, a[1] + a[3] / 2 - 18 / 2, 18, 18]); }
-
Double check this ;)
g.fillPath(icons, [a[0] + a[2] / 2 - 18 / 2, a[1] + a[3] / 2 - 18 / 2, 18, 18]);
-
@d-healey I've checked it a few times, but I can't figure out what I'm doing wrong, unfortunately, apologies.
-
@tiesvdam What is the name of the variable where you are storing the icon you want to draw?
-
@d-healey Sorry i don't understand what you are asking me for. pardon
-
Ok this
g.fillPath(icons, [a[0] + a[2] / 2 - 18 / 2, a[1] + a[3] / 2 - 18 / 2, 18, 18]);
Should be this
g.fillPath(icon, [a[0] + a[2] / 2 - 18 / 2, a[1] + a[3] / 2 - 18 / 2, 18, 18]);
-
@d-healey omg, the little things always fuck me up, sorry for my stupid questions. xD
Love for always helping me!! Legend
-
@tiesvdam said in Problem "More" & "Save Preset" buttons custom preset browser:
sorry for my stupid questions.
Na these are the fun ones :)