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

    bright-gpu-74537

    04/22/2020, 6:09 PM
    cool - sounds good...
  • m

    most-caravan-45834

    04/22/2020, 6:14 PM
    @User I'm getting
    Copy code
    bash
    src/module.c(321) : FATAL ERROR : Failed to load library ssl.hdll
  • b

    bright-gpu-74537

    04/22/2020, 6:45 PM
    does a normal openfl application work?
  • b

    bright-gpu-74537

    04/22/2020, 6:46 PM
    i mean, an normal, non-haxeui hashlink openfl app
  • m

    most-caravan-45834

    04/22/2020, 8:21 PM
    yeap it does work
  • m

    most-caravan-45834

    04/22/2020, 8:23 PM
    As soon as I import haxe.ui.Toolkit; I can't build anymore
  • m

    most-caravan-45834

    04/22/2020, 8:24 PM
    If I comment the import, I can build again
  • b

    bright-gpu-74537

    04/22/2020, 8:58 PM
    hmmmm, thats really strange... what if you use one of the openfl http classes?
  • b

    bright-gpu-74537

    04/22/2020, 8:59 PM
    sorry, not openfl, haxe.http
  • m

    most-caravan-45834

    04/23/2020, 1:15 AM
    @User I've imported all of them:
    Copy code
    haxe
    import haxe.http.HttpBase;
    import haxe.http.HttpJs;
    import haxe.http.HttpMethod;
    import haxe.http.HttpNodeJs;
    import haxe.http.HttpStatus;
    And it compiled and ran just fine.
  • b

    bright-gpu-74537

    04/23/2020, 7:26 AM
    ok, weird... ill check it out, thanks
  • m

    magnificent-caravan-75149

    04/23/2020, 4:33 PM
    @User here's the github: https://github.com/fredlangva/HaxeUIBase. got the button able to be resized. The bottom one is an image resource to show the png size. Here's some pics:
  • m

    magnificent-caravan-75149

    04/23/2020, 4:34 PM
    Kode Studio Debug HTML:
  • m

    magnificent-caravan-75149

    04/23/2020, 4:35 PM
    Linux native app:
  • m

    magnificent-caravan-75149

    04/23/2020, 4:38 PM
    It's just a minimal demo right now, so no window resizing yet or anything else. Just wanted to show you that the button was working. I overwrote the old png but will play a bit with others and see if the background-image-size and background-image-crop should be set to the actual png size for it to work right
  • b

    bright-gpu-74537

    04/23/2020, 5:11 PM
    ok, nice one... i had a very quick look and i think your background-image slice isnt right
  • b

    bright-gpu-74537

    04/23/2020, 5:11 PM
    you can tell in your "one more" button
  • b

    bright-gpu-74537

    04/23/2020, 5:11 PM
    background-image-slice: 0px 0px 72px 415px;
  • b

    bright-gpu-74537

    04/23/2020, 5:11 PM
    i think thats is as good as just stretching the whole image (rather than 9slice)
  • b

    bright-gpu-74537

    04/23/2020, 5:52 PM
    i think this is more what you are after:
  • b

    bright-gpu-74537

    04/23/2020, 5:52 PM
    Copy code
    css
            .my-button {
                background-image: "assets/Button.png";
                background-image-slice: 8px 8px 64px 407px;
                background-color: none;
                border: none;
                padding: 10px 20px;
                color: white;
            }
  • m

    magnificent-caravan-75149

    04/23/2020, 6:20 PM
    @User so you slice it inside the border?
  • b

    bright-gpu-74537

    04/23/2020, 6:21 PM
    yup, the slice doesnt know that is the border... thats essentially what you are telling it
  • m

    magnificent-caravan-75149

    04/23/2020, 6:21 PM
    sweet - thanks!
  • b

    bright-gpu-74537

    04/23/2020, 6:21 PM
    np 🙂
  • m

    magnificent-caravan-75149

    04/23/2020, 6:23 PM
    I want to make sure I get it correct for the tutorial/demo.
  • b

    bright-gpu-74537

    04/23/2020, 6:27 PM
    👍
  • b

    bright-gpu-74537

    04/23/2020, 6:27 PM
    lemme know when you hve the demo working, always interested to see peoples work 🙂
  • b

    bright-gpu-74537

    04/23/2020, 6:47 PM
    @User - i just tried to run openfl + hl and seemed fine, `openfl test hl`:
  • u

    user

    04/23/2020, 7:58 PM
    oh a tutorial/demo? that would be great. this all runs on hl?
1...200201202...1687Latest