]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'terencehill/menu_optimization' into 'master'
authorMario <zacjardine@y7mail.com>
Mon, 4 Jan 2016 11:48:46 +0000 (11:48 +0000)
committerMario <zacjardine@y7mail.com>
Mon, 4 Jan 2016 11:48:46 +0000 (11:48 +0000)
Menu optimization

List of demos, screenshots, music tracks and player models (current player model image too) are now loaded on display, previously both on start (2 times due to a bug) and on display

List of cvars and keybinds are now loaded only on display (previously only on start)

Implementation changes:
* Removed an unnecessary showNotify call for every item when building up the menu (caused to load many file lists twice)
* Added SUPER(XonoticCvarsDialog).showNotify(me); in the implementation of showNotify for dialogs so that showNotify gets called for every item in the dialog (e.g. for the cvarlist in the "Advanced Settings" dialog)

See merge request !263

1  2 
qcsrc/menu/xonotic/dialog_multiplayer_create_mutators.qc

index a411a8a7f3d45d0a1c50bbfa7562708648d08321,c136f901d77e4c683b195ed041413d32701d2e9a..e90a909595e7de504b04487c13412440f3e46b8c
@@@ -1,4 -1,4 +1,4 @@@
 -#include "../../common/weapons/all.qh"
 +#include <common/weapons/all.qh>
  
  #ifndef DIALOG_MULTIPLAYER_CREATE_MUTATORS_H
  #define DIALOG_MULTIPLAYER_CREATE_MUTATORS_H
@@@ -20,6 -20,7 +20,7 @@@ ENDCLASS(XonoticMutatorsDialog
  #ifdef IMPLEMENTATION
  void XonoticMutatorsDialog_showNotify(entity me)
  {
+       SUPER(XonoticMutatorsDialog).showNotify(me);
        loadAllCvars(me);
  }