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

    bright-gpu-74537

    07/10/2020, 1:48 PM
    sure, works for me - maybe some tasty bugs to squash as a result
  • b

    bright-gpu-74537

    07/10/2020, 1:49 PM
    wont be able to look at it till later though
  • f

    fast-rain-20339

    07/10/2020, 1:49 PM
    It's not a full colour picker yet, but shows the problems 😄
  • f

    fast-rain-20339

    07/10/2020, 1:49 PM
    No worries
  • b

    bright-gpu-74537

    07/10/2020, 1:49 PM
    cool, yeah, im only interested in the problems at the moment, sounds like some good ones
  • f

    fast-rain-20339

    07/10/2020, 1:52 PM
    Here we go
  • f

    fast-rain-20339

    07/10/2020, 1:52 PM
    https://github.com/5Mixer/HaxeUIColourPicker
  • f

    fast-rain-20339

    07/10/2020, 1:52 PM
    Oh, hm, I just realised the ordering was fine here and I didn't enable batching
  • f

    fast-rain-20339

    07/10/2020, 1:53 PM
    I didn't do it 'the kha way' though, I used
    new HaxeUIApp()
  • f

    fast-rain-20339

    07/10/2020, 1:53 PM
    Interesting. Another puzzle anyhow.
  • b

    bright-gpu-74537

    07/10/2020, 2:04 PM
    cool, nice one
  • b

    bright-gpu-74537

    07/10/2020, 2:04 PM
    ill have a play later
  • b

    bright-gpu-74537

    07/10/2020, 2:04 PM
    thanks
  • f

    fast-rain-20339

    07/10/2020, 2:04 PM
    No worries 🙂
  • f

    fast-rain-20339

    07/11/2020, 7:11 AM
    I got file system 'navigation' in with Haxe UI by showing folders as items and having a parent folder, is there a tree component or something that might feel a little nicer?
  • f

    fast-rain-20339

    07/11/2020, 7:12 AM
    I had a look around and didn't see anything, but I thought you posted something awhile ago. Anyhow, I'm all ears for suggestions 😄 This is usable
  • h

    handsome-television-62908

    07/11/2020, 8:37 AM
    I think I've seen someone demoing a tree-view in the past, but I am pretty sure this is not a component native to HaxeUI
  • f

    fast-rain-20339

    07/11/2020, 8:37 AM
    Ah, okay, thanks.
  • f

    fast-rain-20339

    07/11/2020, 8:38 AM
    Another option that might be good is to not show subfolders, just have a little 'open' button that opens a native folder picker. Hm. 🤔
  • h

    handsome-television-62908

    07/11/2020, 8:40 AM
    How are you currently populating the list as of right now?
  • h

    handsome-television-62908

    07/11/2020, 8:40 AM
    In code or through xml?
  • f

    fast-rain-20339

    07/11/2020, 8:40 AM
    Code
  • h

    handsome-television-62908

    07/11/2020, 8:41 AM
    You could make a makeshift setup without too much hassle I feel like
  • f

    fast-rain-20339

    07/11/2020, 8:43 AM
    Absolutely, that's what I've got atm, unless you mean something else 😄
  • h

    handsome-television-62908

    07/11/2020, 8:49 AM
    Copy code
    haxe
    typedef FileNode = { children:Array<FileNode>, location:String };
    function buildTree(item:FileNode, offset:Int) {
      var el:Component;
      if (item.children.length != 0) {
        el = new VBox();
        // add style here that adds padding left = offset
        for (file in item.children) el.addComponent(buildTree(file, offset));
      } else { 
        el = buildItem(location);
      }
      return el;
    }
    Literally wrote this in here so it sucks but that's my first idea lol. You'd just pass in your file structure to build the tree and obviously need to remove the indentation from the first VBox
  • f

    fast-rain-20339

    07/11/2020, 8:50 AM
    Ah! Yes, I have the nested tree of assets/files already in my code. I honestly hadn't considered just building it up myself out of components 🙂 Thanks for your help!
  • h

    handsome-television-62908

    07/11/2020, 8:51 AM
    For sure! I think it would just work that way given how scrollable views work . . but yeah. Keep up the nice work man, liking the editor!
  • f

    fast-rain-20339

    07/11/2020, 8:51 AM
    Thanks so much 😄
  • b

    bright-gpu-74537

    07/11/2020, 9:31 AM
    there isnt a treeview in core yet, but i have one ive been using... lemme extract it from the project its in
  • f

    fast-rain-20339

    07/11/2020, 9:32 AM
    Sounds good 🙂 Even just example code will be great. Haven't started implementing my tree yet 🙂 I may still have a button to open a native dialogue, but still show the tree
1...312313314...1687Latest