Skip to content

Apply profile options only on apply button pressed

ColdSpirit requested to merge ColdSpirit/profileapplyfix into master

Fixed behaviour when options are applied without Apply button click.

Fixed options:

  1. Nickname
  2. Player color
  3. Player model + skin
  4. Also fixed that nickname colorpicker not enabled apply button.

In particular name editing caused spam in game for all players connected in console and sometimes failed to apply the new name due to server not allowing players to change name more than once every 5 seconds.

All options have new cvars, like _menu_profile_<whatever>, and UI elements change these cvars. Original cvars are updated only on Apply button click.

If I will change 'name' or other cvar from console, it will update profile menu's values, but only if Apply button pressed (was no changes on page).

Also I pulled cvar names outside of profile elements, that elements work with, and all names now set in profile tab.

Edited by terencehill

Merge request reports