Hello everyone! Ilia here. I'm a long-time guest developer in the forum, and I've decided to join the community. 28, LA
I
Best posts made by ILIAM
-
RE: The world of HISE
Latest posts made by ILIAM
-
RE: Random Button & Radio Buttons?
@Chazrox @HISEnberg Thank you guys, Very nice
-
Random Button & Radio Buttons?
I have an issue with this concept: 16 radio buttons and 1 power button. I need to randomize and select one after the power is activated.
const var Power = Content.getComponent("Power"); const var Buttons = [Content.getComponent("Button1"), Content.getComponent("Button2"), Content.getComponent("Button3"), Content.getComponent("Button4"), Content.getComponent("Button5"), Content.getComponent("Button6"), Content.getComponent("Button7"), Content.getComponent("Button8"), Content.getComponent("Button9"), Content.getComponent("Button10"), Content.getComponent("Button11"), Content.getComponent("Button12"), Content.getComponent("Button13"), Content.getComponent("Button14"), Content.getComponent("Button15"), Content.getComponent("Button16")]; inline function onRandomizerControl(component, value) { if(!value) return; Power.setValue(Math.randInt(0, 2)); Power.changed(); if(Power.getValue()==1) { for (i = 0; i < 16; i++) { Buttons[i].setValue(Math.randInt(0, 2)); Buttons[i].changed(); } } }; Content.getComponent("Randomizer").setControlCallback(onRandomizerControl);
HiseSnippet 1273.3ocuXstaaaCElxIpcVqqnYXO.Z4W1qAAR9tQZvxxstfUmZT2ELfhhBFIZahHSZPQmT2h.rGk83z2f8Zr2fsCkjsjc7RhYfq9iygjemuubNjGdosf6QBC4Bjg0aGOjfLdhYmwLY+C5ioLzIGhLdpYKbnjHriaZ+wCwggDejgwZuT0fQ90QQe+yOuON.y7HoMgPmwodjWQGPkos1dueiFDbL1m7V5fLitxdm3wYGvC3i.8rloCZH16BbOxoX0vxYh9UbXejwOYV2ooSYRyp9Db4Fkq55faVuakx9N9miq62njS2p0NuNoKx3QG4SkbQGIVRBAmtO2ebm97qXwDbFMjdd.QY3h5.LG2L5f9z.+1SBNgHjw5sSCUqEGp9AyVTe5z1SCYOKpC6TDYCZF4tMI4tDRxHijVOVRaX1wSPGJS6Qomu07DFjA6hgbSVoDOVTt+1z7.NLBlb6A3KHGK.io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R3Q.1YLRPnJ+mSc9qXamIq95PX9QF+K7kzo6jiQp5zcRmnAXOA+CdwmJU8xmeSTKflXQuLbdyVJa6omaOMNO.No0G77l0U2.XIcAVVWfUzEXUcAVSWf00EXi6Fn5fv+xHIeP7xFDpU6iht+fgwQQmTNZ1J5+.qyvXkA
Thanks for the advice
-
RE: The world of HISE
Hello everyone! Ilia here. I'm a long-time guest developer in the forum, and I've decided to join the community. 28, LA