That makes sense. And thank you for taking the time to answer.
BTW, I just have to say, I am so totally impressed with your work.
HISE is an absolutely AMAZING tool!
Thank you for all your hard work on it.
Larry
Larry Seyer is an award-winning musician, audio engineer and producer who has worked with many artists across various genres. Every Thursday at 7PM he live streams on YouTube, Twitch and Rumble.
That makes sense. And thank you for taking the time to answer.
BTW, I just have to say, I am so totally impressed with your work.
HISE is an absolutely AMAZING tool!
Thank you for all your hard work on it.
Larry
"Do you want to save this preset?"
"Do you want to overwrite the preset?"
"This will save the current XML file"
"Overwrite the existing XML?"
How can I get rid of these annoying confirmation boxes?
I'm willing to re-compile, but don't know where I can globally disable these.
Found the typo... fixed it...
Thanks for the video.
I've been watching your videos ever since I first found out about HISE (which was only a couple of weeks ago)
Funny thing is, looks like I've already watched that particular video.
I'll watch it more closely this time.
Thanks for all your help and rapid response.
BTW, also I really appreciate the work you've done with the instructional videos...
Great job!
All the very best to you!
L
No, it's a little more complicated than that.
I just became a Patreon supporter highest tier.
Can I send you a message there with more detailed code?
I understand that... and it does.
But when I run your code, and click on the logo button, button 4 activates even if button 1 was activated before the logo button was pushed.
I want whatever button was active before to return to being active when the logo is pressed a 2nd time and the splash screen goes away.
Maybe a better way to explain this is I want to 'push' the state of the buttons onto a stack/array and then 'pop' their state after the splash screen goes away.
No.
I'll explain further...
The splash screen happens when the program loads.
AND
It happens when the logo button is clicked on.
When program first loads, I want button 1 to be active.
But when the logo button is clicked, I want whatever button was active to return to being active.
Thank you for the code... it is much simpler.
However, using this code leaves the last button activated instead of the first.
Any idea how I can have the first button be activated/highlighted and NOT switch to the last one?
//! pnlTab
const pnlTab = Content.getAllComponents("StylesPanel");
//! btnHideAll
const btnHideAll = Content.getComponent("SplashScreenTriggerButton");
btnHideAll.setControlCallback(onbtnHideAllControl);
inline function onbtnHideAllControl(component, value)
{
setTabVisibility();
}
//! btnTab
const btnTab = Content.getAllComponents("Rhythm_Button");
for (x in btnTab)
{
x.setControlCallback(onbtnTabControl);
}
inline function onbtnTabControl(component, value)
{
local index = btnTab.indexOf(component);
for (i = 0; i < btnTab.length; i++)
btnTab[i].setValue(index == i);
setTabVisibility();
}
//! Functions
inline function setTabVisibility()
{
for (i = 0; i < btnTab.length; i++)
{
pnlTab[i].showControl(btnTab[i].getValue() && !btnHideAll.getValue());
}
rhythmDisplayid.set("visible", !btnHideAll.getValue());
spashScreenNameID.set("visible", btnHideAll.getValue());
}
I have 4 panels controlled by 4 buttons... they work great. No issues.
However, I want to hide all 4 of the panels when I hit a 5th button which is not part of the 4 original buttons (for a logo screen)
In my custom callback I have the following code:
It hides the panels just fine, but will not restore the panels visibility when the logo goes away.
What am I doing wrong?
if (value)
{
for (i = 0; i < NUM_TABS; i++)
{
panels[i] = Content.getComponent("StylesPanel" + (i + 1));
buttons[i] = Content.getComponent("Rhythm_Button" + (i + 1));
values[i] = panels[i].get("visible");
for (l = 0; l < panels.length; l++)
{
panels[l].set("visible", false);
}
}
panels[NUM_TABS] = Content.getComponent("RhythmDisplayNumber");
panels[NUM_TABS].set("visible", false);
}
else
{
for (i = 0; i < NUM_TABS; i++)
{
if (buttons[i].getValue() == 1);
{
panels[i].set("visible", true);
}
}
panels[NUM_TABS] = Content.getComponent("RhythmDisplayNumber");
panels[NUM_TABS].set("visible", true);
}
Found the typo... fixed it...
Thanks for the video.
I've been watching your videos ever since I first found out about HISE (which was only a couple of weeks ago)
Funny thing is, looks like I've already watched that particular video.
I'll watch it more closely this time.
Thanks for all your help and rapid response.
BTW, also I really appreciate the work you've done with the instructional videos...
Great job!
All the very best to you!
L
Not sure I understand exactly what you mean.
Let me repeat it back to you and see if this is correct...
Set all panels off except for 1st one (the one I want to be active)
Put buttons into an array (not quite sure how to do this yet)
Set all buttons 'off' initially, but when a button is pressed, it is set to 'on' in the array.
Is that right?