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

    icy-zebra-52882

    02/05/2023, 2:48 PM
    FF is fixed, works on ipad now too
  • b

    bright-gpu-74537

    02/05/2023, 2:48 PM
    oh yeah? So all sorted?
  • i

    icy-zebra-52882

    02/05/2023, 2:49 PM
    there's a small delay when touching something and it taking effect but I think that's just how PointerEvents are handled, to catch the difference between scrolling and tapping/clicking
  • i

    icy-zebra-52882

    02/05/2023, 2:49 PM
    but it works on my dropdown test
  • b

    bright-gpu-74537

    02/05/2023, 2:49 PM
    yeah, i think thats normal tbh
  • i

    icy-zebra-52882

    02/05/2023, 2:50 PM
    also works on chrome linux in touch mode and regular mouse mode
  • i

    icy-zebra-52882

    02/05/2023, 2:50 PM
    so seems to work all round 👍
  • b

    bright-gpu-74537

    02/05/2023, 2:50 PM
    🥳
  • i

    icy-zebra-52882

    02/05/2023, 3:00 PM
    back on the dataSource issue for a sec: still can't get anything displayed with
    dataSource.add( { text: "my text here" } );
  • i

    icy-zebra-52882

    02/05/2023, 3:00 PM
    the
    Data:
    in that shot is what's in the lower dropdown's data source
  • b

    bright-gpu-74537

    02/05/2023, 4:13 PM
    you'll have to paste some code
  • i

    icy-zebra-52882

    02/05/2023, 5:50 PM
    Copy code
    hx
     // Set up reactions
    reactionDropdown.disabled = false;
    reactionDropdown.dataSource.clear();
    for (react in r.reactions) {
      trace(react.id);
      reactionDropdown.dataSource.add({ text: react.id });
    }
    trace('Data:');
    for (i in 0...reactionDropdown.dataSource.size) {
      trace(reactionDropdown.dataSource.get(i));
    }
  • i

    icy-zebra-52882

    02/05/2023, 5:50 PM
    this happens in the onChange event of another dropdown
  • b

    bright-gpu-74537

    02/05/2023, 5:52 PM
    is your project anywhere? I cant try and download and see, it looks fine... but maybe there is something missing in the "bigger picture"
  • i

    icy-zebra-52882

    02/05/2023, 5:52 PM
    https://github.com/Bloodninj/stardew-hxui-gen/
  • b

    bright-gpu-74537

    02/05/2023, 5:58 PM
    Error : [file_contents,assets/example.json]
  • b

    bright-gpu-74537

    02/05/2023, 5:58 PM
    got the json file to hand?
  • i

    icy-zebra-52882

    02/05/2023, 5:59 PM
    that's
    example.json
  • b

    bright-gpu-74537

    02/05/2023, 5:59 PM
    oh, there is already one there in assets
  • i

    icy-zebra-52882

    02/05/2023, 5:59 PM
    yeah it's in there
  • b

    bright-gpu-74537

    02/05/2023, 6:05 PM
    well, i can repro it in your app, but doesnt make much sense to me
  • b

    bright-gpu-74537

    02/05/2023, 6:05 PM
    code all seems reasonable
  • i

    icy-zebra-52882

    02/05/2023, 6:08 PM
    could be a wxWidgets or even GTK bug
  • b

    bright-gpu-74537

    02/05/2023, 6:08 PM
    dunno, doesnt feel like it, feels like a haxeui-hxwidgets thing
  • i

    icy-zebra-52882

    02/05/2023, 6:09 PM
    the 2nd dropdown does enable and show the data, if you put dummy data in the layout file
  • i

    icy-zebra-52882

    02/05/2023, 6:09 PM
    but not when added to datasource
  • b

    bright-gpu-74537

    02/05/2023, 6:11 PM
    alright, so, if you create a data source and assign it:
    Copy code
    haxe
    var ds  = new ArrayDataSource<String>();
    ...
    ...
    ...
    reactionDropdown.dataSource = ds;
    then everything is fine
  • b

    bright-gpu-74537

    02/05/2023, 6:11 PM
    so defo a bug in haxeui-hxwidgets...
  • b

    bright-gpu-74537

    02/05/2023, 6:12 PM
    for now, until i can work out whats going on, i would use that method (just so you arent stuck)
  • i

    icy-zebra-52882

    02/05/2023, 6:13 PM
    cheers I'll have a look next time
1...146514661467...1687Latest