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

    limited-advantage-32748

    08/08/2019, 7:28 PM
    Some issues I've noticed recently using HaxeUI
  • l

    limited-advantage-32748

    08/08/2019, 7:28 PM
    Slider is not working, I get a null object error
  • l

    limited-advantage-32748

    08/08/2019, 7:28 PM
    then me trying to work around with VerticalSlider, setting XY values yields no changes
  • b

    brave-kangaroo-30399

    08/08/2019, 7:36 PM
    Which backend
  • l

    limited-advantage-32748

    08/08/2019, 7:45 PM
    OpenFL
  • l

    limited-advantage-32748

    08/08/2019, 7:50 PM
    Copy code
    Called from haxe.ui.components.Slider::new haxe/ui/components/Slider.hx line 19
    Called from haxe.ui.core.InteractiveComponent::new haxe/ui/core/InteractiveComponent.hx line 13
    Called from haxe.ui.core.Component::new haxe/ui/core/Component.hx line 66
    Called from haxe.ui.core.Component::create haxe/ui/core/Component.hx line 87
    Called from haxe.ui.components.SliderBuilder::create haxe/ui/components/Slider.hx line 257
  • l

    limited-advantage-32748

    08/08/2019, 7:50 PM
    This appears to be the offending function:
    Copy code
    public override function create() {
             if (_component.findComponent("range") == null) {
                var v = createValueComponent();
                v.scriptAccess = false;
                v.id = "range";
                v.addClass("slider-value");
                v.start = v.end = 0;
                _component.addComponent(v);
            }
            
            createThumb("end-thumb");
       }
       
        private function createValueComponent():Range {
            return null;
        }
  • l

    limited-advantage-32748

    08/08/2019, 7:51 PM
    ``v`` can't have any properties changed on it since ``createValueComponent`` doesn't seem to be finished
  • l

    limited-advantage-32748

    08/08/2019, 7:53 PM
    And yes, I have downloaded the latest git version of ``new-component-method``
  • b

    bright-yak-48460

    08/08/2019, 8:02 PM
    Actually, master is now the proper branch. Can you switch to master on both haxeui-core and haxeui-openfl and see if it's still misbehaving?
  • l

    limited-advantage-32748

    08/08/2019, 8:06 PM
    same issue
  • l

    limited-advantage-32748

    08/08/2019, 8:07 PM
    Same unfinished function https://github.com/haxeui/haxeui-core/blob/379289399ef424a4389418b58ab198adcef68467/haxe/ui/components/Slider.hx#L267
  • b

    bright-yak-48460

    08/08/2019, 8:18 PM
    I defer to @bright-gpu-74537. Not sure what the intention is/was there.
  • b

    bright-gpu-74537

    08/08/2019, 8:19 PM
    erm, this isnt good... can you open an issue, or post (small) code here so i can reproduce?
  • l

    limited-advantage-32748

    08/08/2019, 8:19 PM
    Yeah give me a second
  • b

    bright-gpu-74537

    08/08/2019, 8:19 PM
    sliders "work for me", but that isnt a great excuse
  • l

    limited-advantage-32748

    08/08/2019, 8:20 PM
    give me a second to replicate at the minimum
  • b

    bright-gpu-74537

    08/08/2019, 8:20 PM
    perfect, min is the best way to fix issues
  • b

    bright-gpu-74537

    08/08/2019, 8:22 PM
    ... ... ... i should also probably mention my sister (older sister) is over for 3 weeks so my time is extra limited (i took time off "work work")
  • b

    bright-gpu-74537

    08/08/2019, 8:22 PM
    reproducible examples with static results will help me... 😃
  • b

    bright-gpu-74537

    08/08/2019, 8:23 PM
    assuming anyone cared, this is me with my younger sister:
  • l

    limited-advantage-32748

    08/08/2019, 8:23 PM
    I do suggest you look at the line I linked though
  • l

    limited-advantage-32748

    08/08/2019, 8:24 PM
    it's a null object error
  • l

    limited-advantage-32748

    08/08/2019, 8:24 PM
    in the first function properties of ``v`` are attempted to be changed
  • b

    bright-gpu-74537

    08/08/2019, 8:24 PM
    right, but do you have a test case?
  • l

    limited-advantage-32748

    08/08/2019, 8:24 PM
    working on that now
  • b

    bright-gpu-74537

    08/08/2019, 8:24 PM
    cool
  • b

    bright-gpu-74537

    08/08/2019, 8:31 PM
    (and thanks)
  • l

    limited-advantage-32748

    08/08/2019, 8:40 PM
    @bright-gpu-74537 https://github.com/haxeui/haxeui-core/issues/294
  • b

    bright-gpu-74537

    08/08/2019, 8:41 PM
    neko?
1...909192...1687Latest