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

    brave-kangaroo-30399

    01/30/2023, 12:55 AM
    Right but I don't want layout and styling to affect the result
  • b

    brave-kangaroo-30399

    01/30/2023, 12:56 AM
    Like, animation replaces the existing
    tile
    with a different one, but haxeui is probably creating new textures and setting that same field
  • b

    brave-kangaroo-30399

    01/30/2023, 12:57 AM
    Maybe it's just a matter of adding a non-component object, but I'd like it if that could still be laid out
  • a

    ambitious-knife-25690

    01/30/2023, 12:58 AM
    i'm not sure what the "correct" procedure to modify internally used fields like that tbh
  • a

    ambitious-knife-25690

    01/30/2023, 1:01 AM
    it doesn't seem like it is
  • a

    ambitious-knife-25690

    01/30/2023, 1:01 AM
    it reads the default set tile once
  • b

    brave-kangaroo-30399

    01/30/2023, 1:05 AM
    There was something I had issues with before, but maybe it's changed
  • a

    ambitious-knife-25690

    01/30/2023, 1:07 AM
    altho i didn't try with the animation prop
  • a

    ambitious-knife-25690

    01/30/2023, 1:07 AM
    just with a standard image prop
  • c

    clever-yak-82528

    01/30/2023, 1:19 AM
    yessssss
  • a

    ambitious-knife-25690

    01/30/2023, 1:54 AM
    nice 😄
  • c

    clever-yak-82528

    01/30/2023, 2:14 AM
    nice
  • h

    hallowed-ocean-84954

    01/30/2023, 2:39 AM
    I'm having trouble with a vbox sizing in an accordion section. The example is at . When it loads if you open the "Lighting Test" section and then select the optionbox for "Light Casters" you'll see that the scrollview extends beyond the vertical space opened for the accordion section. The problem is that the vbox at L93 has a fixed height. But if I remove the fixed height then the element only shows the top border line and no content. I have tried setting the various vbox, frame and scrollview heights but cannot find a combination that allows me to get this to work without a fixed value height. What I really want is for the content of the accordion section to fill the space in the section automatically. I keep adding sections to the accordion and I don't want to have to resize the manual height values to avoid having the content overflow the open section, if I can avoid it. Any suggestions ?
  • b

    brave-kangaroo-30399

    01/30/2023, 5:31 AM
    The Canvas component is new for me, and it's along the lines of what I was thinking. But also I can just extend component I think
  • b

    brave-kangaroo-30399

    01/30/2023, 5:31 AM
    +
    comp.styleable = false
    it looks like?
  • b

    bright-gpu-74537

    01/30/2023, 8:09 AM
    yeah, i think if you set styleable to false then basically it skips any haxeui drawing meaning you can do anything you want with it... thats the idea anyway
  • b

    bright-gpu-74537

    01/30/2023, 8:10 AM
    yeah, there are a few things that seem a little weird there, but its a big layout, so will need some time to parse it, extract bits and see if they are borked in isolation
  • f

    full-journalist-82607

    01/30/2023, 8:11 AM
    it is what you want ?
  • b

    bright-gpu-74537

    01/30/2023, 8:17 AM
    oh yeah... it still doesnt make it totally right, you are correct there is a few things like that
  • b

    bright-gpu-74537

    01/30/2023, 8:18 AM
    tbh, i would be very tempted to split all this up into multiple files... its quite hard to understand... and thats really quite a feat with xml layouts 🙂
  • f

    full-journalist-82607

    01/30/2023, 8:22 AM
    Yes there is a problem with width too for sliders,and components that are not always hidden like they should be
  • b

    bright-gpu-74537

    01/30/2023, 8:23 AM
    yeah, there seems like quite a few missing 100%'s
  • b

    bright-gpu-74537

    01/30/2023, 8:25 AM
    like that i think is better for simple lighting
  • b

    bright-gpu-74537

    01/30/2023, 8:28 AM
    http://haxeui.org/builder/?0ee97549
  • b

    bright-gpu-74537

    01/30/2023, 8:28 AM
    ?
  • b

    bright-gpu-74537

    01/30/2023, 8:28 AM
    i basically just added some 100%s to certain parts of the UI - you'll probably need to diff to see exactly what / where
  • h

    hallowed-ocean-84954

    01/30/2023, 2:12 PM
    thanx for this - yeah breaking it up might be a good plan - I am not yet sure how I would do that - should I create components for each chunk - or should I just import files for each section but not really built as components ? I guess I don't know what my options are. As 100% in various places - I am always a bit unsure as to when to add them and when not - it ends up coming down to trial and error. What's the general rule ?
  • h

    hallowed-ocean-84954

    01/30/2023, 2:15 PM
    What is the problem with width for the sliders ? And I don't know exactly which components you are referring to that should be hidden. I know that some things are not hidden in some cases - I had problems with the hiding of bits of the labelled-sliders and introduced a bug when I didn't get that right - still have to resolve that.
  • b

    bright-gpu-74537

    01/30/2023, 2:15 PM
    well, the basic idea is if you want the child to be the size of the parent, the thing i think that catches everyone out (it seems) is that if the parent is autosized (ie, doesnt have a px or % size) then 100% will lead to 0
  • b

    bright-gpu-74537

    01/30/2023, 2:16 PM
    and this works up the display tree too... so if you have 5 levels of 100% but your root component is autosized, then all 5 levels will be 0
1...144714481449...1687Latest