New local LookAndFeel objects
-
@d-healey Does it work with other floating tiles (eg. the keyboard)?
-
@christoph-hart Doesn't seem to. This gives no output and the keyboard is unaffected.
const laf = Content.createLocalLookAndFeel(); const var FloatingTile1 = Content.getComponent("FloatingTile1"); FloatingTile1.setLocalLookAndFeel(laf); laf.registerFunction("drawBlackNote", function(g, obj) { Console.print(trace(obj)); });
-
@Christoph-Hart
I'm gettingInterface:! Line 4, column 54: Unknown function 'createLocalLookAndFeel'
from:
const var stdKnoblaf = Content.createLocalLookAndFeel();
Using a develop build from today...
-
@lindon Works here, is this a brand new project or an existing project? Are you certain it's the develop branch you built?
-
-
strange this works:
const var stdKnoblaf = Content.createLocalLookAndFeel;
but totally fails on the next line:
stdKnoblaf.registerFunction("drawRotarySlider", function(g,obj){
with
Interface:! Line 6, column 28: Unknown function 'registerFunction'
whihch of course is telling me that the line 4 doesnt actually work....
-
@lindon You are missing a set of
()
-
@d-healey no Im not...
this doesnt work:
const var laf1 = Content.createLocalLookAndFeel(); laf1.registerFunction("drawRotarySlider", function(g, obj) { g.fillAll(Colours.green); });
it says :
Interface:! Line 3, column 48: Unknown function 'createLocalLookAndFeel'
-
@lindon Are you sure you are using the latest develop? Your code works here...
-
@ustk I cant get on a more up to date version:
Are either of you on windows?
-
@lindon Mac for me
-
OKAY - anyone on Windows can confirm the local LAF is/isnt working?
-
@lindon Nope, works here perfectly.
-
@christoph-hart damn it. What can it be?
-
@lindon - its not even in the API list
-
@lindon Do you see it in the API browser?
-
@d-healey nope..
-
@lindon I think you are running the wrong version of HISE.
-
@d-healey okay - let me start again then.. hang on....
-
wow how ugly is this...........
SO instead of using git to swap to develop and/or checkout the latest build, I did the following:
Deleted HISE from my Windows computer - yep all of it every thing in total
Went to Github and selected the develop branch
Down loaded the Zip file
unzipped it to my D drive
unzipped the VST SDK stuff...
Opened Projucer and opened the standalone project,
saved and opened in IDE...
Selected Release/X64 in Visual Studio
ran a build
when it completed successfully
opened the stand alone and got this in the API:So the only thing I am doing different is I am NOT using Git to checkout the code....
mystifying....