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

    witty-island-52596

    09/22/2022, 10:09 PM
    no idea where I'm getting 192
  • i

    icy-zebra-52882

    09/23/2022, 12:10 AM
    192 is 2x96, where 96 is the default DPI for 1x scaling on windows and linux
  • i

    icy-zebra-52882

    09/23/2022, 12:11 AM
    so if you're getting 192 DPI reported, chances are you're at 2x (200% in windows) scaling (possibly rounded down to the nearest integer)
  • r

    refined-cat-44047

    09/23/2022, 1:34 AM
    I am running into an issue where if an element starts with
    hidden="true"
    then I later try to set it to false it doesn't show up. I tried to recreate it in the playground, but it works fine. My game using using flixel, so maybe its and haxeui-flixel issue.
  • r

    refined-cat-44047

    09/23/2022, 1:35 AM
    if it starts as false, then I can toggle it true and false as many times as I like, and get the expected behaviour of hiding and showing
  • b

    bright-gpu-74537

    09/23/2022, 6:03 AM
    Do you have the the playground link?
  • r

    refined-cat-44047

    09/23/2022, 9:05 AM
    Oh yeah, so this is the link, but it is working on playground http://haxeui.org/builder/?nerhqh
  • r

    refined-cat-44047

    09/23/2022, 9:07 AM
    And here is a link to my small example flixel project https://drive.google.com/file/d/1JTbi5Um0uLehSrB7UiKegAs-sCNisZO8/view?usp=sharing
  • r

    refined-cat-44047

    09/23/2022, 9:08 AM
    in the
    main-view.xml
    you can change the
    hidden
    attribute to
    true
    to test it out
  • b

    bright-gpu-74537

    09/23/2022, 9:17 AM
    Copy code
    xml
    <?xml version="1.0" encoding="UTF-8"?>
    <vbox>
        <button id="toggleContentBtn" text="Toggle Content" />
        <vbox id="contentArea" hidden="true">
            <label text="Main Content" />
            <button text="Continue" />
        </vbox>
    </vbox>
  • b

    bright-gpu-74537

    09/23/2022, 9:18 AM
    am i missing something?
  • r

    refined-cat-44047

    09/23/2022, 9:36 AM
    hmm, that is not working for me
  • r

    refined-cat-44047

    09/23/2022, 9:36 AM
    but that is how I expect it to behave
  • b

    bright-gpu-74537

    09/23/2022, 9:37 AM
    what version of haxeui, haxeui-flixel, flixel?
  • r

    refined-cat-44047

    09/23/2022, 9:37 AM
    yeah, I will check that now
  • r

    refined-cat-44047

    09/23/2022, 9:42 AM
    oh, I was one commit behind in haxeui-flixel, and that commit seems to fix my issue 😄 I updated the other day so that must be really new
  • r

    refined-cat-44047

    09/23/2022, 9:43 AM
    > remove ill conceived _skipTransformChildren
  • b

    bright-gpu-74537

    09/23/2022, 9:43 AM
    yeah, added literally this morning... funny that also screwed that up too
  • b

    bright-gpu-74537

    09/23/2022, 9:43 AM
    oh well, doubly ill conceived 🙂
  • r

    refined-cat-44047

    09/23/2022, 9:44 AM
    oh well that is fantastic. So you fixed my bug before I even ask about it haha. Well... carry on then. Ignore me 😊
  • b

    bright-gpu-74537

    09/23/2022, 9:44 AM
    heh heh, well, good to know that that was screwing up a few things... 🙂
  • b

    bright-gpu-74537

    09/23/2022, 9:45 AM
    what does
    Screen.instance.dpi
    and
    Screen.instance.isRetina
    return you your mac?
  • b

    bright-gpu-74537

    09/23/2022, 10:40 AM
    @witty-island-52596 - is the #if flag i can use for flixel v5?
  • e

    elegant-twilight-61392

    09/23/2022, 11:38 AM
    #if flixel > 5.0.0
    ?
  • e

    elegant-twilight-61392

    09/23/2022, 11:38 AM
    or whatever the correct syntax is
  • e

    elegant-twilight-61392

    09/23/2022, 11:38 AM
    iirc you can do that
  • w

    witty-island-52596

    09/23/2022, 1:26 PM
    false, 147.359039306641 https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/backend/ScreenBase.hx#L56
  • w

    witty-island-52596

    09/23/2022, 1:26 PM
    my dpi seemed to change depending on whether i have an external monitor plugged in, even though it ran on my macs retina display screen
  • w

    witty-island-52596

    09/23/2022, 1:28 PM
    target seems to affect it now too
  • w

    witty-island-52596

    09/23/2022, 1:28 PM
    mac runs at scale:1 when not plugged into my external monitor
1...127312741275...1687Latest