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

    bright-gpu-74537

    12/04/2022, 11:31 AM
    🙂 i appreciate bug reports - i mean, there are alot of moving parts in haxeui (and the backends), and really, im no expert on any of them - so i kinda have to rely on other people going "hey this thing in flixel doesnt work", as simply, i never used screenCenter, or actually, even knew about it. And more importantly, the fact it didnt work was a deeper problem in haxeui-flixel (with components not having width / height when added)
  • f

    famous-alarm-22563

    12/04/2022, 11:33 AM
    🤔 It still looks the same to mee..
  • f

    famous-alarm-22563

    12/04/2022, 11:33 AM
    do I stream it on vc?
  • b

    bright-gpu-74537

    12/04/2022, 11:33 AM
    you sure you got latest, clean build, etc?
  • b

    bright-gpu-74537

    12/04/2022, 11:34 AM
    gif will be fine, im just about to take the dogs to the park anyway
  • f

    famous-alarm-22563

    12/04/2022, 11:34 AM
    I did haxelib git
  • f

    famous-alarm-22563

    12/04/2022, 11:34 AM
    then lime test linux..
  • b

    bright-gpu-74537

    12/04/2022, 11:34 AM
    maybe
    haxelib update haxeui-flixel
    ?
  • b

    bright-gpu-74537

    12/04/2022, 11:35 AM
    i think haxelib is smart enough to know to pull if its git then... i think so anyway, i dont use
    haxelib git
    personally
  • b

    bright-gpu-74537

    12/04/2022, 11:35 AM
    failing that you can go into the haxeui-flixel dir and do a
    git pull
  • p

    powerful-morning-89

    12/04/2022, 11:36 AM
    Haxelib is smart enough to do
    git pull
    for libraries installed with
    haxelib git
    .
  • b

    bright-gpu-74537

    12/04/2022, 11:36 AM
    cool - thought so...
  • b

    bright-gpu-74537

    12/04/2022, 11:36 AM
    but maybe only with an "haxelib update" ?
  • f

    famous-alarm-22563

    12/04/2022, 11:36 AM
    latest commit is add rather than addOnce
  • b

    bright-gpu-74537

    12/04/2022, 11:37 AM
    yeah
  • f

    famous-alarm-22563

    12/04/2022, 11:37 AM
    it "seems" like thats where the head is at
  • b

    bright-gpu-74537

    12/04/2022, 11:37 AM
    hmmm, right, you might want to do a clean build then or something
  • b

    bright-gpu-74537

    12/04/2022, 11:37 AM
    are you doing
    .screenCenter()
    after the
    add(...)
    ?
  • f

    famous-alarm-22563

    12/04/2022, 11:41 AM
    yeah
  • f

    famous-alarm-22563

    12/04/2022, 11:41 AM
    I think I did a clean build
  • b

    bright-gpu-74537

    12/04/2022, 11:42 AM
    dunno then defo fine this end, ill need to some code to see if my repro was similar to yours
  • f

    famous-alarm-22563

    12/04/2022, 11:42 AM
    Here is the code for the Label
    Copy code
    this.text = new Label();
            this.text.customStyle.fontSize = 32;
            this.text.customStyle.fontName = Consts.getFont("Regular");
            this.text.customStyle.color = Color.fromString("#FFFFFF");
    
            add(this.text);
            this.text.screenCenter();
  • f

    famous-alarm-22563

    12/04/2022, 11:43 AM
    Copy code
    var button = new Button();
            button.fontSize = 24;
            button.text = "RESTART>";
    
            button.onClick = function(_)
            {
                FlxG.switchState(new PlayState());
            };
            button.customStyle.fontName = Consts.getFont("Regular");
            add(button);
            button.screenCenter();
        }
  • b

    bright-gpu-74537

    12/04/2022, 11:43 AM
    pretty much the same... can you remove the font stuff, just to see if that makes any difference?
  • f

    famous-alarm-22563

    12/04/2022, 11:43 AM
    This is the code for the button
  • b

    bright-gpu-74537

    12/04/2022, 11:44 AM
    fyi, you shouldnt need the
    Color.fromString("#FFFFFF")
    ,
    "#FFFFFF"
    should be enough, or
    0xFFFFFF
    or
    "white"
  • b

    bright-gpu-74537

    12/04/2022, 11:44 AM
    (but thats neither here nor there)
  • f

    famous-alarm-22563

    12/04/2022, 11:44 AM
    wait
  • f

    famous-alarm-22563

    12/04/2022, 11:44 AM
    I think doing that gave me an error earlier
  • f

    famous-alarm-22563

    12/04/2022, 11:44 AM
    let me double check
1...131613171318...1687Latest