]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Speed up menu start by avoiding an unnecessary showNotify call when building up the...
authorterencehill <piuntn@gmail.com>
Sat, 28 Nov 2015 16:16:16 +0000 (17:16 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 28 Nov 2015 16:16:16 +0000 (17:16 +0100)
qcsrc/menu/item/container.qc

index 23857dcead1d04e0089347114c32dd07733889f5..17412cd0fbffef4e4c7c73a131b627d56c4cfa6b 100644 (file)
                other.parent = me;
                other.Container_origin = theOrigin;
                other.Container_size = theSize;
-               me.setAlphaOf(me, other, theAlpha);
+
+               // don't call setAlphaOf, it would uneccessarily trigger showNotify
+               //me.setAlphaOf(me, other, theAlpha);
+               other.Container_alpha = theAlpha;
 
                entity l;
                l = me.lastChild;