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

    bright-gpu-74537

    09/23/2022, 1:29 PM
    147.33498203498 is just a strange number
  • w

    witty-island-52596

    09/23/2022, 1:29 PM
    tried again, got 294.718078613281
  • w

    witty-island-52596

    09/23/2022, 1:30 PM
    didn't change anything
  • b

    bright-gpu-74537

    09/23/2022, 1:30 PM
    out of interest, if you remove your manual setting of the scale, and return true from isRetina, do things work?
  • w

    witty-island-52596

    09/23/2022, 1:31 PM
    thats not my manual szetting, thats haxeui-core
  • w

    witty-island-52596

    09/23/2022, 1:31 PM
    but ill try
  • b

    bright-gpu-74537

    09/23/2022, 1:31 PM
    i just mean dont do "looks fine when I set Toolkit.scaleX/Y to 1, 1"
  • b

    bright-gpu-74537

    09/23/2022, 1:31 PM
    (ie, so haxeui will try and detect the appropriate scale)
  • w

    witty-island-52596

    09/23/2022, 1:33 PM
    oh all of this is without setting the scale, for testing
  • w

    witty-island-52596

    09/23/2022, 1:34 PM
    now i keep getting 147.33498203498 for dpi
  • b

    bright-gpu-74537

    09/23/2022, 1:34 PM
    OK, so, yeah, if you hardcode is retina to true, do things scale right?
  • w

    witty-island-52596

    09/23/2022, 1:34 PM
    which is scale 1 by default
  • w

    witty-island-52596

    09/23/2022, 1:36 PM
    this still says 192 https://www.infobyip.com/detectmonitordpi.php
  • w

    witty-island-52596

    09/23/2022, 1:39 PM
    tried on html5, got 192, set retina display to true and it looks fine
  • w

    witty-island-52596

    09/23/2022, 1:39 PM
    those weird values were on mac cpp
  • b

    bright-gpu-74537

    09/23/2022, 1:40 PM
    ok, so, just need to implement that get_retinaDisplay... ill see how it works for other backends... might be able to reuse it (from haxeui-openfl for example)
  • b

    bright-gpu-74537

    09/23/2022, 1:40 PM
    so, just to confirm, with no manual toolkit scale setting, and making isRetina true, it works on html and cpp on your mac?
  • w

    witty-island-52596

    09/23/2022, 1:40 PM
    couldn't confirm cpp, but html, yes
  • w

    witty-island-52596

    09/23/2022, 6:09 PM
    also, why is the initialization of assets delayed? I notice everything has a width of 0 until onReady is called, which waits for a flixel signal
  • w

    witty-island-52596

    09/23/2022, 7:19 PM
    is there like a schema or vscode extension that would give me code hinting while editing the xml
  • w

    witty-island-52596

    09/23/2022, 7:19 PM
    the playground is neat, btw
  • w

    witty-island-52596

    09/23/2022, 7:21 PM
    oh looks like it has more hinting than i previously thought
  • b

    bright-gpu-74537

    09/23/2022, 7:55 PM
    ... so the short answer is "no"... but there is macro hidden inside haxeui that will build an xsd schema
  • b

    bright-gpu-74537

    09/23/2022, 7:56 PM
    if you build that, and add it to your xml, then you get completion
  • b

    bright-gpu-74537

    09/23/2022, 7:57 PM
    im trying to make it a little more user friendly, as, at the moment its a manual step and it needs in include everything to be effective
  • b

    bright-gpu-74537

    09/23/2022, 7:58 PM
    but, if you are interested: https://github.com/haxeui/haxeui-core/blob/master/haxe/ui/macros/SchemaMacros.hx
  • w

    witty-island-52596

    09/23/2022, 8:04 PM
    neat
  • b

    bright-gpu-74537

    09/23/2022, 8:04 PM
    neat maybe, not yet ideal
  • b

    bright-gpu-74537

    09/23/2022, 8:05 PM
    my biggest issue is that is has to be a separate process to "normal" compilation. You might only use "button" on your app, but you want completion for "scrollview", etc
  • b

    bright-gpu-74537

    09/23/2022, 8:06 PM
    and for the core lib, thats not an issue, i could generate it and it would be static, but thats not haxeui, haxeui is (at least for me) about custom components
1...127412751276...1687Latest