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

    brave-kangaroo-30399

    01/15/2023, 4:43 AM
    Oh I must have made that change only locally then, I don't see any git history in FontCache like I was expecting
  • b

    brave-kangaroo-30399

    01/15/2023, 4:43 AM
    It's been so long
  • c

    creamy-animal-95850

    01/15/2023, 4:44 AM
    looks like AssetsImpl calls FontCache's getBitmapFont and not getFont
  • b

    brave-kangaroo-30399

    01/15/2023, 5:04 AM
    Ah I don't remember. I'll be using haxeui for an upcoming project, so I need to refamiliarize myself
  • b

    brave-kangaroo-30399

    01/15/2023, 5:04 AM
    More than I thought I would
  • c

    creamy-animal-95850

    01/15/2023, 5:08 AM
    yeah... I tried some stuff with no luck. Somehow it can still load a font without that function so I have no idea what's going on
  • c

    creamy-animal-95850

    01/15/2023, 5:09 AM
    no worries though, haxe default font is still pretty great
  • h

    happy-agent-4114

    01/15/2023, 5:33 AM
    is there a way to make a draggable element snap into boxes?
  • h

    happy-agent-4114

    01/15/2023, 5:34 AM
    so I can have something like
  • h

    happy-agent-4114

    01/15/2023, 5:34 AM
    hold on let me mockup
  • h

    happy-agent-4114

    01/15/2023, 5:44 AM
    http://haxeui.org/builder/?9168f97c
  • h

    happy-agent-4114

    01/15/2023, 5:44 AM
    something like this but the box will snap into wherever you drag it to
  • h

    happy-agent-4114

    01/15/2023, 5:44 AM
    I can think of a really complex way of doing it but I feel like there should be an easier way
  • h

    happy-agent-4114

    01/15/2023, 5:54 AM
    this also has z-index problems bc of how haxeui renders elements
  • r

    refined-greece-48002

    01/15/2023, 8:56 AM
    @bright-gpu-74537 Back with another gist of me possibly doing things wrong or possibly finding issues. https://gist.github.com/kaug-whis/fdc04ca3b2ce8d7a79f001ec4a9d140c Working with the new canvas element on Heaps, and the behavior of putting it in splitter panes seems unusual. -The circle drawn into the middle pane draws over all other elements. I'd guessed that it would be clipped to the size of the canvas. -Assuming that means the canvas changes size automatically if you draw outside its bounds, I tried putting it in a scrollview. This causes it to be clipped to the scrollview size, but it never makes the scrollbars appear -While testing this, I also discovered that the third pane in the splitter behaves unusually (doesn't stay on the mouse when dragging, disappears when you stop dragging) Apologies as always if I'm just doing it wrong 😓
  • b

    bright-gpu-74537

    01/15/2023, 9:41 AM
    Hey can you send the font in question over? And maybe your test app (if you have one)
  • b

    bright-gpu-74537

    01/15/2023, 9:42 AM
    there is no snapping on dragging currently - its something you would have to implement yourself im afraid
  • b

    bright-gpu-74537

    01/15/2023, 9:43 AM
    i dont think you can get around that, you can set the component index to "bring it up the tree", but only relative to the parent - so if you want the red dotted box to be over the top of the black box, it will have to at least at the same depth as it (or above)
  • b

    bright-gpu-74537

    01/15/2023, 9:46 AM
    g.circle(-150, 300, 300); //circle doesn't cause scrollview to become scrollable
    - yeah, its not openfl, canvas wont resize magically to the size of its contents... you'll need to give it a size - haxeui has no understanding of the primitives inside canvas (like "circle" and its bounds)
  • b

    bright-gpu-74537

    01/15/2023, 9:47 AM
    g.circle(-150, 300, 300); //Circle draws over the top of the tabview in the splitter to its left
    - sounds like overdraw... does it change if you put
    clip:true
    in the canvas style?
  • b

    bright-gpu-74537

    01/15/2023, 9:48 AM
    //Also, splitter behavior for third pane is unusual (pane disappears after resizing other panes)
    - splitters (with 3+ panels) are a little buggy atm - need to pencil in some time to sort them once and for all
  • c

    creamy-animal-95850

    01/15/2023, 11:48 AM
    Here you are. I'm using the latest git versions of haxeui-core and haxeui-heaps.
  • r

    refined-greece-48002

    01/15/2023, 11:51 AM
    @bright-gpu-74537 > yeah, its not openfl, canvas wont resize magically to the size of its contents... you'll need to give it a size - haxeui has no understanding of the primitives inside canvas (like "circle" and its bounds) Got it, need to manually track what you're drawing; not that prohibitive. > sounds like overdraw... does it change if you put clip:true in the canvas style? This works! Fantastic! > splitters (with 3+ panels) are a little buggy atm - need to pencil in some time to sort them once and for all Good to hear I'm not just doing it wrong, no problem 🙂 Thank you for all the help!
  • b

    bright-gpu-74537

    01/15/2023, 11:53 AM
    Copy code
    Could not find dir res
    
    Called from hxd.fs.$LocalFileSystem.__constructor__ (hxd/fs/LocalFileSystem.hx line 255)
    Called from $Main.main (hxd/Res.hx line 22)
    Its deo there though... ill debug it later and see why it wont even run for me
  • c

    creamy-animal-95850

    01/15/2023, 11:55 AM
    clear the temp files and try fiddling with the -D resourcesPath=res in build.hxml?
  • b

    bright-gpu-74537

    01/15/2023, 11:55 AM
    yeah, ive been avoiding fixing the splitters because it seems everytime i touch them i make things either 100 times worse, or 0.14243 times better 😄 btw, all components can be clipped - the reason it doesnt happen automatically (even though its a sensible default imo) is because clipping can be very expensive, and usually the layouts prevent that type of stuff - that said, i do wonder if canvas should autoclip (i recently made "absolute" auto clip because it felt more sensible as a default)
  • b

    bright-gpu-74537

    01/15/2023, 11:57 AM
    the -D flag was already there... 🤔 And it is finding it because if i change the name to res2 or something it fails to compile
  • c

    creamy-animal-95850

    01/15/2023, 11:58 AM
    that's really odd
  • b

    bright-gpu-74537

    01/15/2023, 12:00 PM
    ok, i changed it to initEmbed, and i can repro
  • c

    creamy-animal-95850

    01/15/2023, 12:00 PM
    perfect
1...137513761377...1687Latest