https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • u

    user

    03/18/2020, 3:10 PM
    For my filesystem its ok but its when I use it with gane hiearchy that it causes issues
  • b

    bright-gpu-74537

    03/18/2020, 3:11 PM
    https://github.com/Kode/KodeGarden/blob/master/Client/src/custom/TreeView.hx
  • b

    bright-gpu-74537

    03/18/2020, 3:12 PM
    single scrollview with expandable leaf nodes
  • b

    bright-gpu-74537

    03/18/2020, 3:12 PM
    its primative version of what i use now in hxIDE
  • b

    bright-gpu-74537

    03/18/2020, 3:13 PM
    if you want, i can send the treeview i use at the moment, but im not 100% sure how "drop in" it would be
  • b

    bright-gpu-74537

    03/18/2020, 3:13 PM
    that said, i would also like to know the issues with your approach, even though it seems strange, it shouldnt break imo
  • b

    bright-gpu-74537

    03/18/2020, 3:14 PM
    so its likely uncovered some bugs in haxeui-kha due to "non standard" use maybe? Care to open an issue if you get some moments?
  • u

    user

    03/18/2020, 3:15 PM
    Its ok. Thanks though
  • b

    bright-gpu-74537

    03/18/2020, 3:17 PM
    ... ... fair enough
  • b

    bright-gpu-74537

    03/18/2020, 3:20 PM
    fyi, the "i guess thats not the end of the world" part was just about glScissor breaking the batching
  • u

    user

    03/18/2020, 3:32 PM
    sorry got a phone call. The reason I dont need it is I am phasing out haxeui in my engine/editor. Btw I know that your implementation was not mine and it was probably a bad implementation on my side, I just couldnt find a way to have children of children without scrollviews as it seemed to be the only component that could maintain a recursive hiearchy of stuff. I loved how haxeui worked and its flow and ease of access. But its easier to optimize and more direct to draw calls with zui and since I am basing my engine on kha it just made sense. Plus zui is used in production(i.e. with armorpaint). One of the big plus of haxeui btw is your accessibility and response to issues. I am not writing off haxeui for the end of time, just for now because I need to ship my dam thing 😛 There are advantages with zui that you just cant support(i.e. kromx now supports android/ios and armorpaint uses zui so input and interaction is "free" ). And when I say you cant I mean you have a lot of libs to maintain and I get that it is a huge challenge to do so. I also want to say that you have achieved a huge feat with haxeui and that its a really useful library !
  • b

    bright-gpu-74537

    03/18/2020, 3:38 PM
    sure, thats all fair enough... zui is probably very integrated with kha... though, i would like an example of how haxeui-kha isnt, just from the point of view of being able to improve it. Ill be rewriting the renderer and alot of the backend in general "soon" (since currently it totally trashes batching, which is something i only just found out about! 😮 ) so knowing how better it could be for any kha users is always a bonus 😉
  • b

    bright-gpu-74537

    03/18/2020, 3:39 PM
    also, not sure i understand about android / ios... haxeui-kha works there, but again, it trashes batching so without my "experimental/batching" branch things like listviews will be extremely sloooooow :/
  • u

    user

    03/18/2020, 3:41 PM
    Yeah, it is supported in android/ios but the interaction (i.e. uievents) wont be fired probably. We need to add them and since my timeline is for the end of march and I have boat loads of other stuff thats why its free with zui. But at the same time this is recent news though I would of probably said something differejnt relating to thsi last month 😛
  • u

    user

    03/18/2020, 3:43 PM
    For its integration with kha. The issue is I tried finding how draw calls are done, and I found them but things are mostly abstracted away while with zui everything is just there(i.e. I can see the draw calls for each component as they are just functions).
  • u

    user

    03/18/2020, 3:43 PM
    That because of the nature of the implementation. Its an immediate mode UI
  • b

    bright-gpu-74537

    03/18/2020, 3:44 PM
    yeah, thats fair... i mean, also haxeui is abstracted by nature due to its mulitple backends
  • u

    user

    03/18/2020, 3:45 PM
    yeah exactly. The abstraction is not bad except when you need more custom components that cant be serviced by already existing ones.
  • b

    bright-gpu-74537

    03/18/2020, 3:46 PM
    maybe thats documentation being shitty / non existent... i cant really think of an example where you couldnt make a custom component to do "anything"
  • u

    user

    03/18/2020, 3:47 PM
    how would you of done a recursive list object ?\
  • u

    user

    03/18/2020, 3:47 PM
    documentation isnt that bad. I can probably help with that
  • b

    bright-gpu-74537

    03/18/2020, 3:47 PM
    im not sure what you mean by recursive list object
  • b

    bright-gpu-74537

    03/18/2020, 3:47 PM
    like a tree?
  • u

    user

    03/18/2020, 3:47 PM
    yup
  • b

    bright-gpu-74537

    03/18/2020, 3:47 PM
    so the way i linked
  • u

    user

    03/18/2020, 3:47 PM
    a tree that can have a tree as child
  • b

    bright-gpu-74537

    03/18/2020, 3:48 PM
    sure, a normal n-level tree
  • b

    bright-gpu-74537

    03/18/2020, 3:48 PM
    this is how i did it:
  • b

    bright-gpu-74537

    03/18/2020, 3:50 PM
    and it just keeps going
  • b

    bright-gpu-74537

    03/18/2020, 3:50 PM
    the "label" hides / shows its children
1...185186187...1687Latest