LAF for Tables broken in develop branch?
-
Console.print()
is your friend. Tables don't expose their text property in laf. Shouldn't be too difficult to add it though. -
@d-healey Confused, what do you think I should be printing? And you mean add to source code?
-
Confused, what do you think I should be printing?
You should check out my LAF videos ;)
Console.print(trace(obj))
And you mean add to source code?
Yes. Probably in ScriptingApiObjects.cpp
-
@d-healey oh wait I did it by using the itemColour / bgColour (which you suggested a while back but I did it wrong!)
-
@DanH said in LAF for Tables broken in develop branch?:
@Casey-Kolb going back to tables, and for audio waveforms too, do you use a method to differentiate between tables or are they all the same? i.e do an 'if (obj.text == myawesometable1)', else 'if (obj.text == myawesometable2)' etc
We use the same LAF for all tables. I think @d-healey is referring to editing the HISE source code to include text properties for table LAF. This is what I'm currently doing:
laf.registerFunction("drawTablePath", function(g, obj) { var a = obj.area; g.setGradientFill([0xCC0000FF, a[0], a[1], 0xCC00FF00, a[2], a[3]]); g.drawPath(obj.path, obj.area, 0.5); g.fillPath(obj.path, obj.area); });
-
OMG.. Today I compiled Develop branch. Sorry, but this version is Total useless for now. Table with LAF not working. We need this to be worked.
HiseSnippet 997.3ocsV8ziaTCE2NalUMAJhJwMtLpmRTWFkTx1tqPH5tYSJQc+SDYao2pblwSF20i8nYbRHBsm3.eH3.eG5ctwWB9VvcDBd1dRlDX11sAgOj32e8u2adum8vToOMKSlhv0tbQBEg+PmQKDpntQDl.M3DD9ibNijonotVVGuHgjkQCPX7NOUy.WqJxr98u5XBmH7oErPnWHY9zSYwLUA2gO4YLNuOIfdIKdMs67jA9RQWIWNEvyNNsPID+qHSnmSzpUwAg2sW.SISGoHJZFnywxfEihjyEV8eAKiMlS0DsQi.GYYi5Fw3ACWFqYHDt5vhHeGaj+INmwBXq3WjA9Xi.2BKVOGfqrIjptAjZeSPpujGncvM.O7ZvqpEd2yYjeJKQUHQisOvYf.93DRfz95vxpKpxeVwoqDzPn7hIWQ6mBDqrnw9sZsmamVsZ9E0gLelxcFI0kSBc+R2dhILA0yOkBw0S4xwDt0mmJkWcjHnOkxa.1UGT2KkNgoqQ5OU3qXRQi6GjRleIAB7gDUz82yMbojI64JG+5l0+95tvZhWFUY+h2.X6Mdhk.brUr1OZWXjl.aLl6Q.XsmaKu8WoXger+k4MmohNhmDQ1vyZqZcPyU1EBkh2vA.5b8sIBkLg51Ehuan0o4FgdONmkjQMpoVcXqG4leXgFMhjynoMMbrm8+gyuH6TNFxU6ZcJZYj6JEmKUzKDMzAes5WW28eJJLrTY5ZzTImSSKUrdNQ5ayvFhowioPDLivmRWoHz7rY24t2ttSeaKyZJJECDL0EIzb5h921kz+hx64zcx4HDfhxzGe279XSsChA93NNl8sQFvu9zy.hhfv8b5bf2lqYWb5ge6wG90uL3nG00PO+Yu16AhEcF+XKM7S3CzpdnkFgd9fSztKGR.5.DmPSULchAeBcFLo1NpolyIzrqTxDitwIRgNVv0emAv2gvN38AfuPuID1LmEnhzDeJFghnrIQJM0uAh7mlojw4kjvIUgonwKm9Wa227leQ6.TA2GpY+i+5O+GZ1KKZ079ge57mauY4eM0DlcKClxIpMGnqu4JW.TGswjS8zQQFSsX8a1dOlx2pzo7kVkbKg68bFxT9Qki2JkfW3a7+23M+Ny65zKLj5qJ.aUm9ubauf78.JeibphIlbFQkxzUcmOMdDTM3SAjHDTdltJqhtSzR2RSqyLinh.CweAqbgs0z3bgsWJDES7Skux21+puU9NFN.lDlGjTCdYDP6tpw0wAtaAECOV3U995TwmAXubad3VXymuE1zYKrY+svlGsE173svlCdq1nem1QSgoJ11DfwvdlgdXbOgdDkohD82LweAHA
-
@DabDab Pretty sure Christoph has changed his focus to New Layout branch. I don't think Develop is being developed any more so I probably wouldn't use it
-
@DanH new_layout will probably be merged into develop before going into master
-
It is crashing....