lythx/trakman

widget update events

Closed this issue · 1 comments

wsrvn commented

some of the current ui doesnt update in time (if it does at all), maybe this list will be updated idk rtbh

locals dont update on //delrec (or //prunerecs), can be fixed by emitting Controller.LocalRecords, PlayerRecord won't do it since we kinda have nothing to send if the record is removed instead.

karma doesnt update in general atm, but for the future we'll need to update it for everyone whenever theres a new vote. might need something like Controller.KarmaVote or whatever to handle that.

buttons afaik dont update, or it doesnt seem like they do:

  • players/specs button should be updated on Controller.PlayerJoin, Controller.PlayerLeave, Controller.PlayerInfoChanged and ofc on ready.
  • visitors button is tricky since its a database call, it would be inefficient to call update on every playerjoin, we can of course only count the 0-visits people with an if, but why bother.
  • maps list count should be updated on ChallengeListModified. we dont have that in controller events yet.

tmx records should be updated on either Controller.PlayerFinish or Controller.PlayerRecord to update the relative colours n shit.

wsrvn commented

fixed via #164 & #167