https://linen.dev logo
Join Discord
Powered by
# openfl
  • h

    hallowed-ocean-84954

    08/24/2022, 1:36 PM
    there was a whole slew of posts on this a few weeks back. There is no generic solution that I know of. What target and you using ? And what do you mean by transparent ? Do you want the just the window background itself to be transparent and the content to be opaque ? This post points to a couple of options and results
  • t

    thousands-state-46635

    08/24/2022, 7:23 PM
    Yeah
  • t

    thousands-state-46635

    08/24/2022, 7:23 PM
    RafPlayz was able to achieve it by diving through some messages here and modified it to be more easier, so here: https://github.com/RafPlayz69YT/TransparentColorWindowHaxe
  • t

    thousands-state-46635

    08/24/2022, 7:23 PM
    Although it's windows only, so you'd need to create or dig for a implementation on other OSes
  • t

    thousands-state-46635

    08/24/2022, 7:24 PM
    It is possible to achieve transparent windows on Linux and Mac, bu they just dont use the same implementation.
  • g

    green-thailand-63253

    08/24/2022, 7:59 PM
    ok
  • g

    green-thailand-63253

    08/24/2022, 7:59 PM
    thx you :)
  • b

    best-agent-85158

    08/29/2022, 11:28 AM
    im having issues with references to objects and haxeui-openfl
  • b

    best-agent-85158

    08/29/2022, 11:29 AM
    Copy code
    haxe
    removeChild(dropdown);
            removeChild(fixDescription);
            dropdown.y = description.y + description.textHeight + 20;
            dropdown.width = Math.min(110, w - SIDEBAR_WIDTH - 10) + 10;
    
            fixDescription.x = Math.min(110, w - SIDEBAR_WIDTH - 10) + 15;
            fixDescription.y = dropdown.y;
            fixDescription.width = Math.max(180, w - SIDEBAR_WIDTH - dropdown.x - fixDescription.width);
            fixDescription.height = fixDescription.textHeight + 4;
            addChild(dropdown);
            addChild(fixDescription);
    this piece of code is triggered whenver the window is resized
  • b

    best-agent-85158

    08/29/2022, 11:31 AM
    and this happens ☝️
  • b

    bright-gpu-74537

    08/29/2022, 11:34 AM
    why are you adding a removing the description and dropdown each time? Why not just move / resize it? Although technically, it should be perfectly fine
  • b

    best-agent-85158

    08/29/2022, 11:35 AM
    it didnt work without removing
  • b

    best-agent-85158

    08/29/2022, 11:35 AM
    the rest of the objects on the sprite just change properties
  • b

    bright-gpu-74537

    08/29/2022, 11:35 AM
    then something else is going on
  • b

    best-agent-85158

    08/29/2022, 11:36 AM
    but when changing the properties of dropdown, nothing happens
  • b

    best-agent-85158

    08/29/2022, 11:36 AM
    wait why arent we on haxeui🤣
  • m

    mysterious-intern-42609

    08/29/2022, 6:59 PM
    Does anyone know how I can port OpenFL shaders to Haxe?
  • m

    mysterious-intern-42609

    08/29/2022, 6:59 PM
    Or maybe just use them without porting
  • m

    mysterious-intern-42609

    08/29/2022, 6:59 PM
    If that is possible
  • e

    elegant-twilight-61392

    08/29/2022, 7:02 PM
    what are you actually trying to do
  • m

    mysterious-intern-42609

    08/29/2022, 7:07 PM
    Basically trying to use shaders in Haxe
  • m

    mysterious-intern-42609

    08/29/2022, 7:07 PM
    I wanna use shaders from shadertoy.com
  • e

    elegant-twilight-61392

    08/29/2022, 7:11 PM
    you dont use shaders "in haxe"
  • e

    elegant-twilight-61392

    08/29/2022, 7:11 PM
    you have to be using a framework or library that involves shaders
  • m

    mysterious-intern-42609

    08/29/2022, 7:11 PM
    Yeah I know but I'm not too sure how those work
  • e

    elegant-twilight-61392

    08/29/2022, 7:12 PM
    well you said port openfl shaders to haxe, which means your trying to go from openfl to something else, correct?
  • m

    mysterious-intern-42609

    08/29/2022, 7:17 PM
    Yeah
  • e

    elegant-twilight-61392

    08/29/2022, 7:18 PM
    what thing are you trying to switch to?
  • m

    mysterious-intern-42609

    08/29/2022, 7:19 PM
    @:glFragmentSource I think this is it
  • e

    elegant-twilight-61392

    08/29/2022, 7:20 PM
    what library or framework are you trying to use
1...101112...57Latest