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

    cool-psychiatrist-49311

    06/13/2020, 7:22 AM
    what is the relationship between DataSource and ItemRenderer? if in my data source I have some enum content, and I want to render (completely) different things for each of them in an ListItem, how can I achieve that?
  • b

    bright-gpu-74537

    06/13/2020, 7:52 AM
    im not totally sure thats possible to be honest
  • b

    bright-gpu-74537

    06/13/2020, 7:52 AM
    ill have to have a play / think
  • b

    bright-gpu-74537

    06/13/2020, 7:53 AM
    i mean, essentially, what you are saying is (in a simple example) is say you have in a ds:
  • b

    bright-gpu-74537

    06/13/2020, 7:53 AM
    ds.add({n: 1});
    ds.add({n: 2});
  • b

    bright-gpu-74537

    06/13/2020, 7:53 AM
    and you want to display something totally different based on "n"?
  • b

    bright-gpu-74537

    06/13/2020, 7:53 AM
    actually, i think there is an item renderer function, but i havent used it in AGES
  • b

    bright-gpu-74537

    06/13/2020, 7:54 AM
    ill have a play
  • c

    cool-psychiatrist-49311

    06/13/2020, 9:02 AM
    yes that's what I mean
  • c

    cool-psychiatrist-49311

    06/13/2020, 9:03 AM
    I am not sure if that make sense in haxeui to have some render function like
    Data->Component
    though that is common in declarative UI frameworks (e.g. react js)
  • c

    cool-psychiatrist-49311

    06/13/2020, 9:04 AM
    e.g. in react a ListView component would have the following properties:
    Copy code
    haxe
    typedef ListView<T> = {
      data:Array<T>,
      renderItem:T->View,
    }
  • c

    clever-oil-61353

    06/13/2020, 12:56 PM
    Off topic question.... yall happen to know what kind of bug this is?
  • c

    clever-oil-61353

    06/13/2020, 12:57 PM
    Noticed it and a smaller one while I was on the porch. They move real slow, but were interesting to watch.
  • c

    clever-oil-61353

    06/13/2020, 12:59 PM
    To give an idea of how small....
  • c

    clever-oil-61353

    06/13/2020, 1:02 PM
    And hello Kevin.... nice to have you around, i can see i'll learn a bit from conversations between you and Ian.
  • c

    clever-oil-61353

    06/13/2020, 1:36 PM
    Got it figured out now...... its the larvae stage of the green lace wing. apparently those little critters can jump pretty good.
  • c

    clever-oil-61353

    06/13/2020, 2:01 PM
    Hows the cute lil pupper doing Ian?
  • b

    bright-gpu-74537

    06/13/2020, 2:25 PM
    hes cute as hell... a total menace but cute as shit... i call him Osama Bin Chester because he is an absolute terrorist 😄 Hes got some real attuite when you tell him off / no too
  • c

    clever-oil-61353

    06/13/2020, 4:38 PM
    lol
  • c

    clever-oil-61353

    06/13/2020, 4:38 PM
    that is downright cute
  • c

    clever-oil-61353

    06/13/2020, 5:19 PM
    i love cats, but i have a heart for all animals. that is adorable lol. naptime snuggle buddies
  • c

    clever-oil-61353

    06/14/2020, 6:40 AM
    GL components coming along, slowly, but they are coming along
  • c

    clever-oil-61353

    06/14/2020, 7:04 AM
    working on menubar, status bar and side panel at the moment
  • c

    clever-oil-61353

    06/14/2020, 7:11 AM
    will probably base the colors and appearance off your kenney theme.
  • c

    clever-oil-61353

    06/14/2020, 7:14 AM
    maybe by the end of the week we can work on some ideas of how to get this working in a haxeui backend for lime. I'm keeping the design and operation of the componenets as simple as possible to make for easier use in a backend to begin with. Then get a little fancy when a backend is working good.
  • b

    bright-gpu-74537

    06/14/2020, 7:22 AM
    that looks promising / interesting
  • b

    bright-gpu-74537

    06/14/2020, 7:22 AM
    so is that lime and just GL calls?
  • c

    clever-oil-61353

    06/14/2020, 7:22 AM
    yep
  • b

    bright-gpu-74537

    06/14/2020, 7:23 AM
    pretty cool... and what about parent / child type stuff, i guess kha would be a good base for that
  • c

    clever-oil-61353

    06/14/2020, 7:24 AM
    for the parent / child type stuff..... there is one idea and works good..... using groups.
1...278279280...1687Latest