How do I embed a link in a button?
-
I would like to embed a link to my patreon on a donate button in my plugin, but I have no idea how I do that since I am new to the software and coding in general. Nothing I have found on the internet, in any video tutorials or in any chatbot has helped me solve the issue. Below is an image of my little project that is hopefully visible to you guys.

-
@kliin In the button handler use
Engine.openWebsite();with the URL of your web page.https://docs.hise.dev/scripting/scripting-api/engine/index.html#openwebsite
inline function onButton1Control(component, value) { if (value) Engine.openWebsite("https://hise.dev"); }; Content.getComponent("Button1").setControlCallback(onButton1Control); -
@dannytaurus said in How do I embed a link in a button?:
inline function onButton1Control(component, value)
{
if (value) Engine.openWebsite("https://hise.dev");
};Content.getComponent("Button1").setControlCallback(onButton1Control);
Ayy thanks man it worked :D