Page 1 of 1
blueprint setup change notification
Posted: Thu Jan 25, 2018 4:51 am
by golfmiketango
I'd really appreciate being able to know when the user has messed around with the blueprint in the blueprint setup gui, so I can enforce certain rules and/or take action accordingly. An event like "on_player_changed_blueprint_in_setup_ui" would get me most of the way there*.
Pretty please, with sugar on top?
--
*what I really want is to be able to control which items can and cannot be toggled preemptively, but that seems like a significantly bigger ask... I'm guessing the perfect is likely the enemy of the good in this case.
Re: blueprint setup change notification
Posted: Thu Jan 25, 2018 5:42 am
by Rseding91
There's an event fired after the player clicks "ok" on the blueprint configure GUI. Other than that it's not possible to read anything about the GUI as that data isn't part of the game stat and isn't deterministic for mods to read.
Re: blueprint setup change notification
Posted: Thu Jan 25, 2018 5:45 am
by golfmiketango
Does that mean that if i manipulate the blueprint_to_setup stack before then, I'm risking desyncs in mp?
Re: blueprint setup change notification
Posted: Thu Jan 25, 2018 6:04 am
by Rseding91
golfmiketango wrote:Does that mean that if i manipulate the blueprint_to_setup stack before then, I'm risking desyncs in mp?
No. You're editing game-state data. The GUI has its own set of changes it wants to do and doesn't send that to the game until the player presses ok at which point the game checks that it's valid and applies it to the game through the input action system.
Re: blueprint setup change notification
Posted: Thu Jan 25, 2018 8:02 am
by golfmiketango
Hmmm... even so I suspect my game plan is not kosher and will at best require some retooling. Not that I expected to get it right this fast, I'm still mostly bumbling around trying to figure out what all the knobs and buttons are for....