My next problem - I've got a custom display which was working fine earlier today and I can't work out what I've done to break it. I've specified 2 values to be passed through to the display drawing function, both of which are specified in the rt_owner section of the motherboard_def.lua. For some reason (and this wasn't happening earlier) it appears that the first call to my draw_sequencer() lua method is passing nil for one of the 2 props. I had it working earlier but I've clearly done something to break it in the last couple of hours. The subsequent calls to draw_sequencer(props, di, dr) have both values in props correctl, just not the first call.
Is somehow possible for the display drawing function to get called before my C++ class has been constructed? I'm passing a string back to the motherboard like this: -
Code: Select all
TJBox_UInt8 cPatternData[17] = "0000000000000000";
TJBox_PropertyRef motherboardPatternRef = { fCustomPropertiesRef, "PatternString" };
JBox_SetRTStringData(motherboardPatternRef, 16, cPatternData);
Help!