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

    bright-gpu-74537

    09/23/2022, 9:30 PM
    as long as you are willing to theme the various parts of the core haxeui, you are gravy, or write your own core parts, and theme them, also fine
  • b

    bright-gpu-74537

    09/23/2022, 9:31 PM
    ... ... ... ... haxeui core is a module of it itself... ...
  • w

    witty-island-52596

    09/23/2022, 9:33 PM
    * brain explodes
  • w

    witty-island-52596

    09/23/2022, 9:33 PM
    dude stop
  • w

    witty-island-52596

    09/23/2022, 9:34 PM
    I think Frying pan is saying that that ditinction comes with a history of knowledge that newcomers do not have
  • b

    bright-gpu-74537

    09/23/2022, 9:34 PM
    wanna write a component in haxeui, sure, have at it... make a component, make it do anything and as long as the backend honours it, you'll be fine. A haxeui "button" is just a haxeui component that lives inside haxeui-core
  • e

    elegant-twilight-61392

    09/23/2022, 9:34 PM
    ok cool
  • e

    elegant-twilight-61392

    09/23/2022, 9:34 PM
    there is a list of components that "come with haxeui"
  • e

    elegant-twilight-61392

    09/23/2022, 9:35 PM
    what is available without creating a custom component
  • b

    bright-gpu-74537

    09/23/2022, 9:35 PM
    with haxeui-core, yeah, they are all composites
  • b

    bright-gpu-74537

    09/23/2022, 9:35 PM
    they have native counterparts
  • e

    elegant-twilight-61392

    09/23/2022, 9:36 PM
    sure, a "button" in haxeui might map to a native button or a FlxButton or a custom thing, but a button is a "base" component as far as anyone creating something using haxeui knows
  • b

    bright-gpu-74537

    09/23/2022, 9:36 PM
    true enough, but from haxeuis perspective, its just a component
  • b

    bright-gpu-74537

    09/23/2022, 9:37 PM
    its a box that has states
  • b

    bright-gpu-74537

    09/23/2022, 9:38 PM
    haxeui doesnt "know" what a "slider" is... or what haxeui-core includes, but it means nothing to haxeui-core (especially as that can also be abstracted to other, non composite backends)
  • e

    elegant-twilight-61392

    09/23/2022, 9:38 PM
    ok but haxeui-core includes some definition for a slider somewhere, no?
  • b

    bright-gpu-74537

    09/23/2022, 9:39 PM
    it has an abstraction, sure, one you can build on
  • b

    bright-gpu-74537

    09/23/2022, 9:40 PM
    this is a slider in haxeui (dox excluded):
  • b

    bright-gpu-74537

    09/23/2022, 9:41 PM
    Copy code
    @:composite(SliderBuilder)
    class Slider extends InteractiveComponent implements IDirectionalComponent {
        private function new() {
            super();
            cascadeActive = true;
            actionRepeatInterval = 10;
        }
        @:clonable @:behaviour(MinBehaviour, 0)         public var min:Float;
        @:clonable @:behaviour(MaxBehaviour, 100)       public var max:Float;
        @:clonable @:behaviour(DefaultBehaviour, null)  public var precision:Null<Int>;
        @:clonable @:behaviour(StartBehaviour, null)    public var start:Null<Float>;
        @:clonable @:behaviour(EndBehaviour, 0)         public var end:Float;
        @:clonable @:behaviour(PosBehaviour)            public var pos:Float;
        @:clonable @:behaviour(CenterBehaviour, null)   public var center:Null<Float>;
        @:clonable @:behaviour(DefaultBehaviour, null)  public var step:Null<Float>;
        @:clonable @:behaviour(MinorTicks, null)        public var minorTicks:Null<Float>;
        @:clonable @:behaviour(MajorTicks, null)        public var majorTicks:Null<Float>;
        @:clonable @:value(pos)                         public var value:Dynamic;
        @:call(PosFromCoord)                            private function posFromCoord(coord:Point):Float;
    }
  • e

    elegant-twilight-61392

    09/23/2022, 9:41 PM
    ok, those are all things you could list on a documentation page
  • b

    bright-gpu-74537

    09/23/2022, 9:41 PM
    the implementation is kinda variable (and they dont always apply)
  • b

    bright-gpu-74537

    09/23/2022, 9:42 PM
    http://haxeui.org/api/haxe/ui/components/Slider.html
  • b

    bright-gpu-74537

    09/23/2022, 9:43 PM
    are they not? Granted the docs are woefully out of date
  • e

    elegant-twilight-61392

    09/23/2022, 9:43 PM
    i was going based off this statement
  • e

    elegant-twilight-61392

    09/23/2022, 9:43 PM
    ¯\_(ツ)_/¯
  • b

    bright-gpu-74537

    09/23/2022, 9:45 PM
    i think thats more about completion in vscode
  • b

    bright-gpu-74537

    09/23/2022, 9:46 PM
    but there isnt any definitive schema for haxeui, and there cant be
  • b

    bright-gpu-74537

    09/23/2022, 9:46 PM
    just "what it found in the classpath"
  • a

    ambitious-knife-25690

    09/23/2022, 9:50 PM
    I think what these guys are saying is that it's possible to create a schema with a manual procedure. And haxeui comes with components. Isn't it possible to just manually run the command and dump the schema in the repo so people can copy paste that?
  • b

    bright-gpu-74537

    09/23/2022, 9:50 PM
    you can, right now, run a haxe command that will build an .xsd
1...127712781279...1687Latest