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

    happy-agent-4114

    03/17/2023, 7:27 PM
    ?
  • h

    happy-agent-4114

    03/17/2023, 7:27 PM
    it's in mainview?
  • b

    bright-gpu-74537

    03/17/2023, 7:27 PM
    nossir
  • h

    happy-agent-4114

    03/17/2023, 7:28 PM
    huh
  • h

    happy-agent-4114

    03/17/2023, 7:29 PM
    http://haxeui.org/builder/?a158e564
  • b

    bright-gpu-74537

    03/17/2023, 7:29 PM
    same... do you see it?
  • h

    happy-agent-4114

    03/17/2023, 7:29 PM
    yeah it's there on my end
  • b

    bright-gpu-74537

    03/17/2023, 7:29 PM
    could be some weird type of builder bug
  • h

    happy-agent-4114

    03/17/2023, 7:29 PM
    does that mean I broke haxeui-html5
  • b

    bright-gpu-74537

    03/17/2023, 7:29 PM
    means you broke the builder...
  • b

    bright-gpu-74537

    03/17/2023, 7:30 PM
    oh... did you build it before you sent the link?
  • b

    bright-gpu-74537

    03/17/2023, 7:31 PM
    you'll need to compile it so haxeui.org has it on the server, if you havent done that, then, well, its all just local to the browser
  • h

    happy-agent-4114

    03/17/2023, 7:31 PM
    it doesn't generate a link if the build fails
  • h

    happy-agent-4114

    03/17/2023, 7:31 PM
    can I pastebin it
  • b

    bright-gpu-74537

    03/17/2023, 7:31 PM
    ... very good point
  • b

    bright-gpu-74537

    03/17/2023, 7:31 PM
    yeah, pastebin it
  • h

    happy-agent-4114

    03/17/2023, 7:32 PM
    https://pastebin.com/dC6L2NpB
  • b

    bright-gpu-74537

    03/17/2023, 7:33 PM
    Copy code
    haxe
        @:bind(graphDisplay, haxe.ui.events.UIEvent.RESIZE)
        private function onGraphDisplayResize(_) {
            gp.width = Std.int(graphDisplay.width);
            gp.height = Std.int(graphDisplay.height);
            loadGraph(gp);
        }
  • b

    bright-gpu-74537

    03/17/2023, 7:33 PM
    this?
  • h

    happy-agent-4114

    03/17/2023, 7:33 PM
    I have no idea which one is broken, the error just says it's in Main
  • h

    happy-agent-4114

    03/17/2023, 7:34 PM
    .
  • h

    happy-agent-4114

    03/17/2023, 7:34 PM
    between line 108 and line 340
  • b

    bright-gpu-74537

    03/17/2023, 7:35 PM
    ok, i can repro the error, now just gotta see where, but yeah, you are doing something wrong...
  • b

    bright-gpu-74537

    03/17/2023, 7:35 PM
    Copy code
    haxe
        @:bind(imgAboutButton, MouseEvent.CLICK)
        private function showAbout(){}
  • h

    happy-agent-4114

    03/17/2023, 7:36 PM
    wait is that it
  • b

    bright-gpu-74537

    03/17/2023, 7:36 PM
    yup
  • b

    bright-gpu-74537

    03/17/2023, 7:36 PM
    () -> Void should be Unknown<0> : haxe.ui.events.UIEvent -> Void
    ... would be more useful if the line number was more correct, but yeah, that was the error
  • b

    bright-gpu-74537

    03/17/2023, 7:37 PM
    in case its not clear,
    private function showAbout(){}
    should be
    private function showAbout(_){}
    , ie, the callback is expecting a param
  • h

    happy-agent-4114

    03/17/2023, 7:38 PM
    oh I forgot to add an argument
  • h

    happy-agent-4114

    03/17/2023, 7:38 PM
    I thought it was that the function was empty
1...160116021603...1687Latest