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

    helpful-oxygen-79589

    02/04/2023, 7:15 PM
    i can try that
  • a

    ambitious-knife-25690

    02/04/2023, 7:16 PM
    just ask if you get stuck
  • h

    helpful-oxygen-79589

    02/04/2023, 7:30 PM
    oki
  • h

    helpful-oxygen-79589

    02/04/2023, 7:30 PM
    itll probably take me a while to figure this all out
  • h

    helpful-oxygen-79589

    02/04/2023, 7:30 PM
    i havent messed with haxe ui before
  • h

    helpful-oxygen-79589

    02/04/2023, 7:31 PM
    im starting to understand though
  • h

    helpful-oxygen-79589

    02/04/2023, 7:31 PM
    ill update here if i get it working
  • a

    ambitious-knife-25690

    02/04/2023, 7:31 PM
    in your local
    haxeui-flixel
    library there will be a
    ComponentGraphicsImpl.hx
    file
  • a

    ambitious-knife-25690

    02/04/2023, 7:31 PM
    it'll likely be empty
  • a

    ambitious-knife-25690

    02/04/2023, 7:32 PM
    to get the color wheel working, all you'll need to do is copy the
    setPixels
    function from haxeui-openfl and draw the bitmap onto a sprite
  • b

    billowy-waiter-28954

    02/05/2023, 11:52 AM
    Not out of the box, but you can probably manage to do something with
    ceramic.Line
    and
    ceramic.BezierEasing
  • b

    billowy-waiter-28954

    02/05/2023, 11:53 AM
    Anyway, drawing a curved line is about computing the curve points and giving that to the
    Line
    visual
  • b

    billowy-waiter-28954

    02/05/2023, 11:53 AM
    More you add points, smoother the line will look
  • b

    billowy-waiter-28954

    02/05/2023, 11:54 AM
    For circles, you can look at
    ceramic.Arc
    (and check the ceramic demo example that uses it to draw a circle: https://ceramic-engine.com/examples/ceramic-demo/)
  • i

    icy-zebra-52882

    02/05/2023, 12:34 PM
    I'm having trouble getting a haxeui-hxwidgets dropdown box to re-enable
  • i

    icy-zebra-52882

    02/05/2023, 12:35 PM
    I've tried this code:
    Copy code
    hx
    reactionDropdown.disabled = false;
    reactionDropdown.disableInteractivity(false,true,true,true);
    reactionDropdown.disableInteractiveEvents(false);
    and none of it will make the dropdown enabled
  • i

    icy-zebra-52882

    02/05/2023, 12:36 PM
    the wxWidgets backend is GTK3 if it makes a difference
  • f

    full-journalist-82607

    02/05/2023, 12:36 PM
    are you on last git version ?
  • i

    icy-zebra-52882

    02/05/2023, 12:37 PM
    lemme update and see if it fixes
  • i

    icy-zebra-52882

    02/05/2023, 12:41 PM
    no effect so far
  • i

    icy-zebra-52882

    02/05/2023, 12:44 PM
    nvm, for some reason my datasource data isn't getting added to it
  • i

    icy-zebra-52882

    02/05/2023, 12:53 PM
    ok the data IS getting added to it, but for some reason won't appear as an option when added
  • i

    icy-zebra-52882

    02/05/2023, 12:53 PM
    I can trace out the dropdown data with
    Copy code
    hx
    for (i in 0...reactionDropdown.dataSource.size) {
      trace(reactionDropdown.dataSource.get(i));
    }
    and it traces correctly
  • i

    icy-zebra-52882

    02/05/2023, 12:54 PM
    if I use dummy data for the dropdown in the XML itself, that does show up when the dropdown is enabled
  • i

    icy-zebra-52882

    02/05/2023, 12:59 PM
    not sure if I'm just doing something wrong with adding the data: https://github.com/Bloodninj/stardew-hxui-gen/blob/ac2667434afd10e54bd0a794d6a54d5a1fc0d3d5/src/MainView.hx#L45
  • b

    bright-gpu-74537

    02/05/2023, 2:11 PM
    reactionDropdown.dataSource.add(react.id);
    should be
    reactionDropdown.dataSource.add({ text: react.id });
  • b

    bright-gpu-74537

    02/05/2023, 2:11 PM
    or you need to do
    reactionDropdown.dataSource = new ArrayDataSource<String>();
  • i

    icy-zebra-52882

    02/05/2023, 2:12 PM
    hmm I thought I tried that before, will give it another go
  • i

    icy-zebra-52882

    02/05/2023, 2:12 PM
    went back to the PR for pointer events in haxeui-html5 to try to find out why PointerEvents (and not TouchEvents) cast causes an exception
  • b

    bright-gpu-74537

    02/05/2023, 2:13 PM
    yeah, im actually about to commit things in that area... ive kinda used your PR as a template
1...146314641465...1687Latest