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

    brave-kangaroo-30399

    09/29/2022, 8:15 PM
    It’s been a while but I believe I did that in order to allow spritesheets/FlxAtlasFrame
  • b

    brave-kangaroo-30399

    09/29/2022, 8:16 PM
    It was originally FlxObject iirc
  • w

    witty-island-52596

    09/29/2022, 8:16 PM
    isn't FlxFrame a singular frame?
  • w

    witty-island-52596

    09/29/2022, 8:16 PM
    where sheets and stuff are multiple
  • b

    brave-kangaroo-30399

    09/29/2022, 8:17 PM
    Right so the frame would let you choose one image from the sheet
  • w

    witty-island-52596

    09/29/2022, 8:17 PM
    i see
  • b

    brave-kangaroo-30399

    09/29/2022, 8:17 PM
    Instead of having to slice it out and giving it its own FlxGraphic
  • w

    witty-island-52596

    09/29/2022, 8:52 PM
    just saw this., same result with width="400"
  • i

    icy-zebra-52882

    09/29/2022, 10:54 PM
    @witty-island-52596 have you set
    Toolkit.autoScale = false
    in your flixel code when you init Toolkit?
  • i

    icy-zebra-52882

    09/29/2022, 10:55 PM
    as Ian mentioned, UI scaling support for haxeui-flixel is pretty much broken
  • i

    icy-zebra-52882

    09/29/2022, 10:55 PM
    you can set higher than 1 scale, but everything pretty much goes to pot
  • w

    witty-island-52596

    09/29/2022, 11:19 PM
    That seems unrelated, the scale is manually set to 1
  • w

    witty-island-52596

    09/30/2022, 12:59 AM
    itd be really sweet if there was just an
    align
    property with properties like "top-right" or "top" (aka: "top-center") and in hboxes you could just say align="right" or something
  • w

    witty-island-52596

    09/30/2022, 1:00 AM
    or if there was just an hAlign
  • w

    witty-island-52596

    09/30/2022, 1:25 AM
    is there a way to make the divider bar of a section-header but with no text?
  • w

    witty-island-52596

    09/30/2022, 1:42 AM
    http://haxeui.org/builder/?msgrsq setting the header height to 0 doesn't work on flixel, but works here
  • w

    witty-island-52596

    09/30/2022, 4:42 AM
    when I try to edit table items the game hangs in an infinite loop, i'm using this:
    Copy code
    hx
    function onScoresReceive(scores:Array<Score>)
    {
        if (scores.length > size)
            throw 'expected ' + size + ' scores';
        
        for (i=>score in scores)
        {
            scoreList.dataSource.update(i,
                { rank : Std.string(page * size + i)
                , user : score.user.name
                , score: score.formattedValue
                }
            );
        }
    }
    on this
    Copy code
    xml
    <tableview id="scoreList" width="100%" style="padding:0;">
        <header width="100%" height="0">
            <column id="rank"  text="Rank"/>
            <column id="user"  text="User" width="100%"/>
            <column id="score" text="Score" width="100"/>
        </header>
        <data>
            <item rank="1"  user="GeoKureli" score="0"/>
            <item rank="2"  user="GeoKureli" score="0"/>
            <item rank="3"  user="GeoKureli" score="0"/>
            <item rank="4"  user="GeoKureli" score="0"/>
            <item rank="5"  user="GeoKureli" score="0"/>
            <item rank="6"  user="GeoKureli" score="0"/>
            <item rank="7"  user="GeoKureli" score="0"/>
            <item rank="8"  user="GeoKureli" score="0"/>
            <item rank="9"  user="GeoKureli" score="0"/>
            <item rank="10" user="GeoKureli" score="0"/>
        </data>
    </tableview>
  • b

    bright-gpu-74537

    09/30/2022, 5:26 AM
    im not sure halign make sense in hboxes though, does it? I mean, whats the use case? If you use a "box" you can align in both directions: http://haxeui.org/builder/?trncuo
  • b

    bright-gpu-74537

    09/30/2022, 5:26 AM
    i wonder if hidden is a better option here? (or if that works)
  • b

    bright-gpu-74537

    09/30/2022, 5:28 AM
    (it didnt work... well, the data didnt display - never really considered a headerless tableview, but it a perfectly valid use case)
  • b

    bright-gpu-74537

    09/30/2022, 5:28 AM
    any chance for a minimal, runnable repro for this...
  • w

    witty-island-52596

    09/30/2022, 5:44 AM
    Ill try to make one tomorrow
  • b

    bright-gpu-74537

    09/30/2022, 7:28 AM
    so, i think this is issue is this one on the flixel repo: https://github.com/HaxeFlixel/flixel/issues/2301
  • w

    witty-island-52596

    09/30/2022, 3:47 PM
    oh right, this
  • w

    witty-island-52596

    09/30/2022, 4:14 PM
    replied, fix incoming
  • w

    witty-island-52596

    09/30/2022, 4:15 PM
    good thing we are in the process of creating the next major version, because this is a breaking change
  • w

    witty-island-52596

    09/30/2022, 4:16 PM
    I don't know if many people use scale and cliprect, but I'll have to add this to a migration wiki
  • w

    witty-island-52596

    09/30/2022, 11:31 PM
    @bright-gpu-74537 is this how you imagine it behaving? https://www.newgrounds.com/projects/games/1574925/preview/filetype/2
  • w

    witty-island-52596

    09/30/2022, 11:34 PM
    updated
  • w

    witty-island-52596

    09/30/2022, 11:55 PM
    makes this work
1...129012911292...1687Latest