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

    bright-gpu-74537

    03/06/2023, 8:01 AM
    so are you saying a custom component that will maintain is aspect ratio or something? or... ... ... ?
  • t

    tall-teacher-57409

    03/06/2023, 8:06 AM
    ah i forgot, thx
  • b

    bright-gpu-74537

    03/06/2023, 8:13 AM
    something like this?
  • b

    bright-gpu-74537

    03/06/2023, 8:14 AM
    http://haxeui.org/builder/?4131f5fc
  • b

    bright-gpu-74537

    03/06/2023, 8:14 AM
    Copy code
    xml
    <vbox style="padding: 5px;">
        <slider min="100" max="300" pos="200" onchange="mycomp.width = this.value" />
        <my-component id="mycomp" style="background-color: red;" />
    </vbox>
    Copy code
    haxe
    class MyComponent extends Box {
        private override function onResized() {
            super.onResized();
            this.height = this.width / 2;
        }
    }
  • t

    tall-teacher-57409

    03/06/2023, 8:22 AM
    the code compiles successfully, but vscode can't find haxui for some reason, so no autocompletition :/
  • b

    bright-gpu-74537

    03/06/2023, 8:23 AM
    are you using the openfl vscode extension?
  • t

    tall-teacher-57409

    03/06/2023, 8:23 AM
    oh nope
  • t

    tall-teacher-57409

    03/06/2023, 8:23 AM
    ill do it rn
  • t

    tall-teacher-57409

    03/06/2023, 8:24 AM
    I thought there was only a lime extension
  • t

    tall-teacher-57409

    03/06/2023, 8:25 AM
    nope I can't find an openfl extension, lime is what I have installed
  • b

    bright-gpu-74537

    03/06/2023, 8:25 AM
    sorry, lime
  • t

    tall-teacher-57409

    03/06/2023, 8:26 AM
    yeah I already had it installed
  • b

    bright-gpu-74537

    03/06/2023, 8:26 AM
    is it active?
  • t

    tall-teacher-57409

    03/06/2023, 8:27 AM
    oh its not active
  • t

    tall-teacher-57409

    03/06/2023, 8:27 AM
    hm why is that
  • b

    bright-gpu-74537

    03/06/2023, 8:27 AM
    ¯\_(ツ)_/¯
  • t

    tall-teacher-57409

    03/06/2023, 8:33 AM
    hm I can't still activate it :/
  • b

    bright-gpu-74537

    03/06/2023, 8:33 AM
    what about if you open the project.xml.... can you activate it then?
  • t

    tall-teacher-57409

    03/06/2023, 8:34 AM
    I opened it but same thing
  • b

    bright-gpu-74537

    03/06/2023, 8:34 AM
    no idea... all seems to work fine this end for me...
  • b

    bright-gpu-74537

    03/06/2023, 8:35 AM
    one thing ive done previously (when i was having problems with the lime extension) was to create a dummy hxml file for haxe to use
  • b

    bright-gpu-74537

    03/06/2023, 8:35 AM
    eg:
  • b

    bright-gpu-74537

    03/06/2023, 8:35 AM
    Copy code
    -lib haxeui-core
    -lib haxeui-openfl
    --cmd lime build windows --debug
  • b

    bright-gpu-74537

    03/06/2023, 8:35 AM
    but i would probably try and figure out why lime isnt working
  • b

    bright-gpu-74537

    03/06/2023, 8:36 AM
    can you screen shot VSCode so i can see?
  • t

    tall-teacher-57409

    03/06/2023, 8:36 AM
    alright 👍
  • b

    bright-gpu-74537

    03/06/2023, 8:37 AM
    ah, yeah, i know whats up... the lime extension wont recognize application.xml... so you need to rename it project.xml
  • t

    tall-teacher-57409

    03/06/2023, 8:38 AM
    💯
  • t

    tall-teacher-57409

    03/06/2023, 8:38 AM
    works
1...158115821583...1687Latest