HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. voxuer1
    3. Best
    V
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 28
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Connect Slider Value

      @d-healey After hours of watching YouTube tutorials, I've found a solution to link a label value to a slider, yeh, but there's just a small problem left that I can't fix. I want to round the value to 2 decimal places, which works, but sometimes I get values with more than 10 decimal places. Hmm, can you tell me what's wrong with my script?

      const var Speed = Content.getComponent("Speed");
      const var SpeedValue = Content.getComponent("SpeedValue");

      inline function onSpeedControl(component, value)
      {
      local roundedValue = Math.floor(value * 100 + 0.5) / 100;
      SpeedValue.set("text", roundedValue);
      Console.print("Slider Value: " + roundedValue);
      };

      Content.getComponent("Speed").setControlCallback(onSpeedControl);

      posted in Newbie League
      V
      voxuer1
    • RE: Tooltips

      @d-healey I did it, broadcaster was the right tool!

      posted in Scripting
      V
      voxuer1