Forum

    • Register
    • Login
    • Search
    • Categories

    UI IDs and Namespaces

    Scripting Forum
    2
    2
    433
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d.healey
      d.healey last edited by

      For a complex UI I like to split it up into different files which I can bring together in my main UI script with include statements. I use namespaces in each file with an inline function for each callback that the controls in that part of the UI use.

      One thing I've noticed though is HISE won't let me have two controls with the same ID even if they are in different namespaces.

      Libre Wave - Freedom respecting instruments and effects
      My Patreon - HISE tutorials
      YouTube Channel - Public HISE tutorials

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        Christoph Hart last edited by

        Yes that‘s true. The namespace concept has no meaning outside if the scripting engine but there must be a unique ID for presets, inter script communication, etc.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post

        7
        Online

        849
        Users

        5.7k
        Topics

        52.8k
        Posts