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

    full-journalist-82607

    03/20/2023, 2:44 PM
    Argh, Ian to the rescue !
  • e

    early-butcher-76809

    03/20/2023, 2:44 PM
    It did, I extended Absolute :(
  • b

    bright-gpu-74537

    03/20/2023, 2:44 PM
    http://haxeui.org/builder/?5466f941
  • b

    bright-gpu-74537

    03/20/2023, 2:45 PM
    class MainView extends Absolute
  • e

    early-butcher-76809

    03/20/2023, 2:45 PM
    Oh 🤔
  • e

    early-butcher-76809

    03/20/2023, 2:45 PM
    So, that's not my issue :(
  • e

    early-butcher-76809

    03/20/2023, 2:45 PM
    Thank you
  • e

    early-butcher-76809

    03/20/2023, 2:50 PM
    On my Heaps project, this works... ok, I get a green rectangle but with 75% width and height of my screen (for some reason) :
    Copy code
    <box width="50%" height="50%" style="background-color: #00ff00; background-opacity: 0.5;">
    </box>
    + ``class HudUI extends Box`` But this doesn't display anything :
    Copy code
    <absolute width="50%" height="50%" style="background-color: #00ff00; background-opacity: 0.5;">
    </absolute>
    + ``class HudUI extends Absolute``
  • b

    bright-gpu-74537

    03/20/2023, 2:53 PM
    that seems very odd
  • e

    early-butcher-76809

    03/20/2023, 2:53 PM
    Ok, the 75% instead of 50 seems to be on my part, I changed one thing and it's the right size. No luck with absolute, though :(
  • e

    early-butcher-76809

    03/20/2023, 2:58 PM
    It only works if it's included in a box with given width/height :/
  • b

    bright-gpu-74537

    03/20/2023, 3:00 PM
    if you knock up a repro, ill see what happens on my machine later this eve
  • e

    early-butcher-76809

    03/20/2023, 3:01 PM
    Sure. D'you need an entire project or just some XML ?
  • b

    bright-gpu-74537

    03/20/2023, 3:01 PM
    project is generally easier, then i can just run it this and see what happens - takes the guess work out
  • e

    early-butcher-76809

    03/20/2023, 3:35 PM
    Is playing with Toolkit.scale supposed to be straightforward or aren't we supposed to do it ? Changing it completely breaks my UI. Things aren't ordered anymore or space between two items of a hbox are different, buttons overlap, etc...
  • e

    early-butcher-76809

    03/20/2023, 3:42 PM
    Here is scale = 1, then scale = 0.5, then scale = 1.5 (the "0"s aren't there, they are way lower)
  • e

    early-butcher-76809

    03/20/2023, 3:45 PM
    I currently handle resolution changes through the use of vw and vh. I wondered if it wouldn't be much easier with the Toolkit.scale but well... :P
  • e

    early-butcher-76809

    03/20/2023, 3:57 PM
    It's an issue when absolutes seem to only work in pixel value :(
  • e

    early-butcher-76809

    03/20/2023, 4:00 PM
    Oh, it can also work with some other units (like vw) in style. Oh well, let's do this, then ^^
  • b

    bright-gpu-74537

    03/20/2023, 5:11 PM
    toolkit.scale should work... not sure about < 1 values... but above 1 should work... maybe its bugged on haxeui-heaps
  • b

    bright-gpu-74537

    03/20/2023, 5:12 PM
    not sure i follow
  • e

    early-butcher-76809

    03/20/2023, 5:14 PM
    I was talking about left and top taking only px values but it's only if there're use directly as XML parameters. It works with other stuff in the style.
  • e

    early-butcher-76809

    03/20/2023, 5:15 PM
    I think being able to create the UI for a given resolution (and placing stuff in pixel values) then scaling it would be a much simpler workflow but my scaling doesn't seem to work :/
  • b

    bright-gpu-74537

    03/20/2023, 5:16 PM
    a repro for the above would be useful... it maybe be that scaling needs a little love on haxeui-heaps... i feel like i did test it though... but maybe im thinking about a different backend
  • e

    early-butcher-76809

    03/20/2023, 5:17 PM
    I'll try to make a simple project, at some point in the near future
  • c

    curved-appointment-82072

    03/21/2023, 11:36 AM
    In fact I found out what happened... I had created some key value parsers (csv, tsv) based on the former Properties parser. All the extended parsers had vars for separators, carriage returns and comments. But now, with the refactoring the separator is hard coded in the LocaleString.parse() func. I will try to do a PR to include the other parsers with the new framework.
  • c

    curved-appointment-82072

    03/21/2023, 11:41 AM
    (with this
  • c

    curved-appointment-82072

    03/21/2023, 12:13 PM
    All wrong... As the demo on the builder shows. It is broken with "properties" too.
  • e

    early-butcher-76809

    03/21/2023, 7:18 PM
    I believe background-image-repeat doesn't work on Heaps. While trying to implement it, I wonder what the syntax for it is. Is it ``background-image-repeat: repeat`` ? ``background-image-repeat: true`` ? Something else ?
  • f

    full-journalist-82607

    03/21/2023, 7:24 PM
    there is repeat no-repeat stretch in haxeui openfl
1...160716081609...1687Latest