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

    bright-gpu-74537

    04/23/2023, 8:22 PM
    yeah, basic project in haxeui has no hscript in the output
  • b

    bright-gpu-74537

    04/23/2023, 8:22 PM
    maybe ceramic is pulling in all available .hxmls or something?
  • a

    ambitious-knife-25690

    04/23/2023, 8:22 PM
    not sure, if i make a clean ceramic project
  • a

    ambitious-knife-25690

    04/23/2023, 8:22 PM
    i get no hscript
  • b

    bright-gpu-74537

    04/23/2023, 8:23 PM
    sure, but im guessing the inclusion of the hxwebsockets examples is causing it
  • a

    ambitious-knife-25690

    04/23/2023, 8:23 PM
    ohh.... interesting
  • a

    ambitious-knife-25690

    04/23/2023, 8:24 PM
    @billowy-waiter-28954 could this explain what is going on here?
  • a

    ambitious-knife-25690

    04/23/2023, 8:24 PM
    lets delete the file and see what happens
  • b

    bright-gpu-74537

    04/23/2023, 8:24 PM
    its technically not needed there anymore either to be fair, but it does raise the question of why ceramic has decided that .hxml is relevant
  • b

    bright-gpu-74537

    04/23/2023, 8:24 PM
    yeah, delete the whole examples dir if you want
  • a

    ambitious-knife-25690

    04/23/2023, 8:25 PM
    i deleted the .hxml's and hscript still exists 😄
  • b

    bright-gpu-74537

    04/23/2023, 8:26 PM
    delete the whole examples dir, and the "out" dir in ceramic, and build outside vscode
  • a

    ambitious-knife-25690

    04/23/2023, 8:27 PM
    good point
  • h

    helpful-boots-41914

    04/24/2023, 3:33 PM
    Oh yeah meant to re-ask this - but is there a way to use texture atlas resources with HaxeUI Images in kha? I combine my images into one large image and render subimages to improve performance and memory usage. Is there a way to use subimages as resources in HaxeUI? Thanks!
  • h

    helpful-boots-41914

    04/24/2023, 4:09 PM
    How do you remove a background from a button and let it go back to a more basic style? I'm incorporating Haxeui-theme-kenney and it looks good but some things are messed up. (like dialogs and container/tab backgrounds). So I'm trying to add back some of my own styling and it seems like it's not taking.
  • h

    helpful-boots-41914

    04/24/2023, 4:10 PM
    For buttons I tried
    background-image:none; background-slice: none;
    and that doesn't get rid of the kenney button style
  • b

    bright-gpu-74537

    04/24/2023, 4:13 PM
    in what sense? i mean, where do you want to use them in your UI... you can use background-image, background-image-clip and background-image-slice, that will "cut parts" out of an image if thats what you mean?
  • b

    bright-gpu-74537

    04/24/2023, 4:13 PM
    so the thing about the kenney theme is its a total theme replacement, this means its doesnt inherit from the default theme, so there is no theme to fall back to
  • b

    bright-gpu-74537

    04/24/2023, 4:14 PM
    hmmm, that should work though... tbh, im not sure i would suggest using the kenney theme, its been a LONG time since i looked at it... maybe i should again, for sure there are a bunch of components that arent themed though
  • h

    helpful-boots-41914

    04/24/2023, 4:15 PM
    In the sense that I want to set an image-resource
    img.resource
    and allow it to render a subimage IE
    image.resource = new HaxeUISubImage(khaTexture, frameX, frameY, frameW, frameH)
    - something like that.
  • h

    helpful-boots-41914

    04/24/2023, 4:16 PM
    Or even an icon
  • b

    bright-gpu-74537

    04/24/2023, 4:16 PM
    i think you can use `kha.Image`s are image resources (and icons, etc)
  • h

    helpful-boots-41914

    04/24/2023, 4:17 PM
    You can, but you can't create a kha subimage, only an entirely new image.
  • h

    helpful-boots-41914

    04/24/2023, 4:17 PM
    Which means there's lowered performance for texture swaps
  • h

    helpful-boots-41914

    04/24/2023, 4:17 PM
    And a lot of memory used on top of it
  • b

    bright-gpu-74537

    04/24/2023, 4:18 PM
    whats a "kha sub image"... isnt that just an kha image from a kha image?
  • b

    bright-gpu-74537

    04/24/2023, 4:19 PM
    public function drawSubImage(img: Image, x: FastFloat, y: FastFloat, sx: FastFloat, sy: FastFloat, sw: FastFloat, sh: FastFloat): Void
  • b

    bright-gpu-74537

    04/24/2023, 4:19 PM
    oh, i see
  • h

    helpful-boots-41914

    04/24/2023, 4:19 PM
    Kha just doesn't do that is what I'm saying. You either have to create a renderTarget, or just directly do
    g2.drawScaledSubImage(texture . . . .)
  • h

    helpful-boots-41914

    04/24/2023, 4:19 PM
    Right
1...164516461647...1687Latest