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

    square-angle-35096

    03/04/2023, 6:00 PM
    ah
  • b

    bright-gpu-74537

    03/04/2023, 6:01 PM
    either way, you've convinced me πŸ™‚ While looking for a theme, ill make the search ignore case... so "dArK" would have also worked.... it makes more sense i think
  • s

    square-angle-35096

    03/04/2023, 6:02 PM
    nice!
  • s

    square-angle-35096

    03/04/2023, 6:04 PM
    thank you :)
  • b

    bright-gpu-74537

    03/04/2023, 6:04 PM
    np πŸ‘
  • b

    bright-gpu-74537

    03/04/2023, 6:08 PM
    fyi, i also think im going to fallback to the default theme (with a warning) if a theme you specified doesnt exist... at least then you'll see something
  • s

    square-angle-35096

    03/04/2023, 6:08 PM
    hahah
  • b

    bright-gpu-74537

    03/04/2023, 6:09 PM
    i think it makes sense... misspell a theme, or screw up the resources in a custom theme module.xml and boom... you see nothing except random labels
  • b

    brave-kangaroo-30399

    03/04/2023, 6:51 PM
    I wonder if that’s related to the cache issue I see every now and then where nothing gets drawn except for the labels
  • s

    square-angle-35096

    03/04/2023, 7:15 PM
    is there a way to make it so that the menubar doesn't close everytime you choose an option?
  • b

    bright-gpu-74537

    03/04/2023, 10:56 PM
    not sure why a menubar menu wouldnt close when you selected an option, you can create lists and such that wont close, its kinda an abuse of menus, but perfectly valid: http://haxeui.org/explorer/#containers/menus
  • s

    square-angle-35096

    03/04/2023, 11:57 PM
    might sound like a stupid question, but is there any way something like
    onChange
    to an
    menuOptionBox
    ?
  • s

    square-angle-35096

    03/04/2023, 11:58 PM
    i was going to make it be recognized through an mouseEvent but that seemed to break it lol
  • s

    square-angle-35096

    03/04/2023, 11:59 PM
    or maybe that is because i was doing it in a stupid way
  • s

    square-angle-35096

    03/05/2023, 12:00 AM
    but its hard to find haxeui projects to base myself on as i'm beginning with it
  • s

    square-angle-35096

    03/05/2023, 12:01 AM
    the problem of the component playground thingy is that its mostly the layouts but they don't really show like a way to implement actions into most of the components
  • b

    bright-gpu-74537

    03/05/2023, 12:04 AM
    thats fair, doc / examples could certainly be better... its (mostly) a "one man" show, and its not like im working full time on it. To answer your question, you are probably looking for "menu selected" events: http://haxeui.org/api/haxe/ui/containers/menus/menuevent/
  • b

    bright-gpu-74537

    03/05/2023, 12:05 AM
    gimme 2 mins, ill knock up a sample, then im off to bed πŸ™‚
  • s

    square-angle-35096

    03/05/2023, 12:05 AM
    thank you!
  • b

    bright-gpu-74537

    03/05/2023, 12:12 AM
    ... ... mebbe im too drunk to function, but this doesnt compile:
    import haxe.ui.containers.menus.MenuEvent;
    .... :/
  • s

    square-angle-35096

    03/05/2023, 12:12 AM
    huh
  • b

    bright-gpu-74537

    03/05/2023, 12:13 AM
    feels perfectly reasonable.
  • b

    bright-gpu-74537

    03/05/2023, 12:13 AM
    whoops... no
  • s

    square-angle-35096

    03/05/2023, 12:14 AM
    lmao
  • b

    bright-gpu-74537

    03/05/2023, 12:16 AM
    http://haxeui.org/builder/?4bb9a257
  • b

    bright-gpu-74537

    03/05/2023, 12:16 AM
    there is haxe source also, so if you didnt know "View -> Project"
  • l

    little-oxygen-79174

    03/05/2023, 12:53 AM
    Most of the documentation uses the
    onchange
    attribute but isn't the hscript deprecated?
  • b

    bright-gpu-74537

    03/05/2023, 1:00 AM
    onchange has nothing to do with hscript... at compile time
  • b

    bright-gpu-74537

    03/05/2023, 1:01 AM
    at runtime... hmmmm, ill have to think, but at compile time onchange builds haxe code to register an event handler via macros
  • l

    little-oxygen-79174

    03/05/2023, 1:13 AM
    Oh it actually translates it to an expression at compile time? Neat
1...157715781579...1687Latest