Closed 6fears7 closed 8 months ago
Working on adding a hook into the OptionsMenu. May need to do IL
Instead of hooking IL original menu, just created the Remix options menu for Rain Meadow to add a bind key.
Next steps:
Determine what layer the username display needs to occur in
Grab every player's current position
Create some kind of object that can act as a container for the username text
If specific key is pressed, draw the usernames on screen above all player heads only for the player who asked. No network syncing.
Update the drawn username over each player as they are moving.
The username color should be the same as that player's body color.
Delete the username text if key is pressed again.
After hating myself for a bit, I see two paths forward:
Make a custom HUD component, hook into main HUD to add it in
Hook Jolly's HUD arrow and do some dirty work
TBD
Definitely not going to hook anything with Jolly. There's too many side effects (like camera hijacking), so I'll just hook the InitSinglePlayerHud setup with a new HUD part to add that uses the code from Jolly without the same exact logic
On holding food button currently, brings up the playerIcon and username display
TODO:
Nearly to something workable. A few oddities:
The expectation is that Player 2 clicks food button (or whatever button I choose) and then views all players, but DOES NOT draw that data on-screen to the other players.
Ok, found the section that lets me update when other players join. My most recent commit now adds the username to the second player.
At this point, I'm convinced that OnlineManager.players.isMe is being shunted to the front of the list which is causing some of the issues.
Boom, baby.
TODO:
Steam allows up to 32 characters, which can be a lot on screen.
One example, perhaps could be toggleable:
Perhaps if someone hits tab, we could show this: