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

    bright-gpu-74537

    08/19/2022, 5:35 AM
    @full-branch-26766 - i just realised you are the person on twitter about the "ObjectFollower"... so i cant find anything on this machine... my guess is i had it my "downloads" dir which gets purged all the time, however, if you seach discord (or this channel specifically) you can see a conversation about it, with an app that wasnt working until some changes... its not the same app as i created by it might point you in the right direction
  • f

    future-iron-61487

    08/19/2022, 7:12 AM
    what, you don't keep a library of alexandria in your downloads folder?
  • b

    bright-gpu-74537

    08/19/2022, 7:13 AM
    heh heh
  • b

    bright-gpu-74537

    08/19/2022, 7:14 AM
    tbh, normally i do actually keep pretty much everything if its in my "c:\temp\haxeui\" folder... but this particular one didnt seem to be there
  • b

    bright-gpu-74537

    08/19/2022, 7:17 AM
    :/
  • f

    full-journalist-82607

    08/19/2022, 9:17 AM
    I wonder how can I have a grow animation effect on a component the problem is that thelayout change around it if I apply the animation. Maybe a way to block the layout from updating ? Or I maybe for a component to have a real width and a layout width .
  • b

    bright-gpu-74537

    08/19/2022, 9:23 AM
    if you change the size of a component then, yeah, the layout will recalculate, there isnt really a way around that... what are you trying to do? Do have an example / repro or something?
  • f

    full-journalist-82607

    08/19/2022, 10:03 AM
    Sorry I have some problems taking a video from my old app ( that I try to convert to haxeui) .. I'll tryp again this affternoon. But I think I will take a video with a smartphone ... pr try to find an example not from my app
  • f

    full-journalist-82607

    08/19/2022, 10:05 AM
    oh yes it is simpler to find an example lol https://travis.media/how-to-make-an-item-grow-on-hover-with-css/ If you hover on thenumber "1" , the number "2" doesn't move.
  • b

    bright-gpu-74537

    08/19/2022, 10:24 AM
    something like this: http://haxeui.org/builder/?tjlpcv
  • b

    bright-gpu-74537

    08/19/2022, 10:24 AM
    ?
  • b

    bright-gpu-74537

    08/19/2022, 10:24 AM
    the bottom set all feel (and imo look) a little ugly tbh
  • b

    bright-gpu-74537

    08/19/2022, 10:25 AM
    i think the top set of circles is the correct behaviour... i would expect, when a component changes size, the layout is recalculated
  • f

    full-journalist-82607

    08/19/2022, 11:37 AM
    Yes I think it's the normal behaviour too 🙂 But I wondered if there was an easy way to accomodate the grow/shrink behaviour
  • f

    full-journalist-82607

    08/19/2022, 11:38 AM
    I have seen this effect inplenty of apps, when you hover on an element, it will grow, or when you press on an element it will shrink without affecting the layout.
  • b

    bright-gpu-74537

    08/19/2022, 1:12 PM
    so, id be tempted to go with something like: http://haxeui.org/builder/?zfqtuc its certainly a little more laborious, but functional. Simply put there is no "transform: scale" in haxeui currently, so you kinda gotta rely on little tricks (or a guess hacks) to do things like that
  • b

    bright-gpu-74537

    08/19/2022, 1:13 PM
    your other option, i guess, would be to have things in an absolute container, then it doesnt really matter what you do with them since there is, effectively, no layout
  • f

    full-journalist-82607

    08/19/2022, 1:38 PM
    Oh nice! I had thought about having a container,but negative padding didn't even cross my mind. ( is it normal it doesn't work in haxe-ui builder ?). BTW, allyou haxe builders examaples are always great. I was thinking about adding them all in apublic snippet ( I actually created the empty snippet yesterday), it could be great or newcomers.
  • b

    bright-gpu-74537

    08/19/2022, 1:41 PM
    > but negative padding didn't even cross my mind tbh, i did have to make an update to core to allow animating padding (it wasnt working properly - so you might want to pull git) > is it normal it doesn't work in haxe-ui builder what doesnt work? The link above? It should work, i just added the gif for good measure > I was thinking about adding them all in apublic snippet thats a nice idea... i fact, it might even be worth putting some in the component explorer, will be nice and easy to reference them should the need arise, let me know if you have a list of something, and we can see which ones makes the most sense to put in the explorere 🙂 (i do think ill put the animation ones above in there, makes sense too 👍 )
  • f

    full-journalist-82607

    08/19/2022, 1:45 PM
    The builder gave me this error
    Copy code
    haxeui-core/git/haxe/ui/parsers/ui/XMLParser.hx:23: characters 13-18 : Uncaught exception while parsing "assets/main.xml": haxe.xml.XmlParserException: Expected attribute name at line 183 char 54
    haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:256: characters 31-153 : Called from here
    haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:181: characters 9-84 : Called from here
    haxeui-core/git/haxe/ui/macros/ComponentMacros.hx:69: characters 16-54 : Called from here
    src/Main.hx:11: characters 34-83 : Called from here
    src/Main.hx:7: lines 7-17 : ... Defined in this class
  • b

    bright-gpu-74537

    08/19/2022, 1:45 PM
    oh... haha
  • b

    bright-gpu-74537

    08/19/2022, 1:45 PM
    i know why
  • b

    bright-gpu-74537

    08/19/2022, 1:46 PM
    http://haxeui.org/builder/?zinbrb
  • b

    bright-gpu-74537

    08/19/2022, 1:47 PM
    there is a bug in haxeui (the i just found out about), that if you have "if (x < y)" in a script then haxe's xml parser with break
  • o

    orange-van-60470

    08/19/2022, 1:48 PM
    in as2 wheel maker the approach is to keep the total size constant. With a tween you can adjust the size of one and then in the tween update method change the size of the others, something like
    Copy code
    other[i].width = ( other[i].width - (target.width-oldTargetWidth) / other.length );
  • b

    bright-gpu-74537

    08/19/2022, 1:48 PM
    i had a comment in there:
    if (0 > newIndex) { // TODO: "newIndex < 0" breaks the xml parser!
    (with the < escaped) but the builder unescaped it, so broke it again
  • o

    orange-van-60470

    08/19/2022, 1:48 PM
    you can even do it by distance
  • o

    orange-van-60470

    08/19/2022, 1:48 PM
    so you know the total width has to remain constant
  • b

    bright-gpu-74537

    08/19/2022, 1:49 PM
    well, thats effectively what animating the padding is doing
  • f

    full-journalist-82607

    08/19/2022, 1:50 PM
    Lol. Parsing ... When my list will bemorecomplete I'll send it to you.I wnated to explore all the links rom the oldest ones, but oviously they didn't work anymore (with the removing o hscript)
1...121712181219...1687Latest