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

    bright-gpu-74537

    01/25/2023, 1:53 PM
    yeah, everything certainly looks more right... hard to see fully, but certainly looks more correct than the last time i saw it
  • b

    bright-gpu-74537

    01/25/2023, 1:53 PM
    i wonder why you have spacing between your buttons in button bar though
  • b

    bright-gpu-74537

    01/25/2023, 1:53 PM
    are you using Std.int(width) in handleSize? If so, is it better without it?
  • a

    ambitious-knife-25690

    01/25/2023, 1:57 PM
    i do
  • a

    ambitious-knife-25690

    01/25/2023, 1:57 PM
    here's what it looks like without it
  • a

    ambitious-knife-25690

    01/25/2023, 1:58 PM
    wrong buttons 😂
  • b

    bright-gpu-74537

    01/25/2023, 1:58 PM
    looks more correct to me
  • a

    ambitious-knife-25690

    01/25/2023, 2:00 PM
    but now things have the subpixel artifacting 🤔
  • b

    bright-gpu-74537

    01/25/2023, 2:02 PM
    yeah, this can be a pain
  • b

    bright-gpu-74537

    01/25/2023, 2:03 PM
    you might need to int x/y too... ill check it out a little later, but i think heaps had a similar issue
  • b

    bright-gpu-74537

    01/25/2023, 2:03 PM
    kha too mebbe
  • b

    billowy-waiter-28954

    01/25/2023, 3:21 PM
    @ambitious-knife-25690 A useful setting that can be used in ceramic meshes and quad objects is
    roundTranslation = 1
    . With this, the renderer is rounding the final points to match the screen size
  • b

    bright-gpu-74537

    01/25/2023, 3:57 PM
    oh, thats a nice touch
  • e

    elegant-twilight-61392

    01/25/2023, 8:16 PM
    im not sure if im just blind, but what component does a
    vbox
    tag in xml represent?
  • a

    ambitious-knife-25690

    01/25/2023, 8:17 PM
    wdym?
  • a

    ambitious-knife-25690

    01/25/2023, 8:17 PM
    all components are built from ComponentImpl and ComponentSurface
  • a

    ambitious-knife-25690

    01/25/2023, 8:17 PM
    you don't need to worry about individual components
  • a

    ambitious-knife-25690

    01/25/2023, 8:17 PM
    it's actually super nice
  • a

    ambitious-knife-25690

    01/25/2023, 8:19 PM
    so like, once you type componentsurface, setup handleSize and handrePosition in componentImpl, you'll have the 'base' of a box
  • b

    bright-gpu-74537

    01/25/2023, 8:21 PM
    NotBilly is right, you dont really need to care - however, to answer your question,
    <vbox />
    is an xml alias for
    <box direction="vertical" />
    or
    <vertical-box />
    ... so the actual class is "VerticalBox"
  • b

    bright-gpu-74537

    01/25/2023, 8:22 PM
    same goes for sliders, scrollbars, progressbars... you can do
    <vslider />
    ,
    <slider direction="..." />
    or
    <vertical-slider />
  • b

    bright-gpu-74537

    01/25/2023, 8:22 PM
    if an
    IDirectionalComponent
    doesnt have its
    direction
    set,
    horizontal
    is assumed
  • b

    bright-gpu-74537

    01/25/2023, 8:23 PM
    so
    <slider />
    is
    <slider direction="horizontal" />
    and the class is
    HorizontalSlider.hx
  • e

    elegant-twilight-61392

    01/25/2023, 8:26 PM
    but for a native backend, it has to become some native ui element. i cant seem to find where haxeui-hxwidgets would handle creating a "VerticalBox" or "HorizontalBox"
  • b

    bright-gpu-74537

    01/25/2023, 8:26 PM
    well, these components dont need native counter parts since they are just containers
  • b

    bright-gpu-74537

    01/25/2023, 8:27 PM
    so in wxwidgets its just a base "wxPanel"
  • b

    bright-gpu-74537

    01/25/2023, 8:27 PM
    so native or not, you'll still want / need some composite features
  • b

    bright-gpu-74537

    01/25/2023, 8:27 PM
    thats why i personally think it makes sense to create a composite backend then map native components
  • e

    elegant-twilight-61392

    01/25/2023, 8:30 PM
    well the way i see is that if i make a composite backend ill get all the composite components "for free", but ill have to get input working myself, or if i make a native backend, i have to map all the components to godot ones, but ill get input handling and mouse events "for free"
  • e

    elegant-twilight-61392

    01/25/2023, 8:30 PM
    also a backend can add new components too right? so like afaik haxeui doesnt have a video player element, but godot does, so i could add that to the backend
1...140714081409...1687Latest