KorGE

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Order of updates of views

    Support
    3
    4
    33
    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.
    • K
      kooostia16 last edited by

      In which order siblings in container updates?

      1 Reply Last reply Reply Quote 0
      • soywiz
        soywiz last edited by

        https://github.com/korlibs/korge/blob/master/korge/src/commonMain/kotlin/com/soywiz/korge/view/Views.kt#L427-L438

        First leafs front to back, then parents.

        A
        | a1
        | a2
        B
        | b1
        | b2

        As far as I can tell:
        b2, b1, B, a2, a1, A

        Is this intuitive to you, or should have a different order?

        Nico 1 Reply Last reply Reply Quote 0
        • Nico
          Nico @soywiz last edited by

          @soywiz in some cases a preorder might have advantages.

          1 Reply Last reply Reply Quote 0
          • soywiz
            soywiz last edited by

            we can change it in KorGE 2.0 if you think it is better

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