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

    brave-kangaroo-30399

    07/01/2019, 12:20 PM
    And I’m rewriting the core HaxeUI flixel object, so I can do whatever I need to there
  • q

    quick-king-64105

    07/01/2019, 12:20 PM
    I keep forgetting that's a thing.
  • q

    quick-king-64105

    07/01/2019, 12:21 PM
    It's a really, really weird feature, in my defense.
  • b

    brave-kangaroo-30399

    07/01/2019, 12:22 PM
    So, somehow, I would make a callback to register if a state’s UI children need to be updated
  • b

    brave-kangaroo-30399

    07/01/2019, 12:23 PM
    I might also add a “stateInactive” callback to flixel itself, something along those lines
  • q

    quick-king-64105

    07/01/2019, 12:23 PM
    Are HaxeUI objects aware they belong to HaxeUI in a way that Flixel could see?
  • b

    brave-kangaroo-30399

    07/01/2019, 12:23 PM
    No
  • q

    quick-king-64105

    07/01/2019, 12:23 PM
    Damnit.
  • b

    brave-kangaroo-30399

    07/01/2019, 12:23 PM
    Bc they belong to flixel
  • q

    quick-king-64105

    07/01/2019, 12:23 PM
    Right. As they should.
  • b

    brave-kangaroo-30399

    07/01/2019, 12:24 PM
    I’ll toss around some code and see what happens
  • q

    quick-king-64105

    07/01/2019, 12:24 PM
    So then the only viable attack point is the Toolkit's render group.
  • q

    quick-king-64105

    07/01/2019, 12:24 PM
    That or it has to be on Haxeui's end.
  • q

    quick-king-64105

    07/01/2019, 12:25 PM
    Or so it seems, just running my head over it with what I know and would try.
  • q

    quick-king-64105

    07/01/2019, 12:25 PM
    Well. Good luck. Let me know if you need me to retry my test cases.
  • q

    quick-king-64105

    07/01/2019, 12:26 PM
    textflownull
    and
    cantstopwontstop
    .
  • b

    brave-kangaroo-30399

    07/01/2019, 1:57 PM
    Oh, kind of a hack, but what about “thisObjectWasUpdatedByFlixelLastFrame” as a sign to go ahead and process mouse events
  • b

    brave-kangaroo-30399

    07/01/2019, 1:58 PM
    Like you said, there’s really no access into that persistentDraw conditional, and no existing tie between the state’s update and mouse manager’s
  • q

    quick-king-64105

    07/01/2019, 2:01 PM
    The overhead needs to be noted for people using it.
  • q

    quick-king-64105

    07/01/2019, 2:02 PM
    A boolean? I wouldn't expect it to be too high.
  • q

    quick-king-64105

    07/01/2019, 2:02 PM
    And hopefully either flixel's rearchitecture means we can just compose the object to not suck or else someone comes along with a brilliant solution later.
  • q

    quick-king-64105

    07/01/2019, 2:02 PM
    I don't see better options right now TBH
  • b

    brave-kangaroo-30399

    07/01/2019, 3:30 PM
    It would just be a Boolean or two I imagine
  • b

    brave-kangaroo-30399

    07/01/2019, 3:31 PM
    Wait, I’m not sure how I would be able to set it to false
  • b

    brave-kangaroo-30399

    07/01/2019, 3:32 PM
    I don’t want to put something like that in the render loop, but maybe I’ll have to...
  • q

    quick-king-64105

    07/01/2019, 3:43 PM
    IIRC flags are dealt with on
    super.update()
    for flxobjects, so
    Copy code
    haxe
    public function override update(elapsed:whoCares)
    {
        checkFlagAndDoStuff();
        resetFlag();
        super.update(elapsed);
    }
    went looking in docs, cannot find, do check
  • q

    quick-king-64105

    07/01/2019, 3:43 PM
    Although I guess that works anyway
  • q

    quick-king-64105

    07/01/2019, 3:44 PM
    You can put that before parent's update function call from super.
  • q

    quick-king-64105

    07/01/2019, 4:03 PM
    sdfghykujhgrefw
  • q

    quick-king-64105

    07/01/2019, 4:03 PM
    Stupid I'm stupid.
1...757677...1687Latest