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

    bright-gpu-74537

    07/30/2020, 9:20 PM
    really, i need the macro to generates something like this:
  • b

    bright-gpu-74537

    07/30/2020, 9:20 PM
    Copy code
    haxe
    class MyComponent extends Box {
        var bob:String;
        public function new(someparam:String) {
            super();
            this.bob = someparam;
        }
        
        public function setBob(v:String) {
            this.bob = v;
        }
    
        // macro generated
        public function clone() {
            var c = new MyComponent(this.bob);
            return c;
        }
    }
  • b

    bright-gpu-74537

    07/30/2020, 9:21 PM
    but i havent got a clue how i could "know" to use "this.bob" as the constructor param
  • b

    bright-gpu-74537

    07/30/2020, 9:23 PM
    btw @User - if this is holding you up, a work around is to default the constructor param, this will mean that clone would compile, although, in reality the result of .clone wouldnt actually be a perfect clone (which is probably fine... ... ... ... for now)
  • l

    limited-advantage-32748

    07/30/2020, 9:24 PM
    Yeah I made the arguments optional
  • l

    limited-advantage-32748

    07/30/2020, 9:24 PM
    Not a big deal since I’m not making any sort of api
  • b

    bright-gpu-74537

    07/30/2020, 9:24 PM
    cool, its a little shitty for now, but until i can think of a way around it it'll have to do...
  • l

    limited-advantage-32748

    07/30/2020, 9:24 PM
    Cool cool
  • a

    ambitious-knife-25690

    07/30/2020, 10:16 PM
    iirc haxeui has a way to simulate a code ide in the browser? would this work for hscript as well? 🤔
  • a

    ambitious-knife-25690

    07/30/2020, 10:16 PM
    with auto completion and possibly the ability to add custom definitions to the completion
  • b

    bright-gpu-74537

    07/31/2020, 5:42 AM
    https://github.com/haxeui/haxeui-code-editor
  • b

    bright-gpu-74537

    07/31/2020, 5:42 AM
    thats monaco wrapped for haxeui
  • b

    bright-gpu-74537

    07/31/2020, 5:42 AM
    as for auto complete and custom defs there is nothing like that at the moment
  • b

    bright-gpu-74537

    07/31/2020, 5:43 AM
    would defo be cool to add it though, just dont know enough about monaco (or scintilla) to be able to do it quickly
  • t

    tall-dinner-7562

    07/31/2020, 10:37 PM
    Hey all when using haxeui with the Pixi target and the latest Pixijs haxelib I get a type error on the Filters before running any code
  • q

    quick-king-64105

    07/31/2020, 10:39 PM
    Just going to say be ready for me to be back as of Monday/Tuesday to continue work on the same project I was on before. Not sure where things are at, but I'm hoping they're looking better than they seemed before 🤗 ❣️
  • q

    quick-king-64105

    07/31/2020, 10:41 PM
    > components on haxeui.org actually have examples now Okay, I'm massively encouraged and glad to see you've been at it ❤️
  • t

    tall-dinner-7562

    08/01/2020, 10:53 PM
    Do property elements take on change events?
  • b

    bright-gpu-74537

    08/02/2020, 7:06 AM
    do you mean an onchange event when any property is changed? No is the short answer
  • b

    bright-gpu-74537

    08/02/2020, 7:06 AM
    ill checkout the pixi compile issue too... maybe i havent updated my pixi in quite a while
  • t

    tall-dinner-7562

    08/02/2020, 7:33 PM
    From what I saw it's using 4.8.8 release code for the Pixi version in Haxeui and the 5.1.2 code has a couple different names for things. And thanks for that information Ian!
  • h

    hundreds-dentist-88554

    08/03/2020, 5:35 PM
    hey, ive been evaluating haxe-ui for a cross-renderer project (i hope to support at least openfl, heaps, and kha). it seems like openfl and kha are supported well enough which is great, but i was wondering what the state of haxe-ui's heaps renderer is in if anyone is aware?
  • b

    bright-gpu-74537

    08/03/2020, 7:15 PM
    It should be working, i need to come back to some of the mouse stuff, i had some issues with how heaps uses the mouse, but its likely just my lack of understanding, but it should work
  • h

    hundreds-dentist-88554

    08/03/2020, 9:09 PM
    good to hear, i’ll definitely give it a test run then :)
  • b

    brave-kangaroo-30399

    08/05/2020, 12:49 AM
    Copy code
    source/Main.hx:117: characters 12-64 : Warning : no class found for component: vbox
    C:/HaxeToolkit/haxe/lib/haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:124: characters 50-52 : Unknown identifier : c0
    source/Main.hx:117: characters 12-64 : Called from macro here
  • b

    brave-kangaroo-30399

    08/05/2020, 12:49 AM
    I'm fully updated but getting this error at
    buildComponent()
    for a basic UI
  • b

    brave-kangaroo-30399

    08/05/2020, 2:48 AM
    Ugh it worked when I restarted vsc
  • b

    brave-kangaroo-30399

    08/05/2020, 2:49 AM
    Is there a “don’t bother with macros until compile time” flag?
  • h

    handsome-television-62908

    08/05/2020, 3:05 AM
    That should be something the haxe compiler itself let's you easily hook into rather than a library level implemention. That being said, if you have a simple example you can post in a zipfile as a bug report that would be perfect. I was trying to replicate that behavior earlier but wasn't able to get to it... Right now your options are just to tell vshaxe you don't want it to automatically add the language server to your hxml file. There's a way to fix this bug in haxe UI by fine tuning the persistent variables, but it'll be easier with a starting point if you got a simple one
  • h

    handsome-television-62908

    08/05/2020, 3:05 AM
    @brave-kangaroo-30399
1...333334335...1687Latest