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

    famous-alarm-22563

    11/28/2022, 1:26 PM
    define "normally"
  • a

    ambitious-knife-25690

    11/28/2022, 1:26 PM
    oh, no it is fine
  • a

    ambitious-knife-25690

    11/28/2022, 1:27 PM
    where did you get
    hasSolidComponentUnderPoint
    from?
  • f

    famous-alarm-22563

    11/28/2022, 1:27 PM
    No idea
  • f

    famous-alarm-22563

    11/28/2022, 1:27 PM
    I siwthced to the git versions of haxeui and haxeui-flixel and got that when I tried to compile
  • a

    ambitious-knife-25690

    11/28/2022, 1:28 PM
    that's odd
  • f

    famous-alarm-22563

    11/28/2022, 1:28 PM
    also... am I really gonna have to use git versions of libraries now 😬
  • a

    ambitious-knife-25690

    11/28/2022, 1:28 PM
    you can manage it with submodules if you prefer, but haxeui is pretty stable on git
  • a

    ambitious-knife-25690

    11/28/2022, 1:29 PM
    can you run
    haxelib list
  • f

    famous-alarm-22563

    11/28/2022, 1:31 PM
    Copy code
    actuate: [1.9.0]
    box2d: [1.2.3]
    flixel-addons: [3.0.0]
    flixel-demos: [2.9.0]
    flixel-templates: [2.6.6]
    flixel-tools: [1.5.1]
    flixel-ui: [2.5.0]
    flixel: [5.0.1]
    haxeui-core: [1.5.0] git
    haxeui-flixel: 1.5.0 [git]
    hscript: [2.5.0]
    hxcpp: [4.2.1]
    layout: [1.2.1]
    lime-samples: [7.0.0]
    lime: [8.0.0]
    openfl-samples: [8.7.0]
    openfl: [9.2.0]
    systools: [1.1.0]
  • b

    bright-gpu-74537

    11/28/2022, 1:31 PM
    haxeui-core needs to be git version too
  • a

    ambitious-knife-25690

    11/28/2022, 1:31 PM
    odd
  • a

    ambitious-knife-25690

    11/28/2022, 1:31 PM
    i thought the command would have auto switched it
  • a

    ambitious-knife-25690

    11/28/2022, 1:31 PM
    haxelib set haxeui-core git
  • b

    bright-gpu-74537

    11/28/2022, 1:32 PM
    does that work? No idea... i barely use
    haxelib git
    ... i tend to use
    haxelib dev
    and manage the dep outside of haxelib
  • f

    famous-alarm-22563

    11/28/2022, 1:32 PM
    I believe that did the trick
  • f

    famous-alarm-22563

    11/28/2022, 1:33 PM
    its coompiling give it a sec
  • a

    ambitious-knife-25690

    11/28/2022, 1:33 PM
    it is the typical behaviour in my experience, i personally manage everything with submodules in commited projects and have a global installs for quick tests
  • f

    famous-alarm-22563

    11/28/2022, 1:33 PM
    it compiles
  • f

    famous-alarm-22563

    11/28/2022, 1:33 PM
    and runs...
  • a

    ambitious-knife-25690

    11/28/2022, 1:33 PM
    👍
  • f

    famous-alarm-22563

    11/28/2022, 1:33 PM
    now I just need to figure out where to put the
    new haxeuiapp()
    bit
  • a

    ambitious-knife-25690

    11/28/2022, 1:34 PM
    haxelib run haxeui-core create flixel
    you can create a sample project with this command and copy over the logic/experiment with things
  • f

    famous-alarm-22563

    11/28/2022, 1:35 PM
    is there at least a dependency lockfile for haxe? My instincts are practically screaming at me that I'll suffer for doing things this way later.
  • b

    bright-gpu-74537

    11/28/2022, 1:35 PM
    you dont need to use haxeuiapp.. its helper really, it becomes valuable when you want one app to target many different backends, but dont want to manage all the framework specific boiler plate yourself
  • a

    ambitious-knife-25690

    11/28/2022, 1:36 PM
    not currently, crobes is working on this. However there are solutions like lix and haxe gsm
  • f

    famous-alarm-22563

    11/28/2022, 1:37 PM
    Alright, I am running into an error where my trace is not being triggerred in my
    button.onClick
    handler. I figured I wasn't initializing the haxeui app so thats what I've been trying to figure out.. Here is my code so far.
  • f

    famous-alarm-22563

    11/28/2022, 1:37 PM
    Copy code
    {
            super.create();
            var button = new Button();
            button.fontSize = 24;
            button.text = "RESTART>";
    
            button.screenCenter();
            button.onClick = function(_)
            {
                trace("Button clicked!");
                FlxG.switchState(new PlayState());
            };
            button.customStyle.fontName = "Arial Unicode.ttf";
    
            add(button);
        }
  • f

    famous-alarm-22563

    11/28/2022, 1:38 PM
    I'm probably missing something obvious
  • b

    bright-gpu-74537

    11/28/2022, 1:38 PM
    have you got a
    Toolkit.init()
    somewhere?
1...130313041305...1687Latest