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

    bright-gpu-74537

    08/18/2022, 9:49 PM
    i get
  • b

    bright-gpu-74537

    08/18/2022, 9:49 PM
    Copy code
    C:\SDK\haxe\lib\heaps/git/hxsl/Macros.hx:316: lines 316-322 : Object requires field ret
    C:\SDK\haxe\lib\heaps/git/hxsl/Macros.hx:316: lines 316-322 : For function argument 'f'
    C:\SDK\haxe\lib\heaps/git/hxsl/Macros.hx:328: lines 328-334 : Object requires field ret
    C:\SDK\haxe\lib\heaps/git/hxsl/Macros.hx:328: lines 328-334 : For function argument 'f'
  • b

    bright-gpu-74537

    08/18/2022, 9:49 PM
    with the latest heaps
  • f

    full-branch-26766

    08/18/2022, 9:49 PM
    weird
  • b

    bright-gpu-74537

    08/18/2022, 9:50 PM
    ok, so i fixed the ret stuff in heaps, but i dont get your error
  • f

    full-branch-26766

    08/18/2022, 9:50 PM
    I delete all my lib and reinstalling the onces i need to make sure
  • f

    full-branch-26766

    08/18/2022, 9:52 PM
    imma go try on my linux boot, might be a windows issue
  • f

    full-branch-26766

    08/18/2022, 9:53 PM
    because i still get the same errors
    Copy code
    C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/TextDisplayImpl.hx:113: characters 14-23 : h2d.Text has no field lineBreak
    C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/TextDisplayImpl.hx:39: characters 49-58 : h2d.Text has no field lineBreak
    C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/TextDisplayImpl.hx:40: characters 24-33 : h2d.Text has no field lineBreak
    C:\HaxeToolkit\haxe\lib\haxeui-heaps/git/haxe/ui/backend/TextInputImpl.hx:16: characters 19-28 : h2d.TextInput has no field lineBreak
  • b

    bright-gpu-74537

    08/18/2022, 9:54 PM
    its certainly there: https://github.com/HeapsIO/heaps/blob/master/h2d/Text.hx#L113
  • b

    bright-gpu-74537

    08/18/2022, 9:54 PM
    maybe you are using an old version of heaps?
  • f

    full-branch-26766

    08/18/2022, 9:55 PM
    might be i deleted all my lib and let haxeui-heaps install heaps (git) (it install his needed dependencies)
  • f

    full-branch-26766

    08/18/2022, 9:57 PM
    ooh manually reinstalled heaps and it works
  • f

    full-branch-26766

    08/18/2022, 9:57 PM
    I guess when installing heapsui-heaps it didnt take the git version of heaps
  • b

    bright-gpu-74537

    08/18/2022, 9:57 PM
    ¯\_(ツ)_/¯
  • f

    full-branch-26766

    08/18/2022, 10:00 PM
    but the style issue is still there
  • b

    bright-gpu-74537

    08/18/2022, 10:00 PM
    you'll have to zip a project, or create a minimal repro, im just about to head to bed, ill take a look in the morning
  • f

    full-branch-26766

    08/18/2022, 10:00 PM
    i'll go ahead and do that. thanks for the help!
  • b

    bright-gpu-74537

    08/18/2022, 10:02 PM
    fyi:
  • f

    full-branch-26766

    08/18/2022, 10:04 PM
    I was making a demo project for the github issue and now it works if i only have the tab view.....
  • f

    full-branch-26766

    08/18/2022, 10:04 PM
    it might have just been my own stupidity
  • t

    thousands-state-46635

    08/19/2022, 12:24 AM
    How would I make the height label and input be next to the width label and input (thorugh haxe)
  • p

    purple-businessperson-14467

    08/19/2022, 12:25 AM
    Using xml for layout? wrap the width label and input in
  • t

    thousands-state-46635

    08/19/2022, 12:26 AM
    Nope, im building the UI through haxe
  • t

    thousands-state-46635

    08/19/2022, 12:26 AM
    Copy code
    hx
    
    class CreateProjectDialog extends Dialog {
        public function new() {
            super();
    
            title = "Create Project";
            componentWidth = 400;
            width = 400;
    
            var label:Label = new Label();
            
            label.verticalAlign = "center";
            label.value = "Project Name";
    
            var textField:TextField = new TextField();
            textField.id = "projectName";
            textField.percentWidth = 100;
    
            var widthLabel:Label = new Label();
            widthLabel.value = "Width";
            widthLabel.verticalAlign = "center";
    
            var widthTextField:TextField = new TextField();
            widthTextField.id = "widthNumber";
            widthTextField.percentWidth = 30;
            widthTextField.value = "1280";
    
            var heightLabel:Label = new Label();
            heightLabel.value = "Height";
    
            var heightTextField:TextField = new TextField();
            heightTextField.id = "heightNumber";
            heightTextField.percentWidth = 30;
            heightTextField.value = "720";
            
            var allowPreloaderCheckboxLabel:Label = new Label();
            allowPreloaderCheckboxLabel.value = "Allow Preloader";
            allowPreloaderCheckboxLabel.verticalAlign = "center";
            var allowPreloaderCheckbox:CheckBox = new CheckBox();
            allowPreloaderCheckbox.id = "allowPreloaderCheckbox";
            allowPreloaderCheckbox.percentWidth = 100;
            allowPreloaderCheckbox.value = true;
    
            addComponent(label);
            addComponent(textField);
            addComponent(widthLabel);
            addComponent(widthTextField);
            addComponent(heightLabel);
            addComponent(heightTextField);
        }
    }
  • p

    purple-businessperson-14467

    08/19/2022, 12:26 AM
    add hbox component then add label and input to hbox
  • p

    purple-businessperson-14467

    08/19/2022, 12:29 AM
    essentially var widthHbox=new HBox() var widthLabel:Label = new Label(); var widthTextField:TextField = new TextField(); widthHbox.addComponent(widthLabel); widthHbox.addComponent(widthTextField); addComponent(widthHbox);
  • p

    purple-businessperson-14467

    08/19/2022, 12:30 AM
    dialog is using a vbox by default (I assume) so all items get vertically aligned.
  • t

    thousands-state-46635

    08/19/2022, 12:32 AM
    qh okay
  • f

    full-branch-26766

    08/19/2022, 12:37 AM
    in heaps, how do I stop the ui from moving when i move the camera?
  • b

    bright-gpu-74537

    08/19/2022, 5:06 AM
    so there is nothing special preventing it, so it sounds like a bug / oversight, how do you usually (in heaps) stop objects from moving with the camera? Got a test app to show the issue?
1...121612171218...1687Latest