Open robertthepie opened 1 week ago
Hey @robertthepie , i'll review this PR and give some feedback...
After first launch, i see a lot of unused space, when i use Split Panel Mode = "Always One". See pic.
So, i suggest to use that space for the players.
Though this can be done in a later PR. No stopper for this PR imo...
After first launch, i see a lot of unused space, when i use Split Panel Mode = "Always One".
The old system simply overflowed outside of the rendered panel, which worked great for when it was expanded, or too short, as it didn't account for it at all. Reverted back to that.
I got 2 concerns so far...
This PR is duplicating the function playerWidget into gui_tooltip. This is not good in terms of maintenance. I'll try to add a ReplayTooltipUser to api_user_handler with parameters for rank and skill. Then we can remove playerWidget from gui_tooltip and gui_replay_handler. (Pretty sure i find the time next 2-3 days)
For battles all these infos are stored in lobby.lua and other widgets can receive infos from this central object.
Maybe gui_replay_handler could provide an externalFunctions:GetReplayData(replayID or replayName). This way we'd only need to add an id to tooltipText and gui_tooltip could access this infos without serializing/deserializung them in between. This should help with readability and later expansion of this part. E.g. adding skill or such to tooltip users.
Work Done
Updated the Replay Menu Player List to:
Testing done
The replay menu has been tested on the following team sizes: 1v1, 2v2, 4v4, 5v5, 8v8 20v20 6 teams of 2, 6 teams of 3, 8 teams of 2, 16 player ffa, 11 player ffa, 5 player ffa