https://linen.dev logo
Join Discord
Powered by
# lime
  • b

    best-agent-85158

    08/05/2022, 1:55 PM
    thanks 👍
  • h

    helpful-oxygen-79589

    08/05/2022, 6:57 PM
    is it possible to make custom window borders
  • e

    elegant-twilight-61392

    08/05/2022, 7:38 PM
    you have to make them yourself of a borderless window
  • e

    elegant-twilight-61392

    08/05/2022, 7:38 PM
    im not sure how to make regions that move the window around with lime though
  • e

    elegant-twilight-61392

    08/05/2022, 7:38 PM
    youll need that to actually be able to move the window around by dragging the titlebar
  • h

    hallowed-ocean-84954

    08/06/2022, 2:44 AM
    Transparent windows tests. Built a simple flixel app with a couple of sprite blocks moving around. The SDL window opacity change results in both the window background and the content becoming less opaque. It doesn't just affect the window itself. The colorkey approach affects only the window background but not the content. So flixel shapes in my text remained opaque. But if the color appears in your foreground it will be transparent. Rather amusingly though if such a sprite moves across another one that you can see you will see a portion of that opaque sprite become invisible. No doubt because the one with the colorkey color rendered in front of it and then Windows WM decided it should be transparent. If you make the window borderless the colorkey version will make the window entirely invisible with just the content showing. Setting the opacity to 0.0 in the opacity change will cause everything to disappear. I do not know how to do the colorkey thing in a portable way.
  • h

    hallowed-ocean-84954

    08/06/2022, 2:48 AM
    @bulky-angle-28618 I found some comp errors and warnings in TransparentWindow.hx. Basically all the externs should have no return statements and just terminate in a semi-colon after the return types. The setColorKey function is Void so all the
    return false
    cases need to be removed.
  • p

    powerful-morning-89

    08/06/2022, 5:30 AM
    > I do not know how to do the colorkey thing in a portable way. You can't. The specific "replace a color with the things behind the window" is not possible on Linux (and macOS?). I'll test it in the afternoon (don't feel like rebooting into windows right now) but I think you might not need the colorKey thing, just not clearing (or clearing to a transparent color) might also do the trick, just like it does on Linux.
  • p

    powerful-morning-89

    08/06/2022, 6:15 AM
    > I'll test it in the afternoon (don't feel like rebooting into windows right now) but I think you might not need the colorKey thing, just not clearing (or clearing to a transparent color) might also do the trick, just like it does on Linux. I just had to know, so I tested it, and unless I overlooked something you do need the colorKey thing.
  • h

    hallowed-ocean-84954

    08/06/2022, 2:00 PM
    Ok thanx for trying it out. So this basically means there is currently no portable invisible window with visible content. A job for the SDL team to figure out. Even the color key thing is an imperfect implementation of it. I really don't know the graphics APIs on any of these platforms so I don't know what is possible without research.
  • p

    powerful-morning-89

    08/06/2022, 2:03 PM
    On Wayland and X11 (ie Linux) it's very easy. Just don't clear with an opaque background (and make sure the EGL surface or X11 visual actually have an alpha channel). I suspect that approach also works on macOS. Windows is the only one were you need weird things.
  • p

    powerful-morning-89

    08/06/2022, 2:03 PM
    > Even the color key thing is an imperfect implementation of it. Actually, if you use
    0x0
    as the color key and then clear the background to
    0x0
    instead of black it should work just fine.
  • h

    hallowed-ocean-84954

    08/06/2022, 2:07 PM
    transparent black - Let me try that
  • h

    hallowed-ocean-84954

    08/06/2022, 2:08 PM
    What is wayland by the way ? - is it some linux wm ?
  • p

    powerful-morning-89

    08/06/2022, 2:08 PM
    Wayland is a new display protocol, the replacement for X11.
  • h

    hallowed-ocean-84954

    08/06/2022, 2:08 PM
    oh ok - I should read up on that
  • p

    powerful-morning-89

    08/06/2022, 2:12 PM
  • h

    hallowed-ocean-84954

    08/06/2022, 2:14 PM
    thanx - I'll have to play with a more practical example on the transparency thing. Flixel/OpenFL put other layers in the way - but setting the camera bgcolor to 0 and clearing to color in the colorkey does work.
  • h

    hallowed-ocean-84954

    08/06/2022, 2:15 PM
    so that is probably enough for what I need
  • h

    hallowed-ocean-84954

    08/06/2022, 2:15 PM
    but it would be really nice if the SDL team added an API over these different impls
  • w

    witty-island-52596

    08/09/2022, 6:07 PM
    getting this error with no context:
    Copy code
    Error: Invalid field access : length
  • p

    powerful-morning-89

    08/09/2022, 6:41 PM
    Try with
    -verbose
    , it might give more information as to where it's failing.
  • h

    hallowed-ocean-84954

    08/17/2022, 3:04 AM
    I'm trying to rebuild lime 7.9.0 from source all the way down in all deps with debug symbols. I recursively cloned the repo and reset to the commit 2b04782 which is the one listed against the 7.9.0 tag. Then when I run
    haxelib run lime rebuild windows -debug
    I get
    ../src/lime/_internal/graphics/ImageDataUtil.hx:89: characters 6-8 : Local variable s1 used without being initialized
    . I've looked at change history for that file and it should have initialized the s* vars from some time in Feb 2021 and 2b04782 is in March 2021. I assume I'm doing something wrong. Any ideas ?
  • h

    hallowed-ocean-84954

    08/17/2022, 3:17 AM
    ah ... checking the v7 branch I see that at that commit this error was still there. That makes me wonder how it built - perhaps an older version of Haxe ?
  • h

    hallowed-ocean-84954

    08/17/2022, 3:28 AM
    nvm - figured it out - looks like it was fixed for the 4.2 update of Haxe
  • h

    hallowed-ocean-84954

    08/18/2022, 2:18 AM
    when I do a
    lime build ...
    I see various cpp files go by some with [haxe, release] or [haxe, gc] or such. What do these annotations mean ? they are only on some files
  • b

    bulky-insurance-39338

    08/18/2022, 2:55 AM
    was lime rebuild give you the debugging msg you really was need ?
  • b

    bulky-insurance-39338

    08/18/2022, 2:56 AM
    (into that dirty environment i am mean you told me last time of [sry about my first stupid
    stereotyping
    ;:)
  • b

    bulky-insurance-39338

    08/18/2022, 2:57 AM
    @hallowed-ocean-84954 chat is
    allways
    -> dirty dust (for me .)
  • b

    bulky-insurance-39338

    08/18/2022, 3:01 AM
    any<way ... if something gets wrong we should
    remember
    !
1...202122...138Latest