Hi
I attempt to add graphic to tab
I’m lost
--
-- Called when the current tab in an uiTabs component is changed
--
moduletabchanged = function(mod, tabIndex)
if panel:getModulatorByName("ModulesGraphiques") ~= nil then
panel:getModulatorByName("ModulesGraphiques"):setModulatorValue(tabIndex,false,false,false)
end -- actually my background tabs , a custom mod on another layer
I would replace it
-- 3 child components 0,1,2 (getNumChildComponents)
cmp = mod:getComponent()--:getChildComponent (1):getTabContentComponent ( tabIndex) -- component generic ??
mdl = Graphics(Image(ARGB,616,4,960,232,true)) -- something wrong
if tabIndex == 0 then
mdl:setFont(24.0)
mdl:setColour(Colour(0xCDFFFFFF))
mdl:fillRect(16,16,928,2)
mdl:drawText("OSC1",16,24,88,24,Justification(Justification.left),false)
mdl:drawText("Shape",49,192,112,24,Justification(Justification.left),false)
cmp:paint(mdl)
elseif tabIndex == 1 then
end
console(string.format("%s", mod:getComponent():getCurrentTabName () ))
tried a lot of things ,the only thing I get for now is the nb of childs
Also tried to adapt the script of the custom and add the property “paint Callback” to my tabs but nthe script does nothing…..
Is it possible currently to simply add graphic to uiTabs ?