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

    user

    03/18/2020, 3:51 PM
    and if the list gets long they are scrollable ^
  • u

    user

    03/18/2020, 3:51 PM
    ?*
  • b

    bright-gpu-74537

    03/18/2020, 3:51 PM
    yeah, that whole thing is the contents of a scrollview
  • b

    bright-gpu-74537

    03/18/2020, 3:51 PM
    so normal scrolling applies
  • u

    user

    03/18/2020, 3:51 PM
    give me a second will check my code
  • b

    bright-gpu-74537

    03/18/2020, 3:53 PM
    here is that concept in action:
  • u

    user

    03/18/2020, 3:54 PM
    I was being stupid. I only use one scrollview as you did
  • b

    bright-gpu-74537

    03/18/2020, 3:55 PM
    btw, the only reason this isnt in haxeui-core is because i think i can do better with itemrenderers and a datasources... that treeview is kinda crappy because it can only be populate by code and a bunch of "addNode" calls
  • u

    user

    03/18/2020, 3:55 PM
    still had issues with drawing probably not being batched(In html5)
  • u

    user

    03/18/2020, 3:55 PM
    https://github.com/mundusnine/haxeui-kha-extended/blob/master/haxe/ui/extended/TreeView.hx
  • u

    user

    03/18/2020, 3:55 PM
    If ever you want to have a look at it
  • b

    bright-gpu-74537

    03/18/2020, 3:56 PM
    maybe, though its just a scrollview so i doubt thats the issue
  • u

    user

    03/18/2020, 3:58 PM
    One of the issue I was having is probably because my tree class wasnt a scrollview it had a scrollview as component
  • b

    bright-gpu-74537

    03/18/2020, 3:58 PM
    possibly... ill have to run your code and see what results i get
  • u

    user

    03/18/2020, 3:58 PM
    The scrollview would scroll passed the top of the vbox.
  • u

    user

    03/18/2020, 3:59 PM
    its probably me being stupid 😛 happens sometimes
  • b

    bright-gpu-74537

    03/18/2020, 4:01 PM
    sure, ill have to take a look at it... anyways, my main point was just that there shouldnt be anything you couldnt build out of haxeui components... in fact, technically, there isnt a reason to use anything other that Component if you didnt want to and then build everything yourself...
  • b

    bright-gpu-74537

    03/18/2020, 4:01 PM
    (that all haxeui-core is doing at the end of the day)
  • b

    bright-gpu-74537

    03/18/2020, 4:01 PM
    not trying to convince you to use haxeui ofc, just trying to understand how haxeui-kha can be better 🙂
  • u

    user

    03/18/2020, 4:04 PM
    No no I get it. I mean you pretty much know all the possibilities. The thing right now is probably me that doesnt have the same knowledge and I assume that too have custom things its more complicated. How would you go about having custom component with just component ?
  • u

    user

    03/18/2020, 4:04 PM
    Like we cant do dfraw calls with a simple component ?
  • b

    bright-gpu-74537

    03/18/2020, 4:05 PM
    not sure i follow
  • u

    user

    03/18/2020, 4:06 PM
    What I am asking is how would one go about doing everything custom with the Component class ? Like you proposed
  • b

    bright-gpu-74537

    03/18/2020, 4:06 PM
    well, i just mean, that all a button is, inside haxeui-core is a custom component based off of Component
  • b

    bright-gpu-74537

    03/18/2020, 4:07 PM
    so if you wanted a component that wasnt inside haxeui-core, lets say it was a button... you could just create a Button extends Component
  • b

    bright-gpu-74537

    03/18/2020, 4:07 PM
    and then do all your "button" stuff in there
  • b

    bright-gpu-74537

    03/18/2020, 4:07 PM
    thats all i meant, that the component set in haxeui-core isnt "thats it"
  • u

    user

    03/18/2020, 4:08 PM
    oh ok. Yeah no, people wont probably want to do that.
  • u

    user

    03/18/2020, 4:09 PM
    for button
  • u

    user

    03/18/2020, 4:09 PM
    but for more complex stuff probably
1...186187188...1687Latest