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

    brave-kangaroo-30399

    06/30/2020, 11:07 PM
    I do have one issue where for certain people, the UI doesn’t show up at all on html5 even tho it does for 99% of everyone else
  • b

    brave-kangaroo-30399

    06/30/2020, 11:07 PM
    Same browsers and OS, no idea why
  • c

    clever-oil-61353

    07/01/2020, 6:49 AM
    which browser?
  • b

    bright-gpu-74537

    07/01/2020, 7:26 AM
    flixel backend?
  • f

    fast-rain-20339

    07/01/2020, 2:01 PM
    Hey Ian, I'm trying to set an image dynamically in a dataSource and having trouble. To set a label, you just pass in an object where the key is the id and the value is the label text - what's the equivalent for images?
  • b

    bright-gpu-74537

    07/01/2020, 2:04 PM
    you should just be able to set it as a prop... do you have an example?
  • f

    fast-rain-20339

    07/01/2020, 2:04 PM
    Ah I think I've misunderstood how this works. One sec
  • f

    fast-rain-20339

    07/01/2020, 2:04 PM
    My listview
  • f

    fast-rain-20339

    07/01/2020, 2:05 PM
    loading
  • b

    bright-gpu-74537

    07/01/2020, 2:05 PM
    nope, its the id attribute
  • b

    bright-gpu-74537

    07/01/2020, 2:05 PM
    so "icon: asset.image"
  • b

    bright-gpu-74537

    07/01/2020, 2:05 PM
    (in the datasource)
  • b

    bright-gpu-74537

    07/01/2020, 2:06 PM
    although, what is "asset.image"... is it a string name of a resource?
  • f

    fast-rain-20339

    07/01/2020, 2:06 PM
    Huh, okay, tried that, got this - very strange, as all should have the same, and I don't know where I reference the old image?
  • f

    fast-rain-20339

    07/01/2020, 2:06 PM
    But I'm glad I know that bit at least, cheers
  • b

    bright-gpu-74537

    07/01/2020, 2:06 PM
    what is "asset.image" ?
  • f

    fast-rain-20339

    07/01/2020, 2:07 PM
    Should be a kha.Image that I'll dynamically load either via the web or from the file system (I'm doing my own asset system)
  • f

    fast-rain-20339

    07/01/2020, 2:07 PM
    So that's probably the source of many problems πŸ˜†
  • b

    bright-gpu-74537

    07/01/2020, 2:07 PM
    OK, so that'll be an issue...
  • b

    bright-gpu-74537

    07/01/2020, 2:08 PM
    the resource in Image should be either a haxe resource, or a kha resource (in your case)... however, thinking about it, its quite limiting
  • b

    bright-gpu-74537

    07/01/2020, 2:08 PM
    ie, dynamic images like you are trying to use
  • b

    bright-gpu-74537

    07/01/2020, 2:09 PM
    lemme check something real quick
  • f

    fast-rain-20339

    07/01/2020, 2:09 PM
    πŸ‘
  • b

    bright-gpu-74537

    07/01/2020, 2:09 PM
    nice: https://github.com/haxeui/haxeui-kha/blob/master/haxe/ui/backend/ImageData.hx
  • f

    fast-rain-20339

    07/01/2020, 2:09 PM
    It certainly works 'dynamically' for static Kha resources
  • f

    fast-rain-20339

    07/01/2020, 2:09 PM
    Ah very nice πŸ˜„
  • b

    bright-gpu-74537

    07/01/2020, 2:09 PM
    yeah, that because those are kha resources
  • b

    bright-gpu-74537

    07/01/2020, 2:10 PM
    so haxeui can say "is it a haxe resource? no, ok, is it a kha resource? sweet"
  • b

    bright-gpu-74537

    07/01/2020, 2:11 PM
    however i guess there isnt anything wrong with also saying "is it ImageData? noice" (ImageData in your case would be kha.Image
  • f

    fast-rain-20339

    07/01/2020, 2:11 PM
    Oh no, potential bug. Rather than passing in "arrow_down", passing in the kha Image breaks it
1...298299300...1687Latest