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

    bright-gpu-74537

    05/18/2020, 6:54 AM
    onChange should work for listview
  • b

    bright-gpu-74537

    05/18/2020, 6:57 AM
    kha looking better again... phew
  • c

    clever-oil-61353

    05/18/2020, 7:00 AM
    It definately is
  • c

    clever-oil-61353

    05/18/2020, 7:00 AM
    i like that
  • b

    bright-gpu-74537

    05/18/2020, 7:02 AM
    really nice bug in haxeui cause it to look all strange... to the point i have NO idea how it looked normal on haxeui-html5 😄
  • b

    bright-gpu-74537

    05/18/2020, 7:02 AM
    i guess the browser does something smart... no idea, but basically the button for the slider was inheriting the slice9 coords from a normal button, which arent valid anymore with the new image
  • b

    bright-gpu-74537

    05/18/2020, 7:03 AM
    so no idea at all how haxeui-html5 showed the image correctly
  • b

    bright-gpu-74537

    05/18/2020, 7:03 AM
    well, not really a bug in haxeui-core a bug in the kenney theme
  • c

    clever-oil-61353

    05/18/2020, 7:04 AM
    that does seem odd. i wonder what html does differently.
  • b

    bright-gpu-74537

    05/18/2020, 7:07 AM
    i think it probably "realised" it couldnt cutout these parts from the images so just used the whole image, so appeared to work... a fallback type thing (im guessing)
  • b

    bright-gpu-74537

    05/18/2020, 7:08 AM
    like if you give it an image 100x100 and say "cut out a 200x200 square starting from 150x150 coords" i think it just returns the original image... thats an assumption of course, but it would explain it
  • c

    clever-oil-61353

    05/18/2020, 7:08 AM
    i could see that happening
  • b

    bright-gpu-74537

    05/18/2020, 7:09 AM
    yeah, same, browsers being browsers they probably try to be a neat as possible, and in this example, it did do a good job with that assumption
  • c

    clever-oil-61353

    05/18/2020, 7:24 AM
    whats the difference between menuitem and menu-item?
  • c

    clever-oil-61353

    05/18/2020, 7:29 AM
    they both add the menu item to the menu and seem to work for it.
  • b

    bright-gpu-74537

    05/18/2020, 7:32 AM
    nothing
  • b

    bright-gpu-74537

    05/18/2020, 7:32 AM
    before haxeui looks up the class from the xml node it lowercases it and removes dashes
  • b

    bright-gpu-74537

    05/18/2020, 7:32 AM
    so
    mEnU-iTem
    would also work
  • c

    clever-oil-61353

    05/18/2020, 7:36 AM
    ah ok
  • g

    gray-state-19680

    05/18/2020, 8:17 AM
    Hello there.. haxeui.org seems down ;)
  • b

    bright-gpu-74537

    05/18/2020, 8:19 AM
    :/
  • b

    bright-gpu-74537

    05/18/2020, 8:20 AM
    i think they might be running diagnostics on it
  • b

    bright-gpu-74537

    05/18/2020, 10:07 AM
    anyone here using haxeui-openfl and has 10 mins to test something for me?
  • c

    clever-oil-61353

    05/18/2020, 10:08 AM
    i can, i have openfl installed
  • b

    bright-gpu-74537

    05/18/2020, 10:09 AM
    cool - thanks - so in an empty folder run
    haxelib run haxeui-core create openfl
    to get a skeleton project
  • b

    bright-gpu-74537

    05/18/2020, 10:09 AM
    then replace the main.xml with:
  • b

    bright-gpu-74537

    05/18/2020, 10:09 AM
    Copy code
    xml
    <box style="padding: 0px;" width="100%" height="100%" styleName="default-background">
                <listview width="200" height="200">
                    <item-renderer layoutName="horizontal" width="100%">
                        <hbox width="100%">
                            <label width="100%" id="value2" verticalAlign="center" />
                        </hbox>    
                    </item-renderer>    
                    <data>
                        <item value2="Item 1" />
                        <item value2="Item 2" />
                        <item value2="Item 3" />
                        <item value2="Item 4" />
                        <item value2="Item 5" />
                    </data>
                </listview>    
    </box>
  • b

    bright-gpu-74537

    05/18/2020, 10:10 AM
    and what does it end up looking like?
  • b

    bright-gpu-74537

    05/18/2020, 10:12 AM
    i get:
  • b

    bright-gpu-74537

    05/18/2020, 10:12 AM
    ie, no text... ive gone back 100's of commits to see when this broke and i just cant work it out
1...217218219...1687Latest