mrhappyasthma / HoN-Ranked-Quickstats-Tooltips-Mod

Enables quickstat tooltips to display current season ranked data when moused-over. This is reminiscent of the old main interface game_lobby UI.
1 stars 1 forks source link

[Feature Request] Support different game modes to make the UI dynamic #5

Open mrhappyasthma opened 3 years ago

mrhappyasthma commented 3 years ago

Currently this is hardcoded to show in all game modes and always fetches the current season stats.

It would be nice for this to adapt to the game mode (casual, midwars, public) and show the corresponding stats for that mode.

mrhappyasthma commented 3 years ago

We can probably listen to LobbyGameInfo to get which gamemode it is.

According to the old modding guide docs, the params are:

param0 string: Game Mode
param1 string: Game Options
param2 string: Server
param3 string: Map Name
param4 int: Players
param5 int: MaxPlayers
param6 int: Ping
param7 string: Game Name
param8 int: MatchID
param9 string: Host Name

It looks like a lot of these fields imply public games, but it may also apply to matchmaking. I'd have to check.