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

    hallowed-ocean-84954

    12/16/2022, 3:11 AM
    I'm missing something I'm sure - how do I display text that you can cut and paste, copy but not edit ? All the text widgets appear to be changeable except Label which isn't selectable.
  • e

    elegant-twilight-61392

    12/16/2022, 3:14 AM
    cut and paste without editing?
  • h

    hallowed-ocean-84954

    12/16/2022, 3:17 AM
    well not paste into
  • h

    hallowed-ocean-84954

    12/16/2022, 3:17 AM
    actually not cut either
  • h

    hallowed-ocean-84954

    12/16/2022, 3:17 AM
    fair enough
  • h

    hallowed-ocean-84954

    12/16/2022, 3:17 AM
    copy
  • h

    hallowed-ocean-84954

    12/16/2022, 3:17 AM
    oops
  • b

    bright-gpu-74537

    12/16/2022, 6:42 AM
    there is defo a property missing here, all labels are not selectable on purpose originally, but ive come to realise that might have been a dumb decision, so a "selectable" needs to be implemented, i think most backends will support it
  • o

    orange-van-60470

    12/16/2022, 2:07 PM
    Ian do you have a generic library that checks xml is valid if compiled in?
  • o

    orange-van-60470

    12/16/2022, 2:07 PM
    I mean against typedef's or something?
  • h

    hallowed-ocean-84954

    12/16/2022, 2:10 PM
    ok so if you think you'll add such a thing I'll just use label for static text display. Do they support word-wrapping ? The option would be readonly textarea's which I think would, right ?
  • b

    bright-gpu-74537

    12/16/2022, 3:04 PM
    like a xml2object or something (like json2object)... i dont, no, but it would be useful
  • b

    bright-gpu-74537

    12/16/2022, 3:05 PM
    yeah, label is the right choice here, and yeah, ill defo add selectable at some point... you can always do it yourself now by accessing the underlying textfield (openfl in your case i believe):
  • b

    bright-gpu-74537

    12/16/2022, 3:06 PM
    myLabel.getTextDisplay().tf
    (that will be an openfl text field, so you should just be able to set properties on that)
  • h

    hallowed-ocean-84954

    12/16/2022, 3:31 PM
    oh cool - didn't realize that - will give that a go - thx
  • o

    orange-van-60470

    12/16/2022, 4:57 PM
    Ian did you see I have now added some repeat texture support to my pixelimage lib. Can now do a rounded rectangle similar to how excel patterns work and can do it with an xml node ( names need improvement ) .. suspect may need to add some reflection image or sequence code to allow all patterns, unsure. But the concept of an array pattern image is quite fun. It is a pixel library so would work on all your targets if not too heavy. The repeat fill is implemented on a base triangle so can be used with all shapes, need to add the xml nodes for others.
  • o

    orange-van-60470

    12/16/2022, 4:58 PM
    that's 500 % size for my html demo
  • o

    orange-van-60470

    12/16/2022, 5:00 PM
    the pattern is just an attribute backPatternFill="[true,true,false,false]"
  • o

    orange-van-60470

    12/16/2022, 5:03 PM
    but as I said unsure if currently can easily add all excel like patterns with only a few terms, may need to complicate by propogating reflectioTileX and reflectionTileY properties though all structures and no offset or non repeat currently
  • o

    orange-van-60470

    12/16/2022, 5:04 PM
    touched excel for first time in over a decade recently and the pattern cells aspect interested me.
  • o

    orange-van-60470

    12/16/2022, 5:05 PM
    probably won't have time to tidy up but the rectangle example is checked in
  • o

    orange-van-60470

    12/16/2022, 5:05 PM
    hence my interest in xml being a pain to properly type!
  • f

    fierce-soccer-8550

    12/16/2022, 5:43 PM
    Looking good Nanjizal
  • f

    fierce-soccer-8550

    12/16/2022, 6:13 PM
    I believe i am close to having this working, but I am failing to see something. Could someone point out what I am doing wrong or missing, in getting this slider to adjust the grayscale of the image. http://haxeui.org/builder/?96108954
  • h

    hallowed-ocean-84954

    12/16/2022, 6:38 PM
    I was thinking you needed but I tried adding filter CSS and it didn't work
  • f

    fierce-soccer-8550

    12/16/2022, 6:42 PM
    in the xml if I add style="filter: grayscale(50);" it'll work that way. But getting the slider to adjust the value has me baffled.
  • b

    bright-gpu-74537

    12/16/2022, 6:43 PM
    this'll work, but honestly, i dont like it: http://haxeui.org/builder/?94ec1eeb
  • b

    bright-gpu-74537

    12/16/2022, 6:44 PM
    (i dont like building up a styleString, it should be possible to do it with
    customStyle
    directly, but its all enums, so it might be even more verbose)
  • f

    fierce-soccer-8550

    12/16/2022, 6:47 PM
    Thank you Ian. I'll play around with customStyle a bit and learn about it today.
  • b

    bright-gpu-74537

    12/16/2022, 6:49 PM
    heres another, possibly better (?) alt: http://haxeui.org/builder/?f5bc150c
1...133713381339...1687Latest