HISE Logo Forum
    • Categories
    • Register
    • Login

    UI IDs and Namespaces

    Scheduled Pinned Locked Moved Scripting
    2 Posts 2 Posters 557 Views
    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.healeyD
      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 HartC
        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

        52

        Online

        1.7k

        Users

        11.7k

        Topics

        101.9k

        Posts