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

    early-butcher-76809

    03/21/2023, 7:24 PM
    Oh. Wonder what stretch does. Gonna check the openfl implementation, thank you !
  • e

    early-butcher-76809

    03/21/2023, 7:25 PM
    Ah, stretch is the default behavior, isn't it ?
  • f

    full-journalist-82607

    03/21/2023, 7:26 PM
    https://github.com/haxeui/haxeui-openfl/blob/43355ff611d63c1ff86db6ba7535d9277fd0e654/haxe/ui/backend/openfl/OpenFLStyleHelper.hx#L272-L291 I'm not sure , I haven't used much background-image-repeat
  • e

    early-butcher-76809

    03/21/2023, 7:28 PM
    Thank you anyway, I'm gonna use this code to rewrite mine !
  • e

    early-butcher-76809

    03/22/2023, 12:59 AM
    @bright-gpu-74537 Let's say I added a way to repeat images in my local Heaps binding code (in StyleHelper.xml). I also added a way to repeat parts of a 9-sliced image instead of stretching 'em (in case the image has more than just flat colors). Should I try to do a PR for you to check ? Should I open an issue with my code in it ? What is your preferred workflow ?
  • b

    bright-gpu-74537

    03/22/2023, 7:04 AM
    nice, sounds great, either or work for me - totally up to you
  • b

    bright-gpu-74537

    03/22/2023, 7:11 AM
    where did you get this sample from btw?
  • c

    curved-appointment-82072

    03/22/2023, 7:12 AM
    You mean the builder?
  • b

    bright-gpu-74537

    03/22/2023, 7:12 AM
    yeah, that example in the builder
  • c

    curved-appointment-82072

    03/22/2023, 7:14 AM
    I created it locally, tested on my machine, then uploaded to the playground
  • c

    curved-appointment-82072

    03/22/2023, 7:14 AM
    (using the forum announcement, 1.2, examples
  • b

    bright-gpu-74537

    03/22/2023, 7:15 AM
    gotcha... ok, so the first thing with it, is params have changed... they used to be
    {0}
    ,
    {1}
    , etc... now they are
    [0]
    ,
    [1]
  • b

    bright-gpu-74537

    03/22/2023, 7:15 AM
    this is because
    {
    is used in parsing now since you can get quite complex:
  • b

    bright-gpu-74537

    03/22/2023, 7:15 AM
    Copy code
    colours.count=[1] {
        none: has no colours
        one: has one colour
        many: has [0] colours
    } in {
        [2]=m: his
        [2]=f: her
        _: their
    } palette
  • c

    curved-appointment-82072

    03/22/2023, 7:16 AM
    OK and internal lookups, still {{MYKEY}}
  • c

    curved-appointment-82072

    03/22/2023, 7:16 AM
    ?
  • b

    bright-gpu-74537

    03/22/2023, 7:16 AM
    yeah, thats a regression for sure... looking at it now
  • c

    curved-appointment-82072

    03/22/2023, 7:18 AM
    I will start updating the params in my apps
  • b

    bright-gpu-74537

    03/22/2023, 7:19 AM
    yeah, apologies for that - i kinda didnt really think anyone was really use this system... if its any consolation the new system is loads and loads better 🙂
  • c

    curved-appointment-82072

    03/22/2023, 7:21 AM
    No worries, and thanks! 🙏
  • b

    bright-gpu-74537

    03/22/2023, 7:40 AM
    alright, thats all working now: http://haxeui.org/builder/?dffda537
  • c

    curved-appointment-82072

    03/22/2023, 7:54 AM
    Nice! Yes I see it in the builder.
  • c

    curved-appointment-82072

    03/22/2023, 8:07 AM
    All compiling and displaying good except for my csv, tsv parsers. I will try to rewrite and pr. Thanks Ian!
  • b

    bright-gpu-74537

    03/22/2023, 8:10 AM
    i think i removed support for .po... was there ever support for csv?
  • c

    curved-appointment-82072

    03/22/2023, 8:15 AM
    In my framework yes. I had a Key Value class, extending LocaleParser, with simple childs setting up the separators, CR and comments differences
  • b

    bright-gpu-74537

    03/22/2023, 8:17 AM
    interesting... whats "your framework" out of curiosity? So you implemented a custom local parser for .csv and registered it? (Like:
    LocaleParser.register("csv", CSVLocaleParser)
    )? Sounds interesting, is there a use case for having that in core?
  • c

    curved-appointment-82072

    03/22/2023, 8:18 AM
    Csv or tsv are common as simple interchange data and most CAT tools handle them seamlessly.
  • b

    bright-gpu-74537

    03/22/2023, 8:19 AM
    so, btw, you are right about scaling... non int numbers seem to cause chaos - im pretty sure this is just the heaps backend, but ill check the others: Scale 1.5:
  • b

    bright-gpu-74537

    03/22/2023, 8:19 AM
    Scale 2:
  • b

    bright-gpu-74537

    03/22/2023, 8:19 AM
    ... weird... 🤔
1...160816091610...1687Latest