🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Trying to search information about layers order in the UI design of UIFLow

    UIFlow
    uiflow
    3
    3
    6.6k
    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.
    • H
      HéctorD
      last edited by

      Hi;

      I'm tryng to highlight labels through the use of a colored rectangle that I want to put under the text/label I want to highlight and when I press button B thus rectangle is desplaced to the next label I want to highlight.
      But the appearence in the UI is different from that in my StickC.
      I've tryed to find any information about layer order in the web but I've got no lucky.
      I suppoused that first Layers (3,4,..) are in front of later layers (7,8,..) so I put the labels in layer 3 and rectangle in layer 7. In the UI it show correctly but when I pass the program to the stickC and move the rectangle, it hide all the text beneath.
      I've added code to restore the labels, but I don't know if the layers would permit to do this automatically.
      If anybody can give me some clue about layers in the design UI it would be of great help for me.

      world101W 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        I did start logging the layers in my wip book but could't present it in s usable way and so it was removed.
        I am supprised the layers are working differently

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • world101W
          world101 @HéctorD
          last edited by

          @héctord

          It's actually the opposite as you describe. A higher layer takes visible priority. So when displaying text or shapes on the screen, an object on layer 8 is "on top of" (or covers over) an object on layer 3, and there is no transparency (see through).

          The tricky part is once you move your rectangle to highlight the next label, you have to redraw (or show) the changed areas of the screen. So the layers and screen management take some getting used to within uiFlow.

          Here is an example flow of what you are looking to achieve.
          Layers 0-3: reserved by uiFlow by default
          Layer 4: rectangle
          Layer 5: Label 1
          Layer 6: Label 2
          Layer 7: Label 3
          Layer 8: Label 4

          0_1615728306502_example.png

          Note: In the M5StickC UI simulator on the left, you could manually change Labels 1 through 4 to all be on layer 5 and it will still work, since those labels do not overlap.

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