Using UE4.25.1
Hello,
I’ve been trying to figure out a way to get the Combo box to only be enabled for the owner of the widget instead of every player that joins in a lobby.
To give a bit more context.
There’s a Widget called LobbyMenu that displays the main UI of the Lobby. LobbyMenu adds a child Widget called ConnectedPlayer to a vertical box.
The ConnectedPlayer Widget, which is added for every player (AI or Human) that’s added into the Lobby. Inside of that Widget contains the Player’s name, avatar, Ready Status, Faction and Team Comboboxes.
I’m trying to make it so only the owning human player of the ConnectedPlayer Widget can modify their ComboBoxes. No one else should be able too.
I’m not sure but I have a funny feeling I should be using the For Each Widget Children Loop that grabs from the LobbyMenu’s Vertical Box to check all the ConnectedPlayers Widgets that are added in the box.
What I’ve tried so far:
- Create a binding on the comboboxes Is Enabled so that it gets the Owning Player if True then Enable, if False then Disable, this makes it all True…
- Tried using the function Set Is Enabled via the GameMode that’s related to the Widget… I haven’t completed it. As I need to set the Combobox to something, if not I get an Accessed None error.
That’s pretty much it for now. If anyone has any hints or suggestions I will be glad to try it out